glGetTexParameter — return texture parameter values
void glGetTexParameterfv( | GLenum target, |
GLenum pname, | |
GLfloat * params) ; |
void glGetTexParameteriv( | GLenum target, |
GLenum pname, | |
GLint * params) ; |
target
Specifies the symbolic name of the target texture of the active texture unit. GL_TEXTURE_2D
and GL_TEXTURE_CUBE_MAP
are accepted.
pname
Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER
, GL_TEXTURE_MIN_FILTER
, GL_TEXTURE_WRAP_S
, and GL_TEXTURE_WRAP_T
are accepted.
params
Returns the texture parameter.
glGetTexParameter
returns in params
the value of the texture parameter specified as pname
. target
defines the target texture of the active texture unit, either GL_TEXTURE_2D
or GL_TEXTURE_CUBE_MAP
, to specify two-dimensional or cube-mapped 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_S
Returns the single-valued wrapping function for texture coordinate , a symbolic constant. The initial value is GL_REPEAT
.
GL_TEXTURE_WRAP_T
Returns the single-valued wrapping function for texture coordinate , a symbolic constant. The initial value is GL_REPEAT
.
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/.