From ae0eaf93e092ac8e8b1c98f3e986de96940663fa Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 24 Nov 2003 15:23:18 +0000 Subject: Merge vtx-0-2-branch --- src/mesa/main/mtypes.h | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'src/mesa/main/mtypes.h') diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 23ff3548c2..012667a2ab 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -447,7 +447,7 @@ struct gl_current_attrib { /*@{*/ GLfloat Attrib[VERT_ATTRIB_MAX][4]; /**< Current vertex attributes * indexed by VERT_ATTRIB_* */ - GLuint Index; /**< Current color index */ + GLfloat Index; /**< Current color index */ GLboolean EdgeFlag; /**< Current edge flag */ /*@}*/ @@ -2027,6 +2027,27 @@ struct gl_tnl_module { /*@}*/ }; +struct mesa_list_state { + GLuint CallDepth; /**< Current recursion calling depth */ + Node *CurrentListPtr; /**< Head of list being compiled */ + GLuint CurrentListNum; /**< Number of the list being compiled */ + Node *CurrentBlock; /**< Pointer to current block of nodes */ + GLuint CurrentPos; /**< Index into current block of nodes */ + GLvertexformat ListVtxfmt; + + GLubyte ActiveAttribSize[VERT_ATTRIB_MAX]; + GLfloat CurrentAttrib[VERT_ATTRIB_MAX][4]; + + GLubyte ActiveMaterialSize[MAT_ATTRIB_MAX]; + GLfloat CurrentMaterial[MAT_ATTRIB_MAX][4]; + + GLubyte ActiveIndex; + GLfloat CurrentIndex; + + GLubyte ActiveEdgeFlag; + GLboolean CurrentEdgeFlag; +}; + /** * Mesa context @@ -2058,9 +2079,6 @@ struct __GLcontextRec { struct _glapi_table *CurrentDispatch; /**< == Save or Exec !! */ /*@}*/ - GLboolean ExecPrefersFloat; /**< What preference for color conversion? */ - GLboolean SavePrefersFloat; - GLvisual Visual; GLframebuffer *DrawBuffer; /**< buffer for writing */ GLframebuffer *ReadBuffer; /**< buffer for reading */ @@ -2090,15 +2108,10 @@ struct __GLcontextRec { GLmatrix _ModelProjectMatrix; /** \name Display lists */ - /*@{*/ - GLuint CallDepth; /**< Current recursion calling depth */ + struct mesa_list_state ListState; + GLboolean ExecuteFlag; /**< Execute GL commands? */ GLboolean CompileFlag; /**< Compile GL commands into display list? */ - Node *CurrentListPtr; /**< Head of list being compiled */ - GLuint CurrentListNum; /**< Number of the list being compiled */ - Node *CurrentBlock; /**< Pointer to current block of nodes */ - GLuint CurrentPos; /**< Index into current block of nodes */ - /*@}*/ /** Extensions */ struct gl_extensions Extensions; -- cgit v1.2.3