Reputation: 3642
is there any function like isEnabled(GL_LIGHTING); or any way to detect if is something enabled or disabled?
isEnabled(GL_LIGHTING);
Upvotes: 6
Views: 4708
Reputation: 1152
For global lighting, how about:
glIsEnabled(GL_LIGHTING)
Upvotes: 12
Reputation: 8028
glGet — return the value or values of a selected parameter.
glGetBooleanv(GL_LIGHTING,&status)
Upvotes: 11