#define BUFFEROBJ_H
+#include "context.h"
+
+
/*
* Internal functions
*/
extern void
-_mesa_initialize_buffer_object( struct gl_buffer_object *obj,
- GLuint name, GLenum target );
+_mesa_init_buffer_objects( GLcontext *ctx );
extern struct gl_buffer_object *
_mesa_new_buffer_object( GLcontext *ctx, GLuint name, GLenum target );
+extern void
+_mesa_delete_buffer_object( GLcontext *ctx, struct gl_buffer_object *bufObj );
+
extern void
_mesa_initialize_buffer_object( struct gl_buffer_object *obj,
GLuint name, GLenum target );
* API functions
*/
-extern void
+extern void GLAPIENTRY
_mesa_BindBufferARB(GLenum target, GLuint buffer);
-extern void
+extern void GLAPIENTRY
_mesa_DeleteBuffersARB(GLsizei n, const GLuint * buffer);
-extern void
+extern void GLAPIENTRY
_mesa_GenBuffersARB(GLsizei n, GLuint * buffer);
-GLboolean
+extern GLboolean GLAPIENTRY
_mesa_IsBufferARB(GLuint buffer);
-extern void
+extern void GLAPIENTRY
_mesa_BufferDataARB(GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage);
-extern void
+extern void GLAPIENTRY
_mesa_BufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data);
-extern void
+extern void GLAPIENTRY
_mesa_GetBufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data);
-extern void *
+extern void * GLAPIENTRY
_mesa_MapBufferARB(GLenum target, GLenum access);
-GLboolean
+extern GLboolean GLAPIENTRY
_mesa_UnmapBufferARB(GLenum target);
-extern void
+extern void GLAPIENTRY
_mesa_GetBufferParameterivARB(GLenum target, GLenum pname, GLint *params);
-extern void
+extern void GLAPIENTRY
_mesa_GetBufferPointervARB(GLenum target, GLenum pname, GLvoid **params);
#endif