OpenGL checks if something is turned on or off

is there any function like isEnabled(GL_LIGHTING); , or is there any way to detect if something is on or off?

+4
source share
2 answers

For global coverage, how about:

 glIsEnabled(GL_LIGHTING) 
+10
source

glGet - return the value or values โ€‹โ€‹of the selected parameter.

 glGetBooleanv(GL_LIGHTING,&status) 
+11
source

All Articles