From: José Fonseca Date: Wed, 20 Aug 2008 13:02:43 +0000 (+0100) Subject: python: bindings for draw_range_elements. X-Git-Tag: 062012170305~17580^2~390^2~526 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d881b8e8472ff49482b2b0404ac29160f096771;p=profile%2Fivi%2Fmesa.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 496f738..0b2621f 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,