glGetTexParameterf , glGetTexParameterx - return texture parameter values
void glGetTexParameterf(GLenum target,
GLenum pname,
GLfloat * params)
void glGetTexParameterx(GLenum target,
GLenum pname,
GLfixed * params)targetSpecifies the target texture, which must be GL_TEXTURE_2D.
pnameSpecifies the symbolic name of a texture parameter. Which can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, or GL_GENERATE_MIPMAP.
paramsReturns the texture parameters.
glGetTexParameter returns in params the value or values of the texture parameter specified as pname. target defines the target texture, which must be GL_TEXTURE_2D which specifies two-dimensional texturing. pname accepts the same symbols as glTexParameter, with the same interpretations:
GL_TEXTURE_MIN_FILTERReturns the texture minifying function. Which can one of the following: GL_NEAREST, GL_LINEAR, GL_NEAREST_MIPMAP_NEAREST, GL_LINEAR_MIPMAP_NEAREST, GL_NEAREST_MIPMAP_LINEAR, or GL_LINEAR_MIPMAP_LINEAR. The initial value is GL_NEAREST_MIPMAP_LINEAR.
GL_TEXTURE_MAG_FILTERReturns the texture magnification function. Which can be either GL_NEAREST or GL_LINEAR. The initial value is GL_LINEAR.
GL_TEXTURE_WRAP_SReturns the wrap parameter for texture coordinate s. Which can be either: GL_CLAMP, GL_CLAMP_TO_EDGE, or GL_REPEAT. The initial value is GL_REPEAT.
GL_TEXTURE_WRAP_TReturns the wrap parameter for texture coordinate t. Which can be either: GL_CLAMP, GL_CLAMP_TO_EDGE, or GL_REPEAT. The initial value is GL_REPEAT.
GL_GENERATE_MIPMAPReturns the automatic mipmap generation parameter. The initial value is GL_FALSE.
If an error is generated, no change is made to the contents of params.
GL_INVALID_ENUM is generated if target or pname is not one of the accepted defined values.
Copyright © 2003-2004 Silicon Graphics, Inc.
This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.