The glGetTexParameterfv and glGetTexParameteriv functions return texture parameter values.
void glGetTexParameterfv(
GLenum target,
GLenum pname,
GLfloat * params
);
void glGetTexParameteriv(
GLenum target,
GLenum pname,
GLint * params
);
The glGetTexParameter function returns in params the value or values of the texture parameter specified as pname. The target parameter defines the target texture—either GL_TEXTURE_1D or GL_TEXTURE_2D—to specify one- or two-dimensional texturing. The pname parameter accepts the same symbols as glTexParameter, with the same interpretations.
If an error is generated, no change is made to the contents of params.
The following are the error codes generated and their conditions.
Error Code | Condition |
---|---|
GL_INVALID_ENUM | target or pname was not an accepted value. |
GL_INVALID_OPERATION | glGetTexParameter was called between a call to glBegin and the corresponding call to glEnd. |
Windows NT: Use version 3.5 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in gl.h.
Import Library: Link with opengl32.lib.
glBegin, glEnd, glTexParameter