added buffer_data(), buffer_sub_data() to pipe_buffer
authorBrian <brian.paul@tungstengraphics.com>
Fri, 29 Jun 2007 19:10:47 +0000 (13:10 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 29 Jun 2007 19:10:47 +0000 (13:10 -0600)
src/mesa/pipe/p_state.h

index 6a9a86fa97f8d4ff1b95e15b3198a801026e87f6..66a53483a305ab9104006d1dfb13082c7f8af97b 100644 (file)
@@ -229,6 +229,9 @@ struct pipe_sampler_state
  */
 struct pipe_buffer
 {
+   void (*buffer_data)(struct pipe_buffer *pb, GLuint size, const void *src);
+   void (*buffer_sub_data)(struct pipe_buffer *pb, GLuint offset, GLuint size,
+                           const void *src);
    void *(*map)(struct pipe_buffer *pb, GLuint access_mode);
    void (*unmap)(struct pipe_buffer *pb);
    void *ptr;        /**< address, only valid while mapped */