param = gl.GetTexParameter(target, pname)
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#GL_LINEAR.
#GL_TEXTURE_MIN_FILTER#GL_NEAREST_MIPMAP_LINEAR.
#GL_TEXTURE_WRAP_S#GL_REPEAT.
#GL_TEXTURE_WRAP_T#GL_REPEAT.
#GL_TEXTURE_BORDER_COLOR
#GL_TEXTURE_PRIORITY
#GL_TEXTURE_RESIDENT#GL_TRUE, the texture is resident in texture memory. See gl.AreTexturesResident for details.
Please consult an OpenGL reference manual for more information.
#GL_TEXTURE_1D and #GL_TEXTURE_2D are accepted#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() .