aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/vtxfmt.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2009-09-12 18:59:13 +0800
committerBrian Paul <[email protected]>2009-09-30 08:31:56 -0600
commitcef97267d696d37f4dccb22951499ca25d5d87ad (patch)
tree27154b35764d4bd573667b6338e2873a95cc900d /src/mesa/main/vtxfmt.h
parenta73ba2d31b87e974f6846a8aaced704634f6f657 (diff)
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/main/vtxfmt.h')
-rw-r--r--src/mesa/main/vtxfmt.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/mesa/main/vtxfmt.h b/src/mesa/main/vtxfmt.h
index 76f108e0232..fb6c23abe98 100644
--- a/src/mesa/main/vtxfmt.h
+++ b/src/mesa/main/vtxfmt.h
@@ -33,6 +33,8 @@
#ifndef _VTXFMT_H_
#define _VTXFMT_H_
+#if FEATURE_beginend
+
extern void _mesa_init_exec_vtxfmt( GLcontext *ctx );
extern void _mesa_install_exec_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt );
@@ -40,4 +42,28 @@ extern void _mesa_install_save_vtxfmt( GLcontext *ctx, const GLvertexformat *vfm
extern void _mesa_restore_exec_vtxfmt( GLcontext *ctx );
-#endif
+#else /* FEATURE_beginend */
+
+static INLINE void
+_mesa_init_exec_vtxfmt( GLcontext *ctx )
+{
+}
+
+static INLINE void
+_mesa_install_exec_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt )
+{
+}
+
+static INLINE void
+_mesa_install_save_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt )
+{
+}
+
+static INLINE void
+_mesa_restore_exec_vtxfmt( GLcontext *ctx )
+{
+}
+
+#endif /* FEATURE_beginend */
+
+#endif /* _VTXFMT_H_ */