core  array_cache  math  swrast  swrast_setup  tnl  tnl_dd 
Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

gl_texture_image Struct Reference

Texture image record. More...

#include <mtypes.h>


Data Fields

GLenum Format
 Either GL_RGB, GL_RGBA, GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_INTENSITY, GL_COLOR_INDEX or GL_DEPTH_COMPONENT only. More...

GLint IntFormat
 Internal format as given by the user. More...

GLuint Border
 0 or 1. More...

GLuint Width
 = 2^WidthLog2 + 2*Border. More...

GLuint Height
 = 2^HeightLog2 + 2*Border. More...

GLuint Depth
 = 2^DepthLog2 + 2*Border. More...

GLuint RowStride
 == Width unless IsClientData and padded. More...

GLuint Width2
 = Width - 2*Border. More...

GLuint Height2
 = Height - 2*Border. More...

GLuint Depth2
 = Depth - 2*Border. More...

GLuint WidthLog2
 = log2(Width2). More...

GLuint HeightLog2
 = log2(Height2). More...

GLuint DepthLog2
 = log2(Depth2). More...

GLuint MaxLog2
 = MAX(WidthLog2, HeightLog2). More...

GLfloat WidthScale
 used for mipmap LOD computation. More...

GLfloat HeightScale
 used for mipmap LOD computation. More...

GLfloat DepthScale
 used for mipmap LOD computation. More...

GLvoid * Data
 Image data, accessed via FetchTexel(). More...

GLboolean IsClientData
 Data owned by client? More...

GLboolean _IsPowerOfTwo
 Are all dimensions powers of two? More...

const struct gl_texture_formatTexFormat
gl_texture_objectTexObject
 Pointer back to parent object. More...

FetchTexelFuncC FetchTexelc
 GLchan texel fetch function pointer. More...

FetchTexelFuncF FetchTexelf
 Float texel fetch function pointer. More...

GLboolean IsCompressed
 GL_ARB_texture_compression. More...

GLuint CompressedSize
 GL_ARB_texture_compression. More...

For device driver:
voidDriverData
 Arbitrary device driver data. More...


Detailed Description

Texture image record.


Field Documentation

GLboolean gl_texture_image::_IsPowerOfTwo
 

Are all dimensions powers of two?

GLuint gl_texture_image::Border
 

0 or 1.

GLuint gl_texture_image::CompressedSize
 

GL_ARB_texture_compression.

GLvoid* gl_texture_image::Data
 

Image data, accessed via FetchTexel().

GLuint gl_texture_image::Depth
 

= 2^DepthLog2 + 2*Border.

GLuint gl_texture_image::Depth2
 

= Depth - 2*Border.

GLuint gl_texture_image::DepthLog2
 

= log2(Depth2).

GLfloat gl_texture_image::DepthScale
 

used for mipmap LOD computation.

void* gl_texture_image::DriverData
 

Arbitrary device driver data.

FetchTexelFuncC gl_texture_image::FetchTexelc
 

GLchan texel fetch function pointer.

FetchTexelFuncF gl_texture_image::FetchTexelf
 

Float texel fetch function pointer.

GLenum gl_texture_image::Format
 

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

Used for choosing TexEnv arithmetic.

GLuint gl_texture_image::Height
 

= 2^HeightLog2 + 2*Border.

GLuint gl_texture_image::Height2
 

= Height - 2*Border.

GLuint gl_texture_image::HeightLog2
 

= log2(Height2).

GLfloat gl_texture_image::HeightScale
 

used for mipmap LOD computation.

GLint gl_texture_image::IntFormat
 

Internal format as given by the user.

GLboolean gl_texture_image::IsClientData
 

Data owned by client?

GLboolean gl_texture_image::IsCompressed
 

GL_ARB_texture_compression.

GLuint gl_texture_image::MaxLog2
 

= MAX(WidthLog2, HeightLog2).

GLuint gl_texture_image::RowStride
 

== Width unless IsClientData and padded.

const struct gl_texture_format* gl_texture_image::TexFormat
 

struct gl_texture_object* gl_texture_image::TexObject
 

Pointer back to parent object.

GLuint gl_texture_image::Width
 

= 2^WidthLog2 + 2*Border.

GLuint gl_texture_image::Width2
 

= Width - 2*Border.

GLuint gl_texture_image::WidthLog2
 

= log2(Width2).

GLfloat gl_texture_image::WidthScale
 

used for mipmap LOD computation.


The documentation for this struct was generated from the following file:
Generated on Sun May 16 15:55:13 2004 for Mesa Core by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001