Glgettexlevelparameter - HP b2600 Reference Manual

Opengl 1.1 reference
Hide thumbs Also See for b2600:
Table of Contents

Advertisement

glGetTexLevelParameter

glGetTexLevelParameterfv, glGetTexLevelParameteriv: return texture
parameter values for a specific level of detail.
C Specification
void glGetTexLevelParameterfv(
void glGetTexLevelParameteriv(
Parameters
target
level
pname
params
Description
glGetTexLevelParameter returns in params texture parameter values for a specific
level-of-detail value, specified as level. target defines the target texture, either
GL_TEXTURE_1D, GL_TEXTURE_2D, GL_PROXY_TEXTURE_1D, or
GL_PROXY_TEXTURE_2D.
GL_MAX_TEXTURE_SIZE is not really descriptive enough. It has to report the largest
square texture image that can be accommodated with mipmaps and borders, but a long
skinny texture, or a texture without mipmaps and borders, may easily fit in texture
memory. The proxy targets allow the user to more accurately query whether the GL can
accommodate a texture of a given configuration. If the texture cannot be accommodated,
the texture state variables, which may be queried with glGetTexLevelParameter, are set
to 0. If the texture can be accommodated, the texture state values will be set as they
would be set for a non-proxy target.
Chapter 7
GLenum target,
GLint level,
GLenum pname
GLfloat *params)
GLenum target,
GLint level,
GLenum pname,
GLint *params)
Specifies the symbolic name of the target texture, either
GL_TEXTURE_1D, GL_TEXTURE_2D, GL_PROXY_TEXTURE_1D,
or GL_PROXY_TEXTURE_2D.
Specifies the level-of-detail number of the desired image. Level 0 is the
base image level. Level n is the nth mipmap reduction image.
Specifies the symbolic name of a texture parameter.
GL_TEXTURE_WIDTH, GL_TEXTURE_HEIGHT,
GL_TEXTURE_INTERNAL_FORMAT, GL_TEXTURE_BORDER,
GL_TEXTURE_RED_SIZE,
GL_TEXTURE_GREEN_SIZE,GL_TEXTURE_BLUE_SIZE,
GL_TEXTURE_ALPHA_SIZE, GL_TEXTURE_LUMINANCE_SIZE,
and GL_TEXTURE_INTENSITY_SIZE are accepted.
Returns the requested data.
G
glGetTexLevelParameter
219

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents