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

gl_texture_format Struct Reference

#include <mtypes.h>


Detailed Description

Texture format record.

Data Fields

GLint MesaFormat
 One of the MESA_FORMAT_* values.
GLenum BaseFormat
 Either GL_RGB, GL_RGBA, GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_INTENSITY, GL_COLOR_INDEX or GL_DEPTH_COMPONENT.
GLenum DataType
 GL_FLOAT or GL_UNSIGNED_NORMALIZED_ARB.
GLuint TexelBytes
 Bytes per texel, 0 if compressed format.
StoreTexImageFunc StoreImage
StoreTexelFunc StoreTexel
GLubyte RedBits
 Bits per texel component.
GLubyte GreenBits
GLubyte BlueBits
GLubyte AlphaBits
GLubyte LuminanceBits
GLubyte IntensityBits
GLubyte IndexBits
GLubyte DepthBits
GLubyte StencilBits
 GL_EXT_packed_depth_stencil.
Texel fetch function pointers
FetchTexelFuncC FetchTexel1D
FetchTexelFuncC FetchTexel2D
FetchTexelFuncC FetchTexel3D
FetchTexelFuncF FetchTexel1Df
FetchTexelFuncF FetchTexel2Df
FetchTexelFuncF FetchTexel3Df

Field Documentation

GLint gl_texture_format::MesaFormat

One of the MESA_FORMAT_* values.

GLenum gl_texture_format::BaseFormat

Either GL_RGB, GL_RGBA, GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_INTENSITY, GL_COLOR_INDEX or GL_DEPTH_COMPONENT.

GLenum gl_texture_format::DataType

GL_FLOAT or GL_UNSIGNED_NORMALIZED_ARB.

GLubyte gl_texture_format::RedBits

Bits per texel component.

These are just rough approximations for compressed texture formats.

GLubyte gl_texture_format::GreenBits

GLubyte gl_texture_format::BlueBits

GLubyte gl_texture_format::AlphaBits

GLubyte gl_texture_format::LuminanceBits

GLubyte gl_texture_format::IntensityBits

GLubyte gl_texture_format::IndexBits

GLubyte gl_texture_format::DepthBits

GLubyte gl_texture_format::StencilBits

GL_EXT_packed_depth_stencil.

GLuint gl_texture_format::TexelBytes

Bytes per texel, 0 if compressed format.

StoreTexImageFunc gl_texture_format::StoreImage

FetchTexelFuncC gl_texture_format::FetchTexel1D

FetchTexelFuncC gl_texture_format::FetchTexel2D

FetchTexelFuncC gl_texture_format::FetchTexel3D

FetchTexelFuncF gl_texture_format::FetchTexel1Df

FetchTexelFuncF gl_texture_format::FetchTexel2Df

FetchTexelFuncF gl_texture_format::FetchTexel3Df

StoreTexelFunc gl_texture_format::StoreTexel


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