glGetTexParameterfv Function

Syntax

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

Parameters

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

Return Values

No values are returned.

Description

Gets GLfloat-type values for the parameters of texture objects that are currently bound.

Set target to GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP.

Set pname to one of the following values.

GL_TEXTURE_BORDER_COLORGets the border color.
GL_TEXTURE_LOD_BIASGets the texture LOD bias.

In addition to those above, you can also specify parameters that can be obtained with glGetTexParameteriv. However, values are cast to type GLfloat.

This function generates the following errors.

GL_INVALID_ENUMThe target or pname argument was set to an invalid value.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL