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

shared.h File Reference


Functions

struct gl_shared_state_mesa_alloc_shared_state (GLcontext *ctx)
 Allocate and initialize a shared context state structure.
void _mesa_free_shared_state (GLcontext *ctx, struct gl_shared_state *shared)
 Deallocate a shared state object and all children structures.


Function Documentation

struct gl_shared_state* _mesa_alloc_shared_state ( GLcontext ctx  )  [read]

Allocate and initialize a shared context state structure.

Initializes the display list, texture objects and vertex programs hash tables, allocates the texture objects. If it runs out of memory, frees everything already allocated before returning NULL.

Returns:
pointer to a gl_shared_state structure on success, or NULL on failure.

void _mesa_free_shared_state ( GLcontext ctx,
struct gl_shared_state shared 
)

Deallocate a shared state object and all children structures.

Parameters:
ctx GL context.
shared shared state pointer.
Frees the display lists, the texture objects (calling the driver texture deletion callback to free its private data) and the vertex programs, as well as their hash tables.

See also:
alloc_shared_state().


Generated on Sun Sep 27 06:47:46 2009 for Mesa Main by  doxygen 1.5.4