summaryrefslogtreecommitdiff
path: root/src/mesa/vbo/vbo_exec.h
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-12 18:59:13 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-09-13 17:06:16 +0800
commite6f4bc9d824223325f926cbe7ac1b6a55d2b3dba (patch)
treec89f6c18bc5c5bc1173ecb7c5dbb155de18528a6 /src/mesa/vbo/vbo_exec.h
parent2ae5bf72c2d0d244b7972b8e27e12b1983f5f68e (diff)
mesa: New feature FEATURE_beginend.
This feature corresponds to the Begin/End paradigm. Disabling this feature also eliminates the use of GLvertexformat completely.
Diffstat (limited to 'src/mesa/vbo/vbo_exec.h')
-rw-r--r--src/mesa/vbo/vbo_exec.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_exec.h b/src/mesa/vbo/vbo_exec.h
index e0f44892cf..516be0995b 100644
--- a/src/mesa/vbo/vbo_exec.h
+++ b/src/mesa/vbo/vbo_exec.h
@@ -161,8 +161,26 @@ void vbo_exec_array_destroy( struct vbo_exec_context *exec );
void vbo_exec_vtx_init( struct vbo_exec_context *exec );
void vbo_exec_vtx_destroy( struct vbo_exec_context *exec );
+
+#if FEATURE_beginend
+
void vbo_exec_vtx_flush( struct vbo_exec_context *exec, GLboolean unmap );
void vbo_exec_vtx_map( struct vbo_exec_context *exec );
+
+#else /* FEATURE_beginend */
+
+static INLINE void
+vbo_exec_vtx_flush( struct vbo_exec_context *exec, GLboolean unmap )
+{
+}
+
+static INLINE void
+vbo_exec_vtx_map( struct vbo_exec_context *exec )
+{
+}
+
+#endif /* FEATURE_beginend */
+
void vbo_exec_vtx_wrap( struct vbo_exec_context *exec );
void vbo_exec_eval_update( struct vbo_exec_context *exec );