diff options
author | Ian Romanick <[email protected]> | 2003-09-09 00:10:12 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2003-09-09 00:10:12 +0000 |
commit | 0207b47aafebc06cf83fbdb8c9b01f63374fac66 (patch) | |
tree | 94c2117044f7976487c29cfae65b62198d9f921d /src/mesa/main/dd.h | |
parent | 0a363f4e87742680ac9193c3a276f5e93ac6adef (diff) |
Added most of the infrastructure required to support
ARB_vertex_buffer_object. THIS IS INCOMPLETE.
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r-- | src/mesa/main/dd.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 1829bbc6524..09a53e557cc 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -829,6 +829,39 @@ struct dd_function_table { */ void (*UnlockArraysEXT)( GLcontext *ctx ); /*@}*/ + + + /** + * \name Vertex buffer object functions + */ + /*@{*/ + + void (*BindBuffer)( GLcontext *ctx, GLenum target, + struct gl_buffer_object *obj ); + + struct gl_buffer_object * (*NewBufferObject)( GLcontext *ctx, int buffer, + GLenum target ); + + void (*DeleteBuffer)( GLcontext *ctx, struct gl_buffer_object *obj ); + + void (*BufferData)( GLcontext *ctx, GLenum target, GLsizeiptrARB size, + const GLvoid *data, GLenum usage, + struct gl_buffer_object *obj ); + + void (*BufferSubData)( GLcontext *ctx, GLenum target, GLintptrARB offset, + GLsizeiptrARB size, const GLvoid *data, + struct gl_buffer_object *obj ); + + void (*GetBufferSubData)( GLcontext *ctx, GLenum target, + GLintptrARB offset, GLsizeiptrARB size, + GLvoid *data, struct gl_buffer_object *obj ); + + void * (*MapBuffer)( GLcontext *ctx, GLenum target, GLenum access, + struct gl_buffer_object *obj ); + + GLboolean (*UnmapBuffer)( GLcontext *ctx, GLenum target, + struct gl_buffer_object *obj ); + /*@}*/ }; |