glGetBooleanv Function

Syntax

GL_APICALL void GL_APIENTRY glGetBooleanv(
     GLenum pname,
     GLboolean * params
);

Arguments

Name Description
in pname Name of the parameter to get
out params Array storing the obtained parameters

Return Values

No values are returned.

Description

Gets GL parameter settings as GLboolean-type values.

Set pname to one of the following values.

GL_COLOR_WRITEMASKGets the setting that indicates whether color buffer access is enabled.
GL_DEPTH_WRITEMASKGets the setting that indicates whether depth buffer access is enabled.
GL_SHADER_COMPILERAlways gets GL_FALSE.
GL_COLOR_LOGIC_OPGets a value that indicates whether logical operations are enabled for pixels.
GL_BLENDGets a value that indicates whether blend features are enabled.
GL_DEPTH_TESTGets a value that indicates whether depth tests are enabled.
GL_STENCIL_TESTGets a value that indicates whether stencil tests are enabled.
GL_POLYGON_OFFSET_FILLGets a value that indicates whether polygon offsets are enabled.
GL_CULL_FACEGets a value that indicates whether culling is enabled.

You can also specify any setting that can be obtained by glGetIntegerv or glGetFloatv, but you will get GL_FALSE for any setting that has a value of 0 and GL_TRUE for any setting that has a nonzero value.

This function generates the following errors.

GL_INVALID_ENUMThe pname argument was set to an invalid value.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL