GL_APICALL void GL_APIENTRY glGetIntegerv(
GLenum pname,
GLint * params
);
| Name | Description | |
|---|---|---|
| in | pname | Name of the parameter to get |
| out | params | Array storing the obtained parameters |
Gets GL parameter settings as GLint-type values.
Set pname to one of the following values.
| GL_STENCIL_CLEAR_VALUE | Gets the clear value for the stencil buffer. |
|---|---|
| GL_EARLY_DEPTH_CLEAR_VALUE_DMP | Gets the clear value for the early depth buffer. |
| GL_EARLY_DEPTH_FUNC_DMP | Gets the comparison function for the early depth test. |
| GL_SCISSOR_BOX | Gets the coordinates of the left and bottom edges, as well as the width and height, of the valid scissoring area. |
| GL_DEPTH_FUNC | Gets the comparison function for the depth test. |
| GL_STENCIL_FUNC | Gets the comparison function for the stencil test. |
| GL_STENCIL_FAIL | Gets the method used to manipulate the stencil value when the stencil test fails. |
| GL_STENCIL_PASS_DEPTH_FAIL | Gets the method used to manipulate the stencil value when the stencil test passes and the depth test fails. |
| GL_STENCIL_PASS_DEPTH_PASS | Gets the method used to manipulate the stencil value when the stencil and depth tests pass. |
| GL_STENCIL_REF | Gets the reference value for the stencil test. |
| GL_STENCIL_VALUE_MASK | Gets the mask pattern used in the stencil buffer. |
| GL_BLEND_SRC_RGB | Gets the RGB components' source blending factors. |
| GL_BLEND_DST_RGB | Gets the RGB components' destination blending factors. |
| GL_BLEND_SRC_ALPHA | Gets the alpha component's source blending factors. |
| GL_BLEND_DST_ALPHA | Gets the alpha component's destination blending factors. |
| GL_BLEND_EQUATION_RGB | Gets the blending function for RGB components. |
| GL_BLEND_EQUATION_ALPHA | Gets the blending function for the alpha component. |
| GL_STENCIL_WRITEMASK | Gets a mask pattern that indicates where stencil buffer access is enabled. |
| GL_CULL_FACE_MODE | Gets the setting that indicates the faces to cull. |
| GL_FRONT_FACE | Gets the value of the setting that defines the front face of a polygon. |
| GL_VIEWPORT | Gets the coordinates of the left and bottom edges, as well as the width and height, of the viewport. |
| GL_MAX_VIEWPORT_DIMS | Gets the viewport's maximum width and height. |
| GL_LOGIC_OP_MODE | Gets the logical operation mode for pixels. |
| GL_ARRAY_BUFFER_BINDING | Gets the vertex buffer objects bound to the bind target GL_ARRAY_BUFFER. |
| GL_ELEMENT_ARRAY_BUFFER_BINDING | Gets the vertex buffer objects bound to the bind target GL_ELEMENT_ARRAY_BUFFER. |
| GL_VERTEX_STATE_COLLECTION_BINDING_DMP | Gets the vertex state collection objects that are currently bound. |
| GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS | Gets the number of supported texture units. |
| GL_ACTIVE_TEXTURE | Gets the currently active textures. |
| GL_MAX_TEXTURE_SIZE | Gets the maximum supported size for 2D textures. |
| GL_MAX_CUBE_MAP_TEXTURE_SIZE | Gets the maximum supported size for cube-map textures. |
| GL_TEXTURE_BINDING_2D | Gets the texture objects currently bound to GL_TEXTURE_2D. |
| GL_TEXTURE_BINDING_CUBE_MAP | Gets the texture objects currently bound to GL_TEXTURE_CUBE_MAP. |
| GL_NUM_COMPRESSED_TEXTURE_FORMATS | Gets the number of compressed texture formats that are supported. |
| GL_COMPRESSED_TEXTURE_FORMATS | Gets the names of compressed texture formats that are supported. |
| GL_MAX_LUT_TEXTURES_DMP | Gets the maximum number of lookup table targets. |
| GL_MAX_LUT_ENTRIES_DMP | Gets the maximum number of lookup table entries. |
| GL_TEXTURE_COLLECTION_BINDING_DMP | Gets the texture collection objects that are currently bound. |
| GL_TEXTURE_BINDING_LUTi_DMP | Gets the lookup table objects that are currently bound. The value of i is greater than or equal to 0 and is at least one less than the value obtained with GL_MAX_LUT_TEXTURES_DMP. GL_SUBPIXEL_BITS gets the number of sub-pixel bits. The obtained value is always 0. |
| GL_RED_BITS | Gets the number of bits in the red component of the current color buffer. |
| GL_GREEN_BITS | Gets the number of bits in the green component of the current color buffer. |
| GL_BLUE_BITS | Gets the number of bits in the blue component of the current color buffer. |
| GL_ALPHA_BITS | Gets the number of bits in the alpha component of the current color buffer. |
| GL_DEPTH_BITS | Gets the number of bits in the depth component of the current depth buffer. |
| GL_STENCIL_BITS | Gets the number of bits in the stencil component of the current stencil buffer. |
| GL_RENDERBUFFER_BINDING | Gets the currently bound render buffer object. |
| GL_FRAMEBUFFER_BINDING | Gets the currently bound framebuffer object. |
| GL_RENDER_BLOCK_MODE_DMP | Gets the rendering block mode. |
| GL_IMPLEMENTATION_COLOR_READ_TYPE, GL_IMPLEMENTATION_COLOR_READ_FORMAT | Always gets GL_UNSIGNED_BYTE and GL_RGBA. For details on the readable formats and types, see glReadPixels. |
| GL_MAX_RENDERBUFFER_SIZE | Gets the maximum render buffer size. |
| GL_NUM_SHADER_BINARY_FORMATS | Gets the number of shader binary formats that are supported. |
| GL_SHADER_BINARY_FORMATS | Gets the names of the shader binary formats that are supported. |
| GL_MAX_VERTEX_ATTRIBS | Gets the maximum number of vertex attributes. |
| GL_CURRENT_PROGRAM | Gets the current program object. |
You cannot specify GL_EARLY_DEPTH_CLEAR_VALUE_DMP, GL_EARLY_DEPTH_FUNC_DMP, or GL_RENDER_BLOCK_MODE_DMP with POD.
In addition to those above, you can also specify any setting that can be obtained by glGetBooleanv or glGetFloatv, but you will get values that have all been cast to type GLint.
This function generates the following errors.
| GL_INVALID_ENUM | The pname argument was set to an invalid value. |
|---|
CONFIDENTIAL