GLISENABLED(3G)

    .SH "NAME" glIsEnabled,_glIsEnabledi - test whether a capability is enabled
    .SH "C SPECIFICATION"

            .HP u GLboolean glIsEnabled(GLenum cap);

            .HP u GLboolean glIsEnabledi(GLenum cap, GLuint index);

    .SH "PARAMETERS"

        .PP cap

                    Specifies a symbolic constant indicating a GL capability.

            .RE
            .PP index

                        Specifies the index of the capability.

                .RE

            .SH "DESCRIPTION"
                .PP glIsEnabled returns GL_TRUE if cap is an enabled capability and returns GL_FALSE otherwise. For glIsEnabledi, index specifies the index of the capability to test. index must be between zero and the count of indexed capabilities for cap. Initially all capabilities except GL_DITHER are disabled; GL_DITHER is initially enabled.
                .PP The following capabilities are accepted for cap:
                .PP
                .TS allbox tab(:); lB lB. T{ Constant T}:T{ See T} l l l l l l l l l l l l l l l l l l l l l l l l l l. T{ GL_BLEND T}:T{ glBlendFunc() T} T{ GL_CULL_FACE T}:T{ glCullFace() T} T{ GL_DEBUG_OUTPUT T}:T{ glEnable() T} T{ GL_DEBUG_OUTPUT_SYNCHRONOUS T}:T{ glEnable() T} T{ GL_DEPTH_TEST T}:T{ glDepthFunc(), glDepthRangef() T} T{ GL_DITHER T}:T{ glEnable() T} T{ GL_POLYGON_OFFSET_FILL T}:T{ glPolygonOffset() T} T{ GL_PRIMITIVE_RESTART_FIXED_INDEX T}:T{ glEnable() T} T{ GL_RASTERIZER_DISCARD T}:T{ glEnable() T} T{ GL_SAMPLE_ALPHA_TO_COVERAGE T}:T{ glSampleCoverage() T} T{ GL_SAMPLE_COVERAGE T}:T{ glSampleCoverage() T} T{ GL_SCISSOR_TEST T}:T{ glScissor() T} T{ GL_STENCIL_TEST T}:T{ glStencilFunc(), glStencilOp() T}

                .PP

            .SH "NOTES"
                .PP If an error is generated, glIsEnabled and glIsEnabledi return GL_FALSE.

            .SH "ERRORS"
                .PP GL_INVALID_ENUM is generated if cap is not an accepted value.
                .PP GL_INVALID_VALUE is generated by glIsEnabledi if index is outside the valid range for the indexed state cap.

            .SH "API VERSION SUPPORT"

                .TS allbox tab(:); l l l l l l l l l l. T{ glIsEnabled T}:T{ T}:T{ T}:T{ T}:T{ T} T{ glIsEnabledi T}:T{ T}:T{ T}:T{ T}:T{ T}

            .SH "SEE ALSO"
                .PP glEnable(), glDisable(), glGet()

            .SH "COPYRIGHT"
                .PP Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2015 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.

COPYRIGHT
Copyright © 1991-2006 Silicon Graphics, Inc.
Copyright © 2010-2015 Khronos Group