From 0207b47aafebc06cf83fbdb8c9b01f63374fac66 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 9 Sep 2003 00:10:12 +0000 Subject: Added most of the infrastructure required to support ARB_vertex_buffer_object. THIS IS INCOMPLETE. --- src/mesa/main/mtypes.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/mesa/main/mtypes.h') diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index a51a463602..3abf6ea4ac 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1598,6 +1598,9 @@ struct gl_shared_state #endif /*@}*/ + /** GL_ARB_vertex_buffer_objects */ + struct _mesa_HashTable *BufferObjects; + void *DriverData; /**< Device driver shared state */ }; @@ -1985,6 +1988,7 @@ typedef union node Node; /* This has to be included here. */ +struct gl_buffer_object; #include "dd.h" @@ -2220,6 +2224,18 @@ struct __GLcontextRec { /** Core tnl module support */ struct gl_tnl_module TnlModule; + /** + * \name GL_ARB_vertex_buffer_object state + * + * These pointers track the buffer objects last bound via + * \c glBindBufferObjectARB. If it the last bound object ID was 0 for a + * given target, the pointer will be \c NULL. + */ + /*@{*/ + struct gl_buffer_object * ArrayBuffer; + struct gl_buffer_object * ElementArrayBuffer; + /*@}*/ + /** * \name Hooks for module contexts. * -- cgit v1.2.3