diff options
author | Brian Paul <[email protected]> | 2002-06-30 15:47:00 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-06-30 15:47:00 +0000 |
commit | 2525bc7d305f6dcab3beb75535da25a488c969b0 (patch) | |
tree | 3c70b05a2c7e8649b89d68c2b7d5c1dd2c48095b /src/mesa/main/dlist.c | |
parent | 1074d8c3613bb44f12ed5dc28aec4fd7fdd79f19 (diff) |
Implemented GL_EXT_multi_draw_arrays: glMultiDrawArraysEXT() and glMultiDrawElementsEXT().
Diffstat (limited to 'src/mesa/main/dlist.c')
-rw-r--r-- | src/mesa/main/dlist.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 1409f0ee420..07687e4dab7 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -1,4 +1,4 @@ -/* $Id: dlist.c,v 1.91 2002/06/29 19:48:15 brianp Exp $ */ +/* $Id: dlist.c,v 1.92 2002/06/30 15:47:00 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -5725,6 +5725,26 @@ static void exec_FogCoordPointerEXT(GLenum type, GLsizei stride, ctx->Exec->FogCoordPointerEXT( type, stride, ptr); } +/* GL_EXT_multi_draw_arrays */ +static void exec_MultiDrawArraysEXT(GLenum mode, GLint *first, + GLsizei *count, GLsizei primcount) +{ + GET_CURRENT_CONTEXT(ctx); + FLUSH_VERTICES(ctx, 0); + ctx->Exec->MultiDrawArraysEXT( mode, first, count, primcount ); +} + +/* GL_EXT_multi_draw_arrays */ +static void exec_MultiDrawElementsEXT(GLenum mode, const GLsizei *count, + GLenum type, const GLvoid **indices, + GLsizei primcount) +{ + GET_CURRENT_CONTEXT(ctx); + FLUSH_VERTICES(ctx, 0); + ctx->Exec->MultiDrawElementsEXT(mode, count, type, indices, primcount); +} + + /* * Assign all the pointers in <table> to point to Mesa's display list @@ -6045,6 +6065,10 @@ _mesa_init_dlist_table( struct _glapi_table *table, GLuint tableSize ) /* 145. GL_EXT_secondary_color */ table->SecondaryColorPointerEXT = exec_SecondaryColorPointerEXT; + /* 148. GL_EXT_multi_draw_arrays */ + table->MultiDrawArraysEXT = exec_MultiDrawArraysEXT; + table->MultiDrawElementsEXT = exec_MultiDrawElementsEXT; + /* 149. GL_EXT_fog_coord */ table->FogCoordPointerEXT = exec_FogCoordPointerEXT; |