summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-03-29 17:01:00 +0000
committerBrian Paul <[email protected]>2003-03-29 17:01:00 +0000
commit6061df09a45c42745253965df012ddf76910ea33 (patch)
treeacd5b5c2c78ce779208e832362b592105b42c15c /src/mesa/main/state.c
parentc13a05547de406985b3bf3f5e4473eff050b5ac7 (diff)
Basic infrastructure for GL_ARB_vertex_buffer_object.
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index a2cd89e4455..000a1fd578c 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -1,4 +1,4 @@
-/* $Id: state.c,v 1.101 2003/03/29 16:37:07 brianp Exp $ */
+/* $Id: state.c,v 1.102 2003/03/29 17:01:01 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -26,8 +26,8 @@
/*
- * This file manages recalculation of derived values in the
- * __GLcontext.
+ * /brief This file manages recalculation of derived values in the
+ * __GLcontext. Also, this is where we initialize the API dispatch table.
*/
@@ -36,6 +36,9 @@
#include "api_loopback.h"
#include "attrib.h"
#include "blend.h"
+#if FEATURE_ARB_vertex_buffer_object
+#include "bufferobj.h"
+#endif
#include "buffers.h"
#include "clip.h"
#include "colortab.h"
@@ -550,6 +553,21 @@ _mesa_init_exec_table(struct _glapi_table *exec, GLuint tableSize)
/* ARB 14. GL_ARB_point_parameters */
/* reuse EXT_point_parameters functions */
+
+ /* ARB 28. GL_ARB_vertex_buffer_object */
+#if FEATURE_ARB_vertex_buffer_object
+ exec->BindBufferARB = _mesa_BindBufferARB;
+ exec->DeleteBuffersARB = _mesa_DeleteBuffersARB;
+ exec->GenBuffersARB = _mesa_GenBuffersARB;
+ exec->IsBufferARB = _mesa_IsBufferARB;
+ exec->BufferDataARB = _mesa_BufferDataARB;
+ exec->BufferSubDataARB = _mesa_BufferSubDataARB;
+ exec->GetBufferSubDataARB = _mesa_GetBufferSubDataARB;
+ exec->MapBufferARB = _mesa_MapBufferARB;
+ exec->UnmapBufferARB = _mesa_UnmapBufferARB;
+ exec->GetBufferParameterivARB = _mesa_GetBufferParameterivARB;
+ exec->GetBufferPointervARB = _mesa_GetBufferPointervARB;
+#endif
}