#include <mtypes.h>
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 |
One of the MESA_FORMAT_* values.
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.
Bytes per texel, 0 if compressed format.
1.5.4