glGetFloatv Function

Syntax

GL_APICALL void GL_APIENTRY glGetFloatv(
     GLenum pname,
     GLfloat * params
);

Parameters

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 GLfloat-type values.

Set pname to one of the following values.

GL_COLOR_CLEAR_VALUEGet the clear value for the color buffer.
GL_DEPTH_CLEAR_VALUEGet the clear value for the depth buffer.
GL_BLEND_COLORGet the value of the blend constant color.
GL_DEPTH_RANGEGet the depth value range.
GL_POLYGON_OFFSET_FACTORGet the scaling factor for the polygon offset.
GL_POLYGON_OFFSET_UNITSGet 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_ENUMThe pname argument was set to an invalid value.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL