GL_APICALL void GL_APIENTRY glGetBooleanv(
GLenum pname,
GLboolean * params
);
| Name | Description | |
|---|---|---|
| in | pname | Name of the parameter to get |
| out | params | Array storing the obtained parameters |
Gets GL parameter settings as GLboolean-type values.
Set pname to one of the following values.
| GL_COLOR_WRITEMASK | Gets the setting that indicates whether color buffer access is enabled. |
|---|---|
| GL_DEPTH_WRITEMASK | Gets the setting that indicates whether depth buffer access is enabled. |
| GL_SHADER_COMPILER | Always gets GL_FALSE. |
| GL_COLOR_LOGIC_OP | Gets a value that indicates whether logical operations are enabled for pixels. |
| GL_BLEND | Gets a value that indicates whether blend features are enabled. |
| GL_DEPTH_TEST | Gets a value that indicates whether depth tests are enabled. |
| GL_STENCIL_TEST | Gets a value that indicates whether stencil tests are enabled. |
| GL_POLYGON_OFFSET_FILL | Gets a value that indicates whether polygon offsets are enabled. |
| GL_CULL_FACE | Gets 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_ENUM | The pname argument was set to an invalid value. |
|---|
CONFIDENTIAL