From 6061df09a45c42745253965df012ddf76910ea33 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 29 Mar 2003 17:01:00 +0000 Subject: Basic infrastructure for GL_ARB_vertex_buffer_object. --- src/mesa/main/state.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/state.c') diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index a2cd89e445..000a1fd578 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 } -- cgit v1.2.3