Reputation: 3632
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: 4726
Reputation: 1152
For global lighting, how about:
glIsEnabled(GL_LIGHTING)
Upvotes: 12
Reputation: 8038
glGet — return the value or values of a selected parameter.
glGetBooleanv(GL_LIGHTING,&status)
Upvotes: 11