The gllsEnabled function tests whether a capability is enabled.

GLboolean glIsEnabled(
  GLenum cap);



The gllsEnabled function returns GL_TRUE if cap is an enabled capability and returns GL_FALSE otherwise.

Error Codes

If an error is generated, glIsEnabled returns zero.

The following are the error codes generated and their conditions.

Error code Condition
GL_INVALID_ENUM cap was not an accepted value.
GL_INVALID_OPERATION glIsEnabled was called between a call to glBegin and the corresponding call to glEnd.


**  Windows NT/2000:** Requires Windows NT 3.5 or later.
**  Windows 95/98:** Requires Windows 95 or later. Available as a redistributable for Windows 95.
**  Header:** Declared in Gl.h.
**  Library:** Use Opengl32.lib.

See Also

glBegin, glEnable, glEnd