summaryrefslogtreecommitdiff
path: root/src/mesa/main/mtypes.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2003-09-09 00:10:12 +0000
committerIan Romanick <idr@us.ibm.com>2003-09-09 00:10:12 +0000
commit0207b47aafebc06cf83fbdb8c9b01f63374fac66 (patch)
tree94c2117044f7976487c29cfae65b62198d9f921d /src/mesa/main/mtypes.h
parent0a363f4e87742680ac9193c3a276f5e93ac6adef (diff)
Added most of the infrastructure required to support
ARB_vertex_buffer_object. THIS IS INCOMPLETE.
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r--src/mesa/main/mtypes.h16
1 files changed, 16 insertions, 0 deletions
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"
@@ -2221,6 +2225,18 @@ struct __GLcontextRec {
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.
*
* These will eventually live in the driver or elsewhere.