core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

gl_texture_object Struct Reference

#include <mtypes.h>


Detailed Description

Texture object state.

Contains the array of mipmap images, border color, wrap modes, filter modes, shadow/texcompare state, and the per-texture color palette.

Data Fields

_glthread_Mutex Mutex
 for thread safety
GLint RefCount
 reference count
GLuint Name
 the user-visible texture object ID
GLenum Target
 GL_TEXTURE_1D, GL_TEXTURE_2D, etc.
GLfloat Priority
 in [0,1]
GLfloat BorderColor [4]
 unclamped
GLenum WrapS
 S-axis texture image wrap mode.
GLenum WrapT
 T-axis texture image wrap mode.
GLenum WrapR
 R-axis texture image wrap mode.
GLenum MinFilter
 minification filter
GLenum MagFilter
 magnification filter
GLfloat MinLod
 min lambda, OpenGL 1.2
GLfloat MaxLod
 max lambda, OpenGL 1.2
GLfloat LodBias
 OpenGL 1.4.
GLint BaseLevel
 min mipmap level, OpenGL 1.2
GLint MaxLevel
 max mipmap level, OpenGL 1.2
GLfloat MaxAnisotropy
 GL_EXT_texture_filter_anisotropic.
GLenum CompareMode
 GL_ARB_shadow.
GLenum CompareFunc
 GL_ARB_shadow.
GLfloat CompareFailValue
 GL_ARB_shadow_ambient.
GLenum DepthMode
 GL_ARB_depth_texture.
GLint _MaxLevel
 actual max mipmap level (q in the spec)
GLfloat _MaxLambda
 = _MaxLevel - BaseLevel (q - b in spec)
GLint CropRect [4]
 GL_OES_draw_texture.
GLenum Swizzle [4]
 GL_EXT_texture_swizzle.
GLuint _Swizzle
 same as Swizzle, but SWIZZLE_* format
GLboolean GenerateMipmap
 GL_SGIS_generate_mipmap.
GLboolean _Complete
 Is texture object complete?
GLboolean _RenderToTexture
 Any rendering to this texture?
struct gl_texture_imageImage [MAX_FACES][MAX_TEXTURE_LEVELS]
 Actual texture images, indexed by [cube face] and [mipmap level].
struct gl_color_table Palette
 GL_EXT_paletted_texture.
For device driver.
Note: instead of attaching driver data to this pointer, it's preferable to instead use this struct as a base class for your own texture object class.

Driver->NewTextureObject() can be used to implement the allocation.

void * DriverData
 Arbitrary device driver data.


Field Documentation

_glthread_Mutex gl_texture_object::Mutex

for thread safety

GLint gl_texture_object::RefCount

reference count

GLuint gl_texture_object::Name

the user-visible texture object ID

GLenum gl_texture_object::Target

GL_TEXTURE_1D, GL_TEXTURE_2D, etc.

GLfloat gl_texture_object::Priority

in [0,1]

GLfloat gl_texture_object::BorderColor[4]

unclamped

GLenum gl_texture_object::WrapS

S-axis texture image wrap mode.

GLenum gl_texture_object::WrapT

T-axis texture image wrap mode.

GLenum gl_texture_object::WrapR

R-axis texture image wrap mode.

GLenum gl_texture_object::MinFilter

minification filter

GLenum gl_texture_object::MagFilter

magnification filter

GLfloat gl_texture_object::MinLod

min lambda, OpenGL 1.2

GLfloat gl_texture_object::MaxLod

max lambda, OpenGL 1.2

GLfloat gl_texture_object::LodBias

OpenGL 1.4.

GLint gl_texture_object::BaseLevel

min mipmap level, OpenGL 1.2

GLint gl_texture_object::MaxLevel

max mipmap level, OpenGL 1.2

GLfloat gl_texture_object::MaxAnisotropy

GL_EXT_texture_filter_anisotropic.

GLenum gl_texture_object::CompareMode

GL_ARB_shadow.

GLenum gl_texture_object::CompareFunc

GL_ARB_shadow.

GLfloat gl_texture_object::CompareFailValue

GL_ARB_shadow_ambient.

GLenum gl_texture_object::DepthMode

GL_ARB_depth_texture.

GLint gl_texture_object::_MaxLevel

actual max mipmap level (q in the spec)

GLfloat gl_texture_object::_MaxLambda

= _MaxLevel - BaseLevel (q - b in spec)

GLint gl_texture_object::CropRect[4]

GL_OES_draw_texture.

GLenum gl_texture_object::Swizzle[4]

GL_EXT_texture_swizzle.

GLuint gl_texture_object::_Swizzle

same as Swizzle, but SWIZZLE_* format

GLboolean gl_texture_object::GenerateMipmap

GL_SGIS_generate_mipmap.

GLboolean gl_texture_object::_Complete

Is texture object complete?

GLboolean gl_texture_object::_RenderToTexture

Any rendering to this texture?

struct gl_texture_image* gl_texture_object::Image[MAX_FACES][MAX_TEXTURE_LEVELS] [read]

Actual texture images, indexed by [cube face] and [mipmap level].

struct gl_color_table gl_texture_object::Palette [read]

GL_EXT_paletted_texture.

void* gl_texture_object::DriverData

Arbitrary device driver data.


The documentation for this struct was generated from the following file:
Generated on Sun Sep 27 06:47:47 2009 for Mesa Main by  doxygen 1.5.4