GlIsEnabled
_glIsEnabled, glIsEnabledi: test whether a capability is enabled
Contents
Syntax
FUNCTION _glIsEnabled~%% (BYVAL cap AS _UNSIGNED LONG) GLboolean _glIsEnabled(GLenum cap);
GLboolean _glIsEnabledi(GLenum cap, GLuint index);
- cap
- Specifies a symbolic constant indicating a GL capability.
- index
- Specifies the index of the capability.
Description
_glIsEnabled returns _GL_TRUE if cap is an enabled capability and returns _GL_FALSE otherwise. Boolean states that are indexed may be tested with _glIsEnabledi. For _glIsEnabledi, index specifies the index of the capability to test. index must be between zero and the count of indexed capabilities for cap. Initially all capabilities except _GL_DITHER are disabled; _GL_DITHER is initially enabled.
The following capabilities are accepted for cap:
Notes:
If an error is generated, _glIsEnabled and _glIsEnabledi return _GL_FALSE.
_GL_DEBUG_OUTPUT and _GL_DEBUG_OUTPUT_SYNCHRONOUS are available only if the GL version is 4.3 or greater.
Errors
_GL_INVALID_ENUM is generated if cap is not an accepted value.
_GL_INVALID_VALUE is generated by _glIsEnabledi if index is outside the valid range for the indexed state cap.
See also
SUB _GL _glEnable, _glDisable, _glGet
Copyright 1991-2006 Silicon Graphics, Inc. Copyright 2010-2011 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.