Michal
Michal

Reputation: 3632

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: 4726

Answers (2)

elimad
elimad

Reputation: 1152

For global lighting, how about:

glIsEnabled(GL_LIGHTING)

Upvotes: 12

Mikhail
Mikhail

Reputation: 8038

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

glGetBooleanv(GL_LIGHTING,&status)

Upvotes: 11

Related Questions