summaryrefslogtreecommitdiffstats
path: root/src/VBox/GuestHost/OpenGL/state_tracker/state_internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/state_tracker/state_internals.h')
-rw-r--r--src/VBox/GuestHost/OpenGL/state_tracker/state_internals.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/state_tracker/state_internals.h b/src/VBox/GuestHost/OpenGL/state_tracker/state_internals.h
new file mode 100644
index 00000000..6610ca8a
--- /dev/null
+++ b/src/VBox/GuestHost/OpenGL/state_tracker/state_internals.h
@@ -0,0 +1,29 @@
+/* Copyright (c) 2001, Stanford University
+ * All rights reserved.
+ *
+ * See the file LICENSE.txt for information on redistributing this software.
+ */
+
+#ifndef STATE_INTERNALS_H
+#define STATE_INTERNALS_H
+
+#include "cr_spu.h"
+#include "state/cr_statetypes.h"
+
+/* Set the flush_func to NULL *before* it's called, so that we can
+ * call state functions from within flush without infinite recursion.
+ * Yucky, but "necessary" for color material. */
+
+#define FLUSH() \
+ if (g->flush_func != NULL) \
+ { \
+ CRStateFlushFunc cached_ff = g->flush_func; \
+ g->flush_func = NULL; \
+ cached_ff( g->flush_arg ); \
+ }
+
+typedef void (SPU_APIENTRY *glAble)(GLenum);
+
+#define GLCLIENT_BIT_ALLOC 1024
+
+#endif