Name
gl.GetTexParameter -- return texture parameter values
Synopsis
param = gl.GetTexParameter(target, pname)
Function
gl.GetTexParameter() returns 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 gl.TexParameter() 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 s, a symbolic constant. The initial value is #GL_REPEAT.

#GL_TEXTURE_WRAP_T
Returns the single-valued wrapping function for texture coordinate t, a symbolic constant. The initial value is #GL_REPEAT.

#GL_TEXTURE_BORDER_COLOR
Returns four floating-point numbers that comprise the RGBA color of the texture border. The initial value is (0, 0, 0, 0).

#GL_TEXTURE_PRIORITY
Returns the residence priority of the target texture (or the named texture bound to it). The initial value is 1. See gl.PrioritizeTextures for details.

#GL_TEXTURE_RESIDENT
Returns the residence status of the target texture. If the value returned in params is #GL_TRUE, the texture is resident in texture memory. See gl.AreTexturesResident for details.

Please consult an OpenGL reference manual for more information.

Inputs
target
specifies the symbolic name of the target texture; #GL_TEXTURE_1D and #GL_TEXTURE_2D are accepted
pname
specifies the symbolic name of a texture parameter (see above for supported values)
Results
param
requested data
Errors
#GL_INVALID_ENUM is generated if target or pname is not an accepted value.

#GL_INVALID_OPERATION is generated if gl.GetTexParameter() is executed between the execution of gl.Begin() and the corresponding execution of gl.End() .


Show TOC