summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/python/p_context.i
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-20 14:02:43 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-20 16:57:51 +0100
commit1d881b8e8472ff49482b2b0404ac29160f096771 (patch)
tree0ac546bb2fe129aaaa7b4494d299f15b7727b67c /src/gallium/state_trackers/python/p_context.i
parent815cdcfbc0740c66b901361620c88d99541bdad2 (diff)
python: bindings for draw_range_elements.
Diffstat (limited to 'src/gallium/state_trackers/python/p_context.i')
-rw-r--r--src/gallium/state_trackers/python/p_context.i10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/p_context.i b/src/gallium/state_trackers/python/p_context.i
index 496f738ad5..0b2621f7c3 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,