summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_private.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-16 12:36:17 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-16 12:37:26 -0600
commit59bd1e260bf40e4d2b1662cc4e68eff8235739e4 (patch)
treeb8b094e8a20bac270c867a2f29e90321149f6c8c /src/mesa/pipe/draw/draw_private.h
parent926323df8692f48134a65322d5790d3f950b67dd (diff)
Drawing code refactoring.
Move code duplicated between draw_vb.c and sp_draw_arrays.c into draw_prim.c draw_vb.c will eventually go away, but this seems like a good step anyway.
Diffstat (limited to 'src/mesa/pipe/draw/draw_private.h')
-rw-r--r--src/mesa/pipe/draw/draw_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_private.h b/src/mesa/pipe/draw/draw_private.h
index 76ca80dab0..c1ebd34121 100644
--- a/src/mesa/pipe/draw/draw_private.h
+++ b/src/mesa/pipe/draw/draw_private.h
@@ -157,6 +157,8 @@ struct draw_context
GLuint nr_vertices;
GLboolean in_vb;
+ /** Pointer to vertex element/index buffer */
+ unsigned eltSize; /**< bytes per index (0, 1, 2 or 4) */
void *elts;
struct vertex_header *(*get_vertex)( struct draw_context *draw,
@@ -197,6 +199,8 @@ struct draw_context
GLenum prim; /**< GL_POINTS, GL_LINE_STRIP, GL_QUADS, etc */
unsigned reduced_prim;
+ void (*vs_flush)( struct draw_context *draw );
+
/* Helper for tnl:
*/
GLvector4f header;