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

gl_shared_state Struct Reference

#include <mtypes.h>


Detailed Description

State which can be shared by multiple contexts:.

Data Fields

_glthread_Mutex Mutex
 for thread safety
GLint RefCount
 Reference count.
struct _mesa_HashTableDisplayList
 Display lists hash table.
struct _mesa_HashTableTexObjects
 Texture objects hash table.
struct gl_texture_objectDefaultTex [NUM_TEXTURE_TARGETS]
 Default texture objects (shared by all texture units).
struct gl_texture_objectFallbackTex
 Fallback texture used when a bound texture is incomplete.
struct gl_buffer_objectNullBufferObj
 Default buffer object for vertex arrays that aren't in VBOs.
void * DriverData
 Device driver shared state.
Thread safety and statechange notification for texture
objects.

Todo:
Improve the granularity of locking.


_glthread_Mutex TexMutex
 texobj thread safety
GLuint TextureStateStamp
 state notification for shared tex
Vertex/fragment programs
struct _mesa_HashTablePrograms
 All vertex/fragment programs.

Field Documentation

_glthread_Mutex gl_shared_state::Mutex

for thread safety

GLint gl_shared_state::RefCount

Reference count.

struct _mesa_HashTable* gl_shared_state::DisplayList [read]

Display lists hash table.

struct _mesa_HashTable* gl_shared_state::TexObjects [read]

Texture objects hash table.

struct gl_texture_object* gl_shared_state::DefaultTex[NUM_TEXTURE_TARGETS] [read]

Default texture objects (shared by all texture units).

struct gl_texture_object* gl_shared_state::FallbackTex [read]

Fallback texture used when a bound texture is incomplete.

_glthread_Mutex gl_shared_state::TexMutex

texobj thread safety

GLuint gl_shared_state::TextureStateStamp

state notification for shared tex

struct gl_buffer_object* gl_shared_state::NullBufferObj [read]

Default buffer object for vertex arrays that aren't in VBOs.

struct _mesa_HashTable* gl_shared_state::Programs [read]

All vertex/fragment programs.

void* gl_shared_state::DriverData

Device driver shared state.


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