summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_context.h
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-07-16 04:02:55 +0800
committerChia-I Wu <olv@lunarg.com>2010-07-29 13:45:30 +0800
commitc5e9d3114a80d6d35a2f4e65783cdc75fcc2deac (patch)
tree959bad5c651e29e57e629d1fa9452b58d9983e74 /src/gallium/include/pipe/p_context.h
parent7e4e79be6bba7cf68046bd77aa8d44fb52ca5186 (diff)
gallium: Add pipe_context::draw_vbo and pipe_context::set_index_buffer.
This commit adds a new unified draw_vbo method to pipe_context. Unlike other draw methods, draw_vbo treats the index buffer as a state which is set with set_index_buffer.
Diffstat (limited to 'src/gallium/include/pipe/p_context.h')
-rw-r--r--src/gallium/include/pipe/p_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index 7ec3d63a3fd..3314b1e0e0f 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -102,6 +102,9 @@ struct pipe_context {
unsigned start,
unsigned count);
+ void (*draw_vbo)( struct pipe_context *pipe,
+ const struct pipe_draw_info *info );
+
/**
* Draw the stream output buffer at index 0
*/
@@ -249,6 +252,9 @@ struct pipe_context {
unsigned num_buffers,
const struct pipe_vertex_buffer * );
+ void (*set_index_buffer)( struct pipe_context *pipe,
+ const struct pipe_index_buffer * );
+
void (*set_stream_output_buffers)(struct pipe_context *,
struct pipe_resource **buffers,
int *offsets, /*array of offsets