{{QBDLDATE:07-31-2022}} {{QBDLTIME:23:48:30}} {{DISPLAYTITLE:_glEnable}} The '''_glEnable''' and '''_glDisable''' statements enable or disable OpenGL capabilities. {{PageSyntax}} : '''_glEnable''' GLenum {{Parameter|cap}} {{PageParameters}} * OpenGL is using its own set of variable types to describe its command parameters. * Use the following table to find the respective QB64 [[Variable Types]]. {{OpenGLTypesPlugin}} {{PageDescription}} * OpenGL's documentation is available in several places, so we won't reproduce it here for another time. * The full description for this command can be found at [https://docs.microsoft.com/en-us/windows/win32/opengl/glenable Microsoft Docs] and is also valid for QB64 usage. {{PageSeeAlso}} * [[_GL|SUB _GL]] * [[_glAlphaFunc]], [[_glArrayElement]], [[_glBegin]], [[_glBlendFunc]] * [[_glClipPlane]], [[_glColorMaterial]], [[_glColorPointer]], [[_glCullFace]] * [[_glDepthFunc]], [[_glDepthRange]], [[_glDisable]], [[_glDrawArrays]] * [[_glEdgeFlagPointer]], [[_glEnd]], [https://docs.microsoft.com/en-us/windows/win32/opengl/glevalcoord-functions _glEvalCoord], [https://docs.microsoft.com/en-us/windows/win32/opengl/glevalmesh-functions _glEvalMesh] * [https://docs.microsoft.com/en-us/windows/win32/opengl/glevalpoint _glEvalPoint], [https://docs.microsoft.com/en-us/windows/win32/opengl/glfog _glFog], [https://docs.microsoft.com/en-us/windows/win32/opengl/glgetbooleanv--glgetdoublev--glgetfloatv--glgetintegerv _glGet], [[_glIndexPointer]] * [[_glIsEnabled]], [https://docs.microsoft.com/en-us/windows/win32/opengl/gllight-functions _glLight], [https://docs.microsoft.com/en-us/windows/win32/opengl/gllightmodel-functions _glLightModel], [[_glLineWidth]] * [[_glLineStipple]], [[_glLogicOp]], [https://docs.microsoft.com/en-us/windows/win32/opengl/glmap1 _glMap1], [https://docs.microsoft.com/en-us/windows/win32/opengl/glmap2 _glMap2] * [https://docs.microsoft.com/en-us/windows/win32/opengl/glmaterial-functions _glMaterial], [https://docs.microsoft.com/en-us/windows/win32/opengl/glnormal-functions _glNormal], [[_glNormalPointer]], [[_glPointSize]] * [[_glPolygonMode]], [[_glPolygonStipple]], [[_glScissor]], [[_glStencilFunc]] * [[_glStencilOp]], [[_glTexCoordPointer]], [https://docs.microsoft.com/en-us/windows/win32/opengl/gltexgen-functions _glTexGen], [[_glTexImage1D]] * [[_glTexImage2D]] {{PageNavigation}} [[Category:Final]]