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

state.c File Reference

State management. More...

#include "glheader.h"
#include "accum.h"
#include "api_loopback.h"
#include "arbprogram.h"
#include "attrib.h"
#include "blend.h"
#include "bufferobj.h"
#include "buffers.h"
#include "clip.h"
#include "colortab.h"
#include "context.h"
#include "convolve.h"
#include "depth.h"
#include "dlist.h"
#include "drawpix.h"
#include "enable.h"
#include "eval.h"
#include "get.h"
#include "feedback.h"
#include "fog.h"
#include "hint.h"
#include "histogram.h"
#include "imports.h"
#include "light.h"
#include "lines.h"
#include "macros.h"
#include "matrix.h"
#include "occlude.h"
#include "pixel.h"
#include "points.h"
#include "polygon.h"
#include "rastpos.h"
#include "state.h"
#include "stencil.h"
#include "teximage.h"
#include "texobj.h"
#include "texstate.h"
#include "mtypes.h"
#include "varray.h"
#include "nvprogram.h"
#include "nvfragprog.h"
#include "program.h"
#include "debug.h"

Dispatch table setup

int generic_noop (void)
 Generic no-op dispatch function. More...

void _mesa_init_no_op_table (struct _glapi_table *table, GLuint tableSize)
 Set all pointers in the given dispatch table to point to a generic no-op function - generic_noop(). More...

void _mesa_init_exec_table (struct _glapi_table *exec, GLuint tableSize)
 Initialize a dispatch table with pointers to Mesa's immediate-mode commands. More...


State update logic

void update_separate_specular (GLcontext *ctx)
void update_arrays (GLcontext *ctx)
 Update state dependent on vertex arrays. More...

void update_program (GLcontext *ctx)
 Update derived vertex/fragment program state. More...

void _mesa_update_state (GLcontext *ctx)


Detailed Description

State management.

This file manages recalculation of derived values in the __GLcontextRec. Also, this is where we initialize the API dispatch table.


Function Documentation

void _mesa_init_exec_table struct _glapi_table *    exec,
GLuint    tableSize
 

Initialize a dispatch table with pointers to Mesa's immediate-mode commands.

Pointers to glBegin()/glEnd() object commands and a few others are provided via the GLvertexformat interface.

Parameters:
exec  dispatch table.
tableSize  dispatch table size.

void _mesa_init_no_op_table struct _glapi_table *    exec,
GLuint    tableSize
 

Set all pointers in the given dispatch table to point to a generic no-op function - generic_noop().

Parameters:
table  dispatch table.
tableSize  dispatch table size.

void _mesa_update_state GLcontext   ctx
 

int generic_noop void    [static]
 

Generic no-op dispatch function.

Used in replacement of the functions which are not part of Mesa subset.

Displays a message.

void update_arrays GLcontext   ctx [static]
 

Update state dependent on vertex arrays.

void update_program GLcontext   ctx [static]
 

Update derived vertex/fragment program state.

void update_separate_specular GLcontext   ctx [static]
 


Generated on Sun May 16 15:55:12 2004 for Mesa Core by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001