1GLISENABLED(3G) GLISENABLED(3G)
2
3
4
6 glIsEnabled - test whether a capability is enabled
7
8
10 GLboolean glIsEnabled( GLenum cap )
11
12
14 cap Specifies a symbolic constant indicating a GL capability.
15
17 glIsEnabled returns GL_TRUE if cap is an enabled capability and returns
18 GL_FALSE otherwise. Initially all capabilities except GL_DITHER are
19 disabled; GL_DITHER is initially enabled.
20
21 The following capabilities are accepted for cap:
22
23 ─────────────────────────────────────────────────────────────────────
24 Constant See
25 ─────────────────────────────────────────────────────────────────────
26 GL_ALPHA_TEST glAlphaFunc
27 GL_AUTO_NORMAL glEvalCoord
28 GL_BLEND glBlendFunc, glLogicOp
29 GL_CLIP_PLANEi glClipPlane
30 GL_COLOR_ARRAY glColorPointer
31 GL_COLOR_LOGIC_OP glLogicOp
32 GL_COLOR_MATERIAL glColorMaterial
33 GL_COLOR_TABLE glColorTable
34 GL_CONVOLUTION_1D glConvolutionFilter1D
35 GL_CONVOLUTION_2D glConvolutionFilter2D
36 GL_CULL_FACE glCullFace
37 GL_DEPTH_TEST glDepthFunc, glDepthRange
38 GL_DITHER glEnable
39 GL_EDGE_FLAG_ARRAY glEdgeFlagPointer
40 GL_FOG glFog
41 GL_HISTOGRAM glHistogram
42 GL_INDEX_ARRAY glIndexPointer
43 GL_INDEX_LOGIC_OP glLogicOp
44 GL_LIGHTi glLightModel, glLight
45 GL_LIGHTING glMaterial, glLightModel, glLight
46 GL_LINE_SMOOTH glLineWidth
47 GL_LINE_STIPPLE glLineStipple
48 GL_MAP1_COLOR_4 glMap1
49 GL_MAP1_INDEX glMap1
50 GL_MAP1_NORMAL glMap1
51 GL_MAP1_TEXTURE_COORD_1 glMap1
52 GL_MAP1_TEXTURE_COORD_2 glMap1
53 GL_MAP1_TEXTURE_COORD_3 glMap1
54 GL_MAP1_TEXTURE_COORD_4 glMap1
55 GL_MAP2_COLOR_4 glMap2
56 GL_MAP2_INDEX glMap2
57 GL_MAP2_NORMAL glMap2
58 GL_MAP2_TEXTURE_COORD_1 glMap2
59 GL_MAP2_TEXTURE_COORD_2 glMap2
60 GL_MAP2_TEXTURE_COORD_3 glMap2
61 GL_MAP2_TEXTURE_COORD_4 glMap2
62 GL_MAP2_VERTEX_3 glMap2
63 GL_MAP2_VERTEX_4 glMap2
64 GL_MINMAX glMinmax
65 GL_NORMAL_ARRAY glNormalPointer
66
67 GL_NORMALIZE glNormal
68 GL_POINT_SMOOTH glPointSize
69 GL_POLYGON_SMOOTH glPolygonMode
70 GL_POLYGON_OFFSET_FILL glPolygonOffset
71 GL_POLYGON_OFFSET_LINE glPolygonOffset
72 GL_POLYGON_OFFSET_POINT glPolygonOffset
73 GL_POLYGON_STIPPLE glPolygonStipple
74 GL_POST_COLOR_MATRIX_COLOR_TABLE glColorTable
75 GL_POST_CONVOLUTION_COLOR_TABLE glColorTable
76 GL_RESCALE_NORMAL glNormal
77 GL_SCISSOR_TEST glScissor
78 GL_SEPARABLE_2D glSeparableFilter2D
79 GL_STENCIL_TEST glStencilFunc, glStencilOp
80 GL_TEXTURE_1D glTexImage1D
81 GL_TEXTURE_2D glTexImage2D
82 GL_TEXTURE_3D glTexImage3D
83 GL_TEXTURE_COORD_ARRAY glTexCoordPointer
84 GL_TEXTURE_GEN_Q glTexGen
85 GL_TEXTURE_GEN_R glTexGen
86 GL_TEXTURE_GEN_S glTexGen
87 GL_TEXTURE_GEN_T glTexGen
88 GL_VERTEX_ARRAY glVertexPointer
89 ─────────────────────────────────────────────────────────────────────
90
91
93 If an error is generated, glIsEnabled returns 0.
94
95 GL_COLOR_LOGIC_OP, GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_INDEX_ARRAY,
96 GL_INDEX_LOGIC_OP, GL_NORMAL_ARRAY, GL_POLYGON_OFFSET_FILL,
97 GL_POLYGON_OFFSET_LINE, GL_POLYGON_OFFSET_POINT,
98 GL_TEXTURE_COORD_ARRAY, and GL_VERTEX_ARRAY are available only if the
99 GL version is 1.1 or greater
100
101 GL_RESCALE_NORMAL, and GL_TEXTURE_3D are available only if the GL ver‐
102 sion is 1.2 or greater.
103
104 GL_COLOR_TABLE, GL_CONVOLUTION_1D, GL_CONVOLUTION_2D, GL_HISTOGRAM,
105 GL_MINMAX, GL_POST_COLOR_MATRIX_COLOR_TABLE,
106 GL_POST_CONVOLUTION_COLOR_TABLE, and GL_SEPARABLE_2D are available only
107 if GL_ARB_imaging is returned when glGet is called with GL_EXTENSIONS.
108
109 When the GL_ARB_multitexture extension is supported, the following
110 parameters return the associated value for the active texture unit.
111 GL_TEXTURE_1D, GL_TEXTURE_BINDING_1D, GL_TEXTURE_2D,
112 GL_TEXTURE_BINDING_2D, GL_TEXTURE_3D, GL_TEXTURE_BINDING_3D,
113 GL_TEXTURE_GEN_S, GL_TEXTURE_GEN_T, GL_TEXTURE_GEN_R, GL_TEXTURE_GEN_Q,
114 GL_TEXTURE_MATRIX, and GL_TEXTURE_STACK_DEPTH. Likewise, the following
115 parameters return the associated value for the active client texture
116 unit: GL_TEXTURE_COORD_ARRAY, GL_TEXTURE_COORD_ARRAY_SIZE,
117 GL_TEXTURE_COORD_ARRAY_STRIDE, GL_TEXTURE_COORD_ARRAY_TYPE.
118
120 GL_INVALID_ENUM is generated if cap is not an accepted value.
121
122 GL_INVALID_OPERATION is generated if glIsEnabled is executed between
123 the execution of glBegin and the corresponding execution of glEnd.
124
126 glEnable(3G), glEnableClientState(3G), glGet(3G)
127
128
129
130
131 GLISENABLED(3G)