Michal
Michal

Reputation: 3642

OpenGL check if something is enabled or disabled

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

Upvotes: 6

Views: 4708

Answers (2)

elimad
elimad

Reputation: 1152

For global lighting, how about:

glIsEnabled(GL_LIGHTING)

Upvotes: 12

Mikhail
Mikhail

Reputation: 8028

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

glGetBooleanv(GL_LIGHTING,&status)

Upvotes: 11

Related Questions