G
glGetTexParameter
Chapter 7
222
glGetTexParameter
glGetTexParameterfv, glGetTexParameteriv: return texture parameter values.
C Specification
void glGetTexParameterfv(
GLenum target,
GLenum pname,
GLfloat *params)
void glGetTexParameteriv(
GLenum target,
GLenum pname,
GLint *params)
Parameters
target Specifies the symbolic name of the target texture. GL_TEXTURE_1D,
GL_TEXTURE_2D, and GL_TEXTURE_3D_EXT are accepted.
pname Specifies the symbolic name of a texture parameter.
GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER,
GL_TEXTURE_WRAP_R_EXT, GL_TEXTURE_WRAP_S,
GL_TEXTURE_WRAP_T, GL_TEXTURE_BORDER_COLOR,
GL_TEXTURE_PRIORITY, GL_GENERATE_MIPMAP_EXT,
GL_TEXTURE_COMPARE_EXT,
GL_TEXTURE_COMPARE_OPERATOR_EXT, and
GL_TEXTURE_RESIDENT are accepted.
params Returns the texture parameters.
Description
glGetTexParameter returns in params the value or values of the texture parameter
specified as pname. target defines the target texture, either GL_TEXTURE_1D or
GL_TEXTURE_2D, to specify one- or two-dimensional texturing. pname accepts the
same symbols as glTexParameter, with the same interpretations:
GL_TEXTURE_MAG_FILTER
Returns the single-valued texture magnification filter, a symbolic constant. The initial
value is GL_LINEAR.
GL_TEXTURE_MIN_FILTER
Returns the single-valued texture minification filter, a symbolic constant. The initial
value is GL_NEAREST_MIPMAP_LINEAR.
GL_TEXTURE_WRAP_R_EXT
Returns the single-valued wrapping function for texture coordinate r, a symbolic
constant.
GL_TEXTURE_WRAP_S