diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-09-12 18:59:13 +0800 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-09-30 08:31:56 -0600 |
commit | cef97267d696d37f4dccb22951499ca25d5d87ad (patch) | |
tree | 27154b35764d4bd573667b6338e2873a95cc900d /src/mesa/vbo/vbo_exec.h | |
parent | a73ba2d31b87e974f6846a8aaced704634f6f657 (diff) | |
download | external_mesa3d-cef97267d696d37f4dccb22951499ca25d5d87ad.zip external_mesa3d-cef97267d696d37f4dccb22951499ca25d5d87ad.tar.gz external_mesa3d-cef97267d696d37f4dccb22951499ca25d5d87ad.tar.bz2 |
mesa/main: 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.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_exec.h b/src/mesa/vbo/vbo_exec.h index e0f4489..516be09 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 ); |