Click or drag to resize
XDL

XGraphicsglEnable Method

The glEnable and glDisable functions enable or disable OpenGL capabilities.

Namespace:  Pixoneer.NXDL.NGR
Assembly:  NXDLgr (in NXDLgr.dll) Version: 1.2.817.72
Syntax
C#
public void glEnable(
	int cap
)

Parameters

cap
Type: SystemInt32
A symbolic constant indicating an OpenGL capability. For discussion of the values cap can take, see the following Remarks section.

Return Value

Type: 
This function does not return a value.
Remarks
The glEnable and glDisable functions enable and disable various OpenGL graphics capabilities. Use glIsEnabled or glGet to determine the current setting of any capability. Both glEnable and glDisable take a single argument, cap, which can assume one of the following values:
ValueMeaning
XGraphics.GL_ALPHA_TESTIf enabled, do alpha testing. See glAlphaFunc.
XGraphics.GL_AUTO_NORMALIf enabled, compute surface normal vectors analytically when either GL_MAP2_VERTEX_3 or GL_MAP2_VERTEX_4 has generated vertices. See glMap2.
XGraphics.GL_BLENDIf enabled, blend the incoming RGBA color values with the values in the color buffers. See glBlendFunc.
XGraphics.GL_CLIP_PLANEiIf enabled, clip geometry against user-defined clipping plane i. See glClipPlane.
XGraphics.GL_COLOR_LOGIC_OPIf enabled, apply the current logical operation to the incoming RGBA color and color buffer values. See glLogicOp.
XGraphics.GL_COLOR_MATERIALIf enabled, have one or more material parameters track the current color. See glColorMaterial.
XGraphics.GL_CULL_FACEIf enabled, cull polygons based on their winding in window coordinates. See glCullFace.
XGraphics.GL_DEPTH_TESTIf enabled, do depth comparisons and update the depth buffer. See glDepthFunc and glDepthRange.
XGraphics.GL_DITHERIf enabled, dither color components or indexes before they are written to the color buffer.
XGraphics.GL_FOGIf enabled, blend a fog color into the post-texturing color. See glFog.
XGraphics.GL_INDEX_LOGIC_OPIf enabled, apply the current logical operation to the incoming index and color buffer indices. See glLogicOp.
XGraphics.GL_LIGHTiIf enabled, include light i in the evaluation of the lighting equation. See glLightModel and glLight.
XGraphics.GL_LIGHTINGIf enabled, use the current lighting parameters to compute the vertex color or index. If disabled, associate the current color or index with each vertex. See glMaterial, glLightModel, and glLight.
XGraphics.GL_LINE_SMOOTHIf enabled, draw lines with correct filtering. If disabled, draw aliased lines. See glLineWidth.
XGraphics.GL_LINE_STIPPLEIf enabled, use the current line stipple pattern when drawing lines. See glLineStipple.
XGraphics.GL_LOGIC_OPIf enabled, apply the currently selected logical operation to the incoming and color-buffer indexes. See glLogicOp.
XGraphics.GL_MAP1_COLOR_4If enabled, calls to glEvalCoord1, glEvalMesh1, and glEvalPoint1 generate RGBA values. See also glMap1.
XGraphics.GL_MAP1_INDEXIf enabled, calls to glEvalCoord1, glEvalMesh1, and glEvalPoint1 generate color indexes. See also glMap1.
XGraphics.GL_MAP1_NORMALIf enabled, calls to glEvalCoord1, glEvalMesh1, and glEvalPoint1 generate normals. See also glMap1.
XGraphics.GL_MAP1_TEXTURE_COORD_1If enabled, calls to glEvalCoord1, glEvalMesh1, and glEvalPoint1 generate s texture coordinates. See also glMap1.
XGraphics.GL_MAP1_TEXTURE_COORD_2If enabled, calls to glEvalCoord1, glEvalMesh1, and glEvalPoint1 generate s and t texture coordinates. See also glMap1.
XGraphics.GL_MAP1_TEXTURE_COORD_3If enabled, calls to glEvalCoord1, glEvalMesh1, and glEvalPoint1 generate s, t, and r texture coordinates. See also glMap1.
XGraphics.GL_MAP1_TEXTURE_COORD_4If enabled, calls to glEvalCoord1, glEvalMesh1, and glEvalPoint1 generate s, t, r, and q texture coordinates. See also glMap1.
XGraphics.GL_MAP1_VERTEX_3If enabled, calls to glEvalCoord1, glEvalMesh1, and glEvalPoint1 generate x, y, and z vertex coordinates. See also glMap1.
XGraphics.GL_MAP1_VERTEX_4If enabled, calls to glEvalCoord1, glEvalMesh1, and glEvalPoint1 generate homogeneous x, y, z, and w vertex coordinates. See also glMap1.
XGraphics.GL_MAP2_COLOR_4If enabled, calls to glEvalCoord2, glEvalMesh2, and glEvalPoint2 generate RGBA values. See also glMap2.
XGraphics.GL_MAP2_INDEXIf enabled, calls to glEvalCoord2, glEvalMesh2, and glEvalPoint2 generate color indexes. See also glMap2.
XGraphics.GL_MAP2_NORMALIf enabled, calls to glEvalCoord2, glEvalMesh2, and glEvalPoint2 generate normals. See also glMap2.
XGraphics.GL_MAP2_TEXTURE_COORD_1If enabled, calls to glEvalCoord2, glEvalMesh2, and glEvalPoint2 generate s texture coordinates. See also glMap2.
XGraphics.GL_MAP2_TEXTURE_COORD_2If enabled, calls to glEvalCoord2, glEvalMesh2, and glEvalPoint2 generate s and t texture coordinates. See also glMap2.
XGraphics.GL_MAP2_TEXTURE_COORD_3If enabled, calls to glEvalCoord2, glEvalMesh2, and glEvalPoint2 generate s, t, and r texture coordinates. See also glMap2.
XGraphics.GL_MAP2_TEXTURE_COORD_4If enabled, calls to glEvalCoord2, glEvalMesh2, and glEvalPoint2 generate homogeneous x, y, z, and w vertex coordinates. See also glMap2.
XGraphics.GL_NORMALIZEIf enabled, normal vectors specified with glNormal are scaled to unit length after transformation. See glNormal.
XGraphics.GL_POINT_SMOOTHIf enabled, draw points with proper filtering. If disabled, draw aliased points. See glPointSize.
XGraphics.GL_POLYGON_OFFSET_FILLIf enabled, and if the polygon is rendered in GL_FILL mode, an offset is added to depth values of a polygon's fragments before the depth comparison is performed. See glPolygonOffset.
XGraphics.GL_POLYGON_OFFSET_LINEIf enabled, and if the polygon is rendered in GL_LINE mode, an offset is added to depth values of a polygon's fragments before the depth comparison is performed. See glPolygonOffset.
XGraphics.GL_POLYGON_OFFSET_POINTIf enabled, an offset is added to depth values of a polygon's fragments before the depth comparison is performed, if the polygon is rendered in GL_POINT mode. See glPolygonOffset.
XGraphics.GL_POLYGON_SMOOTHIf enabled, draw polygons with proper filtering. If disabled, draw aliased polygons. See glPolygonMode.
XGraphics.GL_POLYGON_STIPPLEIf enabled, use the current polygon stipple pattern when rendering polygons. See glPolygonStipple.
XGraphics.GL_SCISSOR_TESTIf enabled, discard fragments that are outside the scissor rectangle. See glScissor.
XGraphics.GL_STENCIL_TESTIf enabled, do stencil testing and update the stencil buffer. See glStencilFunc and glStencilOp.
XGraphics.GL_TEXTURE_1DIf enabled, one-dimensional texturing is performed (unless two-dimensional texturing is also enabled). See glTexImage1D.
XGraphics.GL_TEXTURE_2DIf enabled, two-dimensional texturing is performed. See glTexImage2D.
XGraphics.GL_TEXTURE_GEN_QIf enabled, the q texture coordinate is computed using the texture-generation function defined with glTexGen. Otherwise, the current q texture coordinate is used.
XGraphics.GL_TEXTURE_GEN_RIf enabled, the r texture coordinate is computed using the texture generation function defined with glTexGen. If disabled, the current r texture coordinate is used.
XGraphics.GL_TEXTURE_GEN_SIf enabled, the s texture coordinate is computed using the texture generation function defined with glTexGen. If disabled, the current s texture coordinate is used.
XGraphics.GL_TEXTURE_GEN_TIf enabled, the t texture coordinate is computed using the texture generation function defined with glTexGen. If disabled, the current t texture coordinate is used.
See Also