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

texture_state Struct Reference


Detailed Description

Special struct for saving/restoring texture state (GL_TEXTURE_BIT).

Data Fields

struct gl_texture_attrib Texture
 The usual context state.
struct gl_texture_object SavedObj [MAX_TEXTURE_UNITS][NUM_TEXTURE_TARGETS]
 to save per texture object state (wrap modes, filters, etc):
struct gl_texture_objectSavedTexRef [MAX_TEXTURE_UNITS][NUM_TEXTURE_TARGETS]
 To save references to texture objects (so they don't get accidentally deleted while saved in the attribute stack).

Field Documentation

struct gl_texture_attrib texture_state::Texture [read]

The usual context state.

struct gl_texture_object texture_state::SavedObj[MAX_TEXTURE_UNITS][NUM_TEXTURE_TARGETS] [read]

to save per texture object state (wrap modes, filters, etc):

struct gl_texture_object* texture_state::SavedTexRef[MAX_TEXTURE_UNITS][NUM_TEXTURE_TARGETS] [read]

To save references to texture objects (so they don't get accidentally deleted while saved in the attribute stack).


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