python: bindings for draw_range_elements.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 20 Aug 2008 13:02:43 +0000 (14:02 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 20 Aug 2008 15:57:51 +0000 (16:57 +0100)
src/gallium/state_trackers/python/p_context.i

index 496f738ad54b5d3dafdceaa826fbfe7edf5d4e6a..0b2621f7c31f138dbdef3628ebbac7055aaf6411 100644 (file)
@@ -209,6 +209,16 @@ struct st_context {
                                  mode, start, count);
    }
 
+   void draw_range_elements( struct st_buffer *indexBuffer,
+                             unsigned indexSize, unsigned minIndex, unsigned maxIndex,
+                             unsigned mode, unsigned start, unsigned count)
+   {
+      $self->pipe->draw_range_elements($self->pipe, 
+                                       indexBuffer->buffer, 
+                                       indexSize, minIndex, maxIndex,
+                                       mode, start, count);
+   }
+
    void draw_vertices(unsigned prim,
                       unsigned num_verts,
                       unsigned num_attribs,