added new draw_arrays()
authorBrian <brian.paul@tungstengraphics.com>
Thu, 16 Aug 2007 01:00:32 +0000 (19:00 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 16 Aug 2007 01:04:45 +0000 (19:04 -0600)
src/mesa/pipe/p_context.h

index ae2cc25fe3870a666e662042fb7ef38f1d6c2388..6679aae089d97678ed0efe4320a1993df93f3992 100644 (file)
@@ -68,14 +68,20 @@ struct pipe_context {
    /*
     * Drawing
     */
+   /* XXX this is temporary */
    void (*draw_vb)( struct pipe_context *pipe,
                    struct vertex_buffer *VB );
 
+   /* XXX this is temporary */
    void (*draw_vertices)( struct pipe_context *pipe,
                           unsigned mode,
                           unsigned numVertex, const float *verts,
                           unsigned numAttribs, const unsigned attribs[]);
 
+   /** this is basically what we want */
+   void (*draw_arrays)( struct pipe_context *pipe,
+                        unsigned mode, unsigned start, unsigned count);
+
    /** Clear a surface to given value (no scissor; clear whole surface) */
    void (*clear)(struct pipe_context *pipe, struct pipe_surface *ps,
                  unsigned clearValue);