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

texstate.h File Reference


Detailed Description

Texture state management.

#include "mtypes.h"

Functions

static INLINE struct
gl_texture_unit
_mesa_get_current_tex_unit (GLcontext *ctx)
 Return pointer to current texture unit.
void _mesa_copy_texture_state (const GLcontext *src, GLcontext *dst)
 Used by glXCopyContext to copy texture state from one context to another.
void _mesa_print_texunit_state (GLcontext *ctx, GLuint unit)
Called from API
void GLAPIENTRY _mesa_ActiveTextureARB (GLenum target)
void GLAPIENTRY _mesa_ClientActiveTextureARB (GLenum target)
Initialization, state maintenance
void _mesa_update_texture (GLcontext *ctx, GLuint new_state)
 Update texture-related derived state.
GLboolean _mesa_init_texture (GLcontext *ctx)
 Initialize texture state for the given context.
void _mesa_free_texture_data (GLcontext *ctx)
 Free dynamically-allocted texture data attached to the given context.
void _mesa_update_default_objects_texture (GLcontext *ctx)
 Update the default texture objects in the given context to reference those specified in the shared state and release those referencing the old shared state.


Function Documentation

void GLAPIENTRY _mesa_ActiveTextureARB ( GLenum  target  ) 

void GLAPIENTRY _mesa_ClientActiveTextureARB ( GLenum  target  ) 

void _mesa_copy_texture_state ( const GLcontext src,
GLcontext dst 
)

Used by glXCopyContext to copy texture state from one context to another.

void _mesa_free_texture_data ( GLcontext ctx  ) 

Free dynamically-allocted texture data attached to the given context.

static INLINE struct gl_texture_unit* _mesa_get_current_tex_unit ( GLcontext ctx  )  [static, read]

Return pointer to current texture unit.

This the texture unit set by glActiveTexture(), not glClientActiveTexture().

GLboolean _mesa_init_texture ( GLcontext ctx  ) 

Initialize texture state for the given context.

void _mesa_print_texunit_state ( GLcontext ctx,
GLuint  unit 
)

void _mesa_update_default_objects_texture ( GLcontext ctx  ) 

Update the default texture objects in the given context to reference those specified in the shared state and release those referencing the old shared state.

void _mesa_update_texture ( GLcontext ctx,
GLuint  new_state 
)

Update texture-related derived state.


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