glGetTexParameteriv Function

Syntax

GL_APICALL void GL_APIENTRY glGetTexParameteriv(
     GLenum target,
     GLenum pname,
     GLint * params
);

Parameters

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

Return Values

No values are returned.

Description

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

You can set target to the following values.

GL_TEXTURE_2D2D texture.
GL_TEXTURE_CUBE_MAPCube-map texture.

You can set pname to the following values.

GL_TEXTURE_MIN_FILTERGets the texture minification filter.
GL_TEXTURE_MAG_FILTERGets the texture magnification filter.
GL_TEXTURE_WRAP_SGets the wrap mode for texture coordinate s.
GL_TEXTURE_WRAP_TGets the wrap mode for texture coordinate t.
GL_TEXTURE_MIN_LODGets the minimum mipmap level of detail.
GL_TEXTURE_DATA_ADDR_DMPGets the address of the bound texture object(s).

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

The following errors occur in this function.

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

Revision History

2010/05/12
Added a value, GL_TEXTURE_DATA_ADDR_DMP, that can be specified for pname.
2010/01/07
Initial version.

CONFIDENTIAL