aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dd.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-05-01 19:15:33 -0600
committerBrian Paul <[email protected]>2013-05-02 09:03:16 -0600
commit5dc0081ade6c423662a3b89be0f433b9b4ec1773 (patch)
tree1577fc204182ce94f3d783627b440a6f76d4335b /src/mesa/main/dd.h
parent200e09e393c05706d830667cbf626d1d51c000c4 (diff)
mesa: update GLvertexformat comments
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r--src/mesa/main/dd.h27
1 files changed, 7 insertions, 20 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 4c76fa49616..bc93026f3f7 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -850,28 +850,17 @@ struct dd_function_table {
/**
- * Transform/Clip/Lighting interface
+ * Per-vertex functions.
*
- * Drivers present a reduced set of the functions possible in
- * glBegin()/glEnd() objects. Core mesa provides translation stubs for the
- * remaining functions to map down to these entry points.
+ * These are the functions which can appear between glBegin and glEnd.
+ * Depending on whether we're inside or outside a glBegin/End pair
+ * and whether we're in immediate mode or building a display list, these
+ * functions behave differently. This structure allows us to switch
+ * between those modes more easily.
*
- * These are the initial values to be installed into dispatch by
- * mesa. If the T&L driver wants to modify the dispatch table
- * while installed, it must do so itself. It would be possible for
- * the vertexformat to install its own initial values for these
- * functions, but this way there is an obvious list of what is
- * expected of the driver.
- *
- * If the driver wants to hook in entry points other than those
- * listed, it must restore them to their original values in
- * the disable() callback, below.
+ * Generally, these pointers point to functions in the VBO module.
*/
typedef struct {
- /**
- * \name Vertex
- */
- /*@{*/
void (GLAPIENTRYP ArrayElement)( GLint );
void (GLAPIENTRYP Color3f)( GLfloat, GLfloat, GLfloat );
void (GLAPIENTRYP Color3fv)( const GLfloat * );
@@ -1019,8 +1008,6 @@ typedef struct {
void (GLAPIENTRYP VertexAttribP4uiv)( GLuint index, GLenum type,
GLboolean normalized,
const GLuint *value);
- /*@}*/
-
} GLvertexformat;