Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL check if something is enabled or disabled

Tags:

c++

opengl

is there any function like isEnabled(GL_LIGHTING); or any way to detect if is something enabled or disabled?

like image 657
Michal Avatar asked Jan 31 '13 02:01

Michal


2 Answers

For global lighting, how about:

glIsEnabled(GL_LIGHTING)
like image 55
elimad Avatar answered Oct 17 '22 00:10

elimad


glGet — return the value or values of a selected parameter.

glGetBooleanv(GL_LIGHTING,&status)
like image 11
Mikhail Avatar answered Oct 17 '22 01:10

Mikhail