glIsEnabled  7IJQQW

[New - Windows 95, OEM Service Release 2]

The gllsEnabled function tests whether a capability is enabled.

GLboolean glIsEnabled(

    GLenum cap

 

   );

 

 

Parameters

cap

A symbolic constant indicating an OpenGL capability. The following capabilities are accepted:

GL_ALPHA_TEST

See glAlphaFunc3OLHFW4

GL_AUTO_NORMAL

See glEvalCoordJY1DQM

GL_BLEND

See glBlendFuncIXY.WO

GL_CLIP_PLANEi

See glClipPlane6HCR6N

GL_COLOR_MATERIAL

See glColorMaterial2U57YMP

GL_CULL_FACE

See glCullFaceOMBWE

GL_DEPTH_TEST

See glDepthFuncC4GZX and glDepthRange1RRKZ50

GL_DITHER

See glEnable194O61P

GL_FOG

See glFog8KNK3J

GL_LIGHTi

See glLightModel21E1NBY and glLightOXNARM

GL_LIGHTING

See glMaterialECT15., glLightModel21E1NBY, and glLightOXNARM

GL_LINE_SMOOTH

See glLineWidthD7DWCH

GL_LINE_STIPPLE

See glLineStipple7PZ0SH

GL_LOGIC_OP

See glLogicOpN__P0P

GL_MAP1_COLOR_4

See glMap1E5BV.H

GL_MAP1_INDEX

See glMap1E5BV.H

GL_MAP1_NORMAL

See glMap1E5BV.H

GL_MAP1_TEXTURE_COORD_1

See glMap1E5BV.H

GL_MAP1_TEXTURE_COORD_2

See glMap1E5BV.H

GL_MAP1_TEXTURE_COORD_3

See glMap1E5BV.H

GL_MAP1_TEXTURE_COORD_4

See glMap1E5BV.H

GL_MAP1_VERTEX_3

See glMap1E5BV.H

GL_MAP1_VERTEX_4

See glMap1E5BV.H

GL_MAP2_COLOR_4

See glMap2E5BV.I

GL_MAP2_INDEX

See glMap2E5BV.I

GL_MAP2_NORMAL

See glMap2E5BV.I

GL_MAP2_TEXTURE_COORD_1

See glMap2E5BV.I

GL_MAP2_TEXTURE_COORD_2

See glMap2E5BV.I

GL_MAP2_TEXTURE_COORD_3

See glMap2E5BV.I

GL_MAP2_TEXTURE_COORD_4

See glMap2E5BV.I

GL_MAP2_VERTEX_3

See glMap2E5BV.I

GL_MAP2_VERTEX_4

See glMap2E5BV.I

GL_NORMALIZE

See glNormal2NHAN7

GL_POINT_SMOOTH

See glPointSizeHQOGCD

GL_POLYGON_SMOOTH

See glPolygonMode1OYC7V5

GL_POLYGON_STIPPLE

See glPolygonStipple1N7CB5B

GL_SCISSOR_TEST

See glScissorK8Q9S3

GL_STENCIL_TEST

See glStencilFunc1NSO64P and glStencilOp1N11GRZ

GL_TEXTURE_1D

See glTexImage1D1HIX0MK

GL_TEXTURE_2D

See glTexImage2D1HIX0NK

GL_TEXTURE_GEN_Q

See glTexGen3IH49F3

GL_TEXTURE_GEN_R

See glTexGen3IH49F3

GL_TEXTURE_GEN_S

See glTexGen3IH49F3

GL_TEXTURE_GEN_T

See glTexGen3IH49F3

 

Remarks

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.

 

See Also

glBegin, glEnable, glEnd