summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_context.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-20 15:11:11 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-20 15:11:11 -0600
commit0a262998ef2813d19e9fee01d3e5808416e9cb04 (patch)
tree6deb441008fbf668d863e2cea01a9ea559f74bcb /src/mesa/pipe/draw/draw_context.h
parenta83b72a67263faf21bf16ff879c9718660684aed (diff)
Move guts of vertex array drawing into the 'draw' module.
Diffstat (limited to 'src/mesa/pipe/draw/draw_context.h')
-rw-r--r--src/mesa/pipe/draw/draw_context.h36
1 files changed, 29 insertions, 7 deletions
diff --git a/src/mesa/pipe/draw/draw_context.h b/src/mesa/pipe/draw/draw_context.h
index 74fdd46262..2fce1322c5 100644
--- a/src/mesa/pipe/draw/draw_context.h
+++ b/src/mesa/pipe/draw/draw_context.h
@@ -93,14 +93,36 @@ void draw_set_vertex_attributes( struct draw_context *draw,
const unsigned *attrs,
unsigned nr_attrs );
-/* XXX temporary */
-void draw_set_vertex_attributes2( struct draw_context *draw,
- const unsigned *attrs,
- unsigned nr_attrs );
+unsigned draw_prim_info( unsigned prim, unsigned *first, unsigned *incr );
+
+unsigned draw_trim( unsigned count, unsigned first, unsigned incr );
+
+void draw_set_mapped_element_buffer( struct draw_context *draw,
+ unsigned eltSize, void *elements );
+
+void draw_set_mapped_vertex_buffer(struct draw_context *draw,
+ unsigned attr, const void *buffer);
+
+
+void
+draw_set_vertex_buffer(struct draw_context *draw,
+ unsigned attr,
+ const struct pipe_vertex_buffer *buffer);
+
+void
+draw_set_vertex_element(struct draw_context *draw,
+ unsigned attr,
+ const struct pipe_vertex_element *element);
+
+void
+draw_set_vertex_shader(struct draw_context *draw,
+ const struct pipe_shader_state *shader);
+
+
+void
+draw_arrays(struct draw_context *draw, unsigned prim,
+ unsigned start, unsigned count);
-/* XXX temporary */
-void draw_vb(struct draw_context *draw,
- struct vertex_buffer *VB );
void draw_vertices(struct draw_context *draw,
unsigned mode,