diff options
author | Brian Paul <[email protected]> | 2003-09-09 13:44:40 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-09-09 13:44:40 +0000 |
commit | c7b872a2774e14d06b7e041d444c9e6e922ce5f5 (patch) | |
tree | 0c65bcd8c28591f1f1db6fecbfe92cd64715c4cf /src/mesa/main/bufferobj.h | |
parent | 39c65bfb93365d5b4ce16e4339517769545d01e8 (diff) |
Added prototypes for internal functions to bufferobj.h.
Minor code clean-ups.
Diffstat (limited to 'src/mesa/main/bufferobj.h')
-rw-r--r-- | src/mesa/main/bufferobj.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index 58c4b592993..ca5c99cac42 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -29,6 +29,52 @@ #define BUFFEROBJ_H +/* + * Internal functions + */ + +extern void +_mesa_initialize_buffer_object( struct gl_buffer_object *obj, + GLuint name, GLenum target ); + +extern struct gl_buffer_object * +_mesa_new_buffer_object( GLcontext *ctx, GLuint name, GLenum target ); + +extern void +_mesa_initialize_buffer_object( struct gl_buffer_object *obj, + GLuint name, GLenum target ); + +extern void +_mesa_save_buffer_object( GLcontext *ctx, struct gl_buffer_object *obj ); + +extern void +_mesa_remove_buffer_object( GLcontext *ctx, struct gl_buffer_object *bufObj ); + +extern void +_mesa_buffer_data( GLcontext *ctx, GLenum target, GLsizeiptrARB size, + const GLvoid * data, GLenum usage, + struct gl_buffer_object * bufObj ); + +extern void +_mesa_buffer_subdata( GLcontext *ctx, GLenum target, GLintptrARB offset, + GLsizeiptrARB size, const GLvoid * data, + struct gl_buffer_object * bufObj ); + +extern void +_mesa_buffer_get_subdata( GLcontext *ctx, GLenum target, GLintptrARB offset, + GLsizeiptrARB size, GLvoid * data, + struct gl_buffer_object * bufObj ); + +extern void * +_mesa_buffer_map( GLcontext *ctx, GLenum target, GLenum access, + struct gl_buffer_object * bufObj ); + + + +/* + * API functions + */ + extern void _mesa_BindBufferARB(GLenum target, GLuint buffer); |