/ comp / gb.opengl / gl / isenabled
Gl.IsEnabled (gb.opengl)
Syntax

    STATIC FUNCTION IsEnabled ( Capacity AS Integer ) AS Boolean

### Test whether a capability is enabled

#### Parameters

- Capacity specifies a symbolic constant indicating a GL capability.

#### Description

Gl.IsEnabled returns TRUE if Capacity is an enabled capability and returns FALSE otherwise. The following capabilities are accepted for Capacity:

- Gl.GL_ALPHA_TEST see Gl.AlphaFunc .

GLAUTONORMAL � See "glEvalCoord" .

- Gl.GL_BLEND see Gl.BlendFunc .

GLCLIPPLANEi � See "glClipPlane" . GLCOLORMATERIAL � See "glColorMaterial" . GLCULLFACE � See "glCullFace" . GLDEPTHTEST � See "glDepthFunc" and "glDepthRange" . GLDITHER � See "glEnable" . GLFOG � See "glFog" . GLLIGHTi � See "glLightModel" and "glLight" . GLLIGHTING � See "glMaterial" , "glLightModel" , and "glLight" . GLLINESMOOTH � See "glLineWidth" . GLLINESTIPPLE � See "glLineStipple" . GLLOGICOP � See "glLogicOp" . GLMAP1COLOR4 � See "glMap1" . GLMAP1INDEX � See "glMap1" . GLMAP1NORMAL � See "glMap1" . GLMAP1TEXTURECOORD1 � See "glMap1" . GLMAP1TEXTURECOORD2 � See "glMap1" . GLMAP1TEXTURECOORD3 � See "glMap1" . GLMAP1TEXTURECOORD4 � See "glMap1" . GLMAP1VERTEX3 � See "glMap1" . GLMAP1VERTEX4 � See "glMap1" . GLMAP2COLOR4 � See "glMap2" . GLMAP2INDEX � See "glMap2" . GLMAP2NORMAL � See "glMap2" . GLMAP2TEXTURECOORD1 � See "glMap2" . GLMAP2TEXTURECOORD2 � See "glMap2" . GLMAP2TEXTURECOORD3 � See "glMap2" . GLMAP2TEXTURECOORD4 � See "glMap2" . GLMAP2VERTEX3 � See "glMap2" . GLMAP2VERTEX4 � See "glMap2" . GLNORMALIZE � See "glNormal" . GLPOINTSMOOTH � See "glPointSize" . GLPOLYGONSMOOTH � See "glPolygonMode" . GLPOLYGONSTIPPLE � See "glPolygonStipple" . GLSCISSORTEST � See "glScissor" . GLSTENCILTEST � See "glStencilFunc" and "glStencilOp" . GLTEXTURE1D � See "glTexImage1D" . GLTEXTURE2D � See "glTexImage2D" . GLTEXTUREGENQ � See "glTexGen" . GLTEXTUREGENR � See "glTexGen" . GLTEXTUREGENS � See "glTexGen" . GLTEXTUREGENT � See "glTexGen" . NOTES If an error is generated, glIsEnabled returns zero. ERRORS GLINVALIDENUM is generated if cap is not an accepted value. GLINVALIDOPERATION is generated if glIsEnabled is called between a call to glBegin and the corresponding call to glEnd. SEE ALSO "glEnable"