glGetTexLevelParameter

return texture parameter values for a specific level of detail

Signature

glGetTexLevelParameter( )->
glGetTexLevelParameterfv( GLenum ( target ) , GLint ( level ) , GLenum ( pname ) , GLfloat * ( params ) )-> void
glGetTexLevelParameterfv( target , level , pname , params )
glGetTexLevelParameteriv( GLenum ( target ) , GLint ( level ) , GLenum ( pname ) , GLint * ( params ) )-> void
glGetTexLevelParameteriv( target , level , pname , params )

Parameters

VariablesDescription
target
Specifies the symbolic name of the target texture, one of GL_TEXTURE_1D , GL_TEXTURE_2D , GL_TEXTURE_3D , GL_TEXTURE_1D_ARRAY , GL_TEXTURE_2D_ARRAY , GL_TEXTURE_RECTANGLE , GL_TEXTURE_2D_MULTISAMPLE , GL_TEXTURE_2D_MULTISAMPLE_ARRAY , GL_TEXTURE_CUBE_MAP_POSITIVE_X , GL_TEXTURE_CUBE_MAP_NEGATIVE_X , GL_TEXTURE_CUBE_MAP_POSITIVE_Y , GL_TEXTURE_CUBE_MAP_NEGATIVE_Y , GL_TEXTURE_CUBE_MAP_POSITIVE_Z , GL_TEXTURE_CUBE_MAP_NEGATIVE_Z , GL_PROXY_TEXTURE_1D , GL_PROXY_TEXTURE_2D , GL_PROXY_TEXTURE_3D , GL_PROXY_TEXTURE_1D_ARRAY , GL_PROXY_TEXTURE_2D_ARRAY , GL_PROXY_TEXTURE_RECTANGLE , GL_PROXY_TEXTURE_2D_MULTISAMPLE , GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY , GL_PROXY_TEXTURE_CUBE_MAP , or GL_TEXTURE_BUFFER .
level
Specifies the level-of-detail number of the desired image. Level 0 is the base image level. Level n is the n th mipmap reduction image.
pname
Specifies the symbolic name of a texture parameter. GL_TEXTURE_WIDTH , GL_TEXTURE_HEIGHT , GL_TEXTURE_DEPTH , GL_TEXTURE_INTERNAL_FORMAT , GL_TEXTURE_RED_SIZE , GL_TEXTURE_GREEN_SIZE , GL_TEXTURE_BLUE_SIZE , GL_TEXTURE_ALPHA_SIZE , GL_TEXTURE_DEPTH_SIZE , GL_TEXTURE_COMPRESSED , GL_TEXTURE_COMPRESSED_IMAGE_SIZE , and GL_TEXTURE_BUFFER_OFFSET are accepted.
params
Returns the requested data.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glGetTexLevelParameteriv
OpenGLContext tests/getteximage.py Lines: 29, 30
{LGPL} VisionEgg VisionEgg/SphereMap.py Lines: 699, 1039, 1042
{LGPL} VisionEgg VisionEgg/Textures.py Lines: 688, 706, 710, 721, 723, 725
{LGPL} VisionEgg VisionEgg/Gratings.py Lines: 282, 601
Visvis core/baseTexture.py Lines: 437

MathML Rendering

Powered by MathJax