added draw_set_vertex_array_info()
authorBrian <brian.paul@tungstengraphics.com>
Thu, 16 Aug 2007 00:53:37 +0000 (18:53 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 16 Aug 2007 01:04:44 +0000 (19:04 -0600)
src/mesa/pipe/draw/draw_context.c
src/mesa/pipe/draw/draw_context.h

index 0707c03e5f7913e8934e0e76c95a0650a32b65ac..f2ee6c52e073950c6a50412a4a6c5d601322ddef 100644 (file)
@@ -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;
+}
+
index be0a18d6d7229ce8ab1ae7f8c1aa991761e9e52d..b9cac7c6daa05fb4fd8a42b138c76726afc2c818 100644 (file)
@@ -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 );