-# $Id: Makefile.X11,v 1.75 2003/03/25 02:26:29 brianp Exp $
+# $Id: Makefile.X11,v 1.76 2003/03/29 17:01:02 brianp Exp $
# Mesa 3-D graphics library
# Version: 5.0
accum.c \
attrib.c \
blend.c \
+ bufferobj.c \
+ bufferobj.c \
buffers.c \
clip.c \
colortab.c \
accum.c \
attrib.c \
blend.c \
+ bufferobj.c \
buffers.c \
clip.c \
colortab.c \
# Mesa 3-D graphics library\r
-# Version: 4.1\r
+# Version: 5.1\r
# \r
-# Copyright (C) 1999-2002 Brian Paul All Rights Reserved.\r
+# Copyright (C) 1999-2003 Brian Paul All Rights Reserved.\r
# \r
# Permission is hereby granted, free of charge, to any person obtaining a\r
# copy of this software and associated documentation files (the "Software"),\r
accum.c \\r
attrib.c \\r
blend.c \\r
+ bufferobj.c \\r
buffers.c \\r
clip.c \\r
colortab.c \\r
-# $Id: Makefile.OSMesa16,v 1.13 2003/03/25 02:26:29 brianp Exp $
+# $Id: Makefile.OSMesa16,v 1.14 2003/03/29 17:01:02 brianp Exp $
# Mesa 3-D graphics library
-# Version: 5.0
-# Copyright (C) 1995-2002 Brian Paul
+# Version: 5.1
+# Copyright (C) 1995-2003 Brian Paul
# Makefile for building Mesa for 16/32-bit/channel rendering with the OSMesa
# driver.
accum.c \
attrib.c \
blend.c \
+ bufferobj.c \
buffers.c \
clip.c \
colortab.c \
-# $Id: Makefile.X11,v 1.75 2003/03/25 02:26:29 brianp Exp $
+# $Id: Makefile.X11,v 1.76 2003/03/29 17:01:02 brianp Exp $
# Mesa 3-D graphics library
# Version: 5.0
accum.c \
attrib.c \
blend.c \
+ bufferobj.c \
+ bufferobj.c \
buffers.c \
clip.c \
colortab.c \
accum.c \
attrib.c \
blend.c \
+ bufferobj.c \
buffers.c \
clip.c \
colortab.c \
accum.c \
attrib.c \
blend.c \
+ bufferobj.c \
buffers.c \
clip.c \
colortab.c \
--- /dev/null
+/* $Id: bufferobj.c,v 1.1 2003/03/29 17:01:00 brianp Exp $ */
+
+/*
+ * Mesa 3-D graphics library
+ * Version: 5.1
+ *
+ * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+
+/**
+ * \file bufferobj.c
+ * \brief Functions for the GL_ARB_vertex_buffer_object extension.
+ * \author Brian Paul
+ */
+
+
+#include "glheader.h"
+#include "imports.h"
+#include "bufferobj.h"
+
+
+void
+_mesa_BindBufferARB(GLenum target, GLuint buffer)
+{
+}
+
+void
+_mesa_DeleteBuffersARB(GLsizei n, const GLuint * buffer)
+{
+}
+
+void
+_mesa_GenBuffersARB(GLsizei n, GLuint * buffer)
+{
+}
+
+GLboolean
+_mesa_IsBufferARB(GLuint buffer)
+{
+ return GL_FALSE;
+}
+
+void
+_mesa_BufferDataARB(GLenum target, GLsizeiptrARB size,
+ const GLvoid * data, GLenum usage)
+{
+}
+
+void
+_mesa_BufferSubDataARB(GLenum target, GLintptrARB offset,
+ GLsizeiptrARB size, const GLvoid * data)
+{
+}
+
+void
+_mesa_GetBufferSubDataARB(GLenum target, GLintptrARB offset,
+ GLsizeiptrARB size, void * data)
+{
+}
+
+void
+_mesa_MapBufferARB(GLenum target, GLenum access)
+{
+}
+
+GLboolean
+_mesa_UnmapBufferARB(GLenum target)
+{
+ return GL_FALSE;
+}
+
+void
+_mesa_GetBufferParameterivARB(GLenum target, GLenum pname, GLint *params)
+{
+}
+
+void
+_mesa_GetBufferPointervARB(GLenum target, GLenum pname, GLvoid **params)
+{
+}
--- /dev/null
+/* $Id: bufferobj.h,v 1.1 2003/03/29 17:01:00 brianp Exp $ */
+
+/*
+ * Mesa 3-D graphics library
+ * Version: 5.1
+ *
+ * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+
+
+#ifndef BUFFEROBJ_H
+#define BUFFEROBJ_H
+
+
+extern void
+_mesa_BindBufferARB(GLenum target, GLuint buffer);
+
+extern void
+_mesa_DeleteBuffersARB(GLsizei n, const GLuint * buffer);
+
+extern void
+_mesa_GenBuffersARB(GLsizei n, GLuint * buffer);
+
+GLboolean
+_mesa_IsBufferARB(GLuint buffer);
+
+extern void
+_mesa_BufferDataARB(GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage);
+
+extern void
+_mesa_BufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data);
+
+extern void
+_mesa_GetBufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data);
+
+extern void
+_mesa_MapBufferARB(GLenum target, GLenum access);
+
+GLboolean
+_mesa_UnmapBufferARB(GLenum target);
+
+extern void
+_mesa_GetBufferParameterivARB(GLenum target, GLenum pname, GLint *params);
+
+extern void
+_mesa_GetBufferPointervARB(GLenum target, GLenum pname, GLvoid **params);
+
+#endif
-/* $Id: config.h,v 1.44 2003/02/25 19:30:59 brianp Exp $ */
+/* $Id: config.h,v 1.45 2003/03/29 17:01:03 brianp Exp $ */
/*
* Mesa 3-D graphics library
#define FEATURE_NV_fragment_program 1
+#define FEATURE_ARB_vertex_buffer_object 1
#endif /* CONFIG_H */
api_validate.c \
attrib.c \
blend.c \
+ bufferobj.c \
buffers.c \
clip.c \
colortab.c \
[.swrast]s_alphabuf.c \
[.swrast]s_bitmap.c \
[.swrast]s_blend.c \
+[.swrast]s_bufferobj.c \
[.swrast]s_buffers.c \
[.swrast]s_copypix.c \
[.swrast]s_context.c \
-/* $Id: extensions.c,v 1.88 2003/01/21 21:47:49 brianp Exp $ */
+/* $Id: extensions.c,v 1.89 2003/03/29 17:01:01 brianp Exp $ */
/*
* Mesa 3-D graphics library
{ OFF, "GL_ARB_texture_env_dot3", F(ARB_texture_env_dot3) },
{ OFF, "GL_ARB_texture_mirrored_repeat", F(ARB_texture_mirrored_repeat)},
{ ON, "GL_ARB_transpose_matrix", 0 },
+ { OFF, "GL_ARB_vertex_buffer_object", F(ARB_vertex_buffer_object) },
{ ON, "GL_ARB_window_pos", F(ARB_window_pos) },
{ OFF, "GL_ATI_texture_mirror_once", F(ATI_texture_mirror_once)},
{ OFF, "GL_ATI_texture_env_combine3", F(ATI_texture_env_combine3)},
-/* $Id: mtypes.h,v 1.107 2003/03/19 05:34:24 brianp Exp $ */
+/* $Id: mtypes.h,v 1.108 2003/03/29 17:01:00 brianp Exp $ */
/*
* Mesa 3-D graphics library
GLboolean ARB_texture_env_crossbar;
GLboolean ARB_texture_env_dot3;
GLboolean ARB_texture_mirrored_repeat;
+ GLboolean ARB_vertex_buffer_object;
GLboolean ARB_window_pos;
GLboolean ATI_texture_mirror_once;
GLboolean ATI_texture_env_combine3;
-/* $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
/*
- * 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.
*/
#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"
/* 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
}