From 293cc252616543d36aeb8a432441006bf65e3330 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 15 Aug 2007 18:53:37 -0600 Subject: [PATCH] added draw_set_vertex_array_info() --- src/mesa/pipe/draw/draw_context.c | 10 ++++++++++ src/mesa/pipe/draw/draw_context.h | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c index 0707c03e5f7..f2ee6c52e07 100644 --- a/src/mesa/pipe/draw/draw_context.c +++ b/src/mesa/pipe/draw/draw_context.c @@ -192,3 +192,13 @@ void draw_set_viewport_state( struct draw_context *draw, * Full pipe will have vertex shader, vertex fetch of its own. */ } + + +void draw_set_vertex_array_info(struct draw_context *draw, + const struct pipe_vertex_buffer *buffers, + const struct pipe_vertex_element *elements) +{ + draw->vertex_buffer = buffers; + draw->vertex_element = elements; +} + diff --git a/src/mesa/pipe/draw/draw_context.h b/src/mesa/pipe/draw/draw_context.h index be0a18d6d72..b9cac7c6daa 100644 --- a/src/mesa/pipe/draw/draw_context.h +++ b/src/mesa/pipe/draw/draw_context.h @@ -67,6 +67,16 @@ void draw_set_vertex_attributes( struct draw_context *draw, const GLuint *attrs, GLuint nr_attrs ); +/* XXX temporary */ +void draw_set_vertex_attributes2( struct draw_context *draw, + const GLuint *attrs, + GLuint nr_attrs ); + +void draw_set_vertex_array_info(struct draw_context *draw, + const struct pipe_vertex_buffer *buffers, + const struct pipe_vertex_element *elements); + +/* XXX temporary */ void draw_vb(struct draw_context *draw, struct vertex_buffer *VB ); -- 2.11.0