GL_APICALL void GL_APIENTRY glGetFloatv(
GLenum pname,
GLfloat * params
);
| Name | Description | |
|---|---|---|
| in | pname | Name of the parameter to get |
| out | params | Array storing the obtained parameters |
Gets GL parameter settings as GLfloat-type values.
Set pname to one of the following values.
| GL_COLOR_CLEAR_VALUE | Get the clear value for the color buffer. |
|---|---|
| GL_DEPTH_CLEAR_VALUE | Get the clear value for the depth buffer. |
| GL_BLEND_COLOR | Get the value of the blend constant color. |
| GL_DEPTH_RANGE | Get the depth value range. |
| GL_POLYGON_OFFSET_FACTOR | Get the scaling factor for the polygon offset. |
| GL_POLYGON_OFFSET_UNITS | Get the unit value of the polygon offset. |
You can also specify any setting that can be obtained by glGetBoolean or glGetIntegerv, but you will get values that have all been cast to type GLfloat.
This function generates the following errors.
| GL_INVALID_ENUM | The pname argument was set to an invalid value. |
|---|
CONFIDENTIAL