From: José Fonseca Date: Wed, 20 Aug 2008 13:02:43 +0000 (+0100) Subject: python: bindings for draw_range_elements. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d881b8e8472ff49482b2b0404ac29160f096771;p=mesa.git python: bindings for draw_range_elements. --- diff --git a/src/gallium/state_trackers/python/p_context.i b/src/gallium/state_trackers/python/p_context.i index 496f738ad54..0b2621f7c31 100644 --- a/src/gallium/state_trackers/python/p_context.i +++ b/src/gallium/state_trackers/python/p_context.i @@ -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,