T
glTexParameter
Chapter 18
449
glTexParameter
glTexParameterf, glTexParameteri, glTexParameterfv,
glTexParameteriv: set texture parameters.
C Specification
void glTexParameterf(
GLenum target,
GLenum pname,
GLfloat param)
void glTexParameteri(
GLenum target,
GLenum pname,
GLint param)
void glTexParameterfv(
GLenum target,
GLenum pname,
const GLfloat *params)
void glTexParameteriv(
GLenum target,
GLenum pname,
const GLint *params)
Parameters
target Specifies the target texture, which must be either GL_TEXTURE_1D,
GL_TEXTURE_2D or GL_TEXTURE_3D_EXT.
pname Specifies the symbolic name of a single-valued texture parameter.
pname can be one of the following: GL_TEXTURE_MIN_FILTER,
GL_TEXTURE_MAG_FILTER, GL_TEXTURE_WRAP_S,
GL_TEXTURE_WRAP_T, GL_TEXTURE_PRIORITY,
GL_TEXTURE_COMPARE_EXT, or
GL_TEXTURE_COMPARE_OPERATOR_EXT.
param Specifies the value of pname.
target Specifies the target texture, which must be either GL_TEXTURE_1D
or GL_TEXTURE_2D.
pname Specifies the symbolic name of a texture parameter. pname can be one
of the following: GL_TEXTURE_MIN_FILTER,
GL_TEXTURE_MAG_FILTER, GL_TEXTURE_WRAP_S,
GL_TEXTURE_WRAP_T, GL_TEXTURE_BORDER_COLOR, or
GL_TEXTURE_PRIORITY.
params Specifies a pointer to an array where the value or values of pname are
stored.