summaryrefslogtreecommitdiffstats
path: root/src/VBox/GuestHost/OpenGL/include/state/cr_fog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/include/state/cr_fog.h')
-rw-r--r--src/VBox/GuestHost/OpenGL/include/state/cr_fog.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_fog.h b/src/VBox/GuestHost/OpenGL/include/state/cr_fog.h
new file mode 100644
index 00000000..f0f85129
--- /dev/null
+++ b/src/VBox/GuestHost/OpenGL/include/state/cr_fog.h
@@ -0,0 +1,62 @@
+/* Copyright (c) 2001, Stanford University
+ * All rights reserved.
+ *
+ * See the file LICENSE.txt for information on redistributing this software.
+ */
+
+#ifndef CR_STATE_FOG_H
+#define CR_STATE_FOG_H
+
+#include "state/cr_statetypes.h"
+
+#include <iprt/cdefs.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct {
+ CRbitvalue dirty[CR_MAX_BITARRAY];
+ CRbitvalue color[CR_MAX_BITARRAY];
+ CRbitvalue index[CR_MAX_BITARRAY];
+ CRbitvalue density[CR_MAX_BITARRAY];
+ CRbitvalue start[CR_MAX_BITARRAY];
+ CRbitvalue end[CR_MAX_BITARRAY];
+ CRbitvalue mode[CR_MAX_BITARRAY];
+ CRbitvalue enable[CR_MAX_BITARRAY];
+#ifdef CR_NV_fog_distance
+ CRbitvalue fogDistanceMode[CR_MAX_BITARRAY];
+#endif
+#ifdef CR_EXT_fog_coord
+ CRbitvalue fogCoordinateSource[CR_MAX_BITARRAY];
+#endif
+} CRFogBits;
+
+typedef struct {
+ GLcolorf color;
+ GLint index;
+ GLfloat density;
+ GLfloat start;
+ GLfloat end;
+ GLint mode;
+ GLboolean enable;
+#ifdef CR_NV_fog_distance
+ GLenum fogDistanceMode;
+#endif
+#ifdef CR_EXT_fog_coord
+ GLenum fogCoordinateSource;
+#endif
+} CRFogState;
+
+DECLEXPORT(void) crStateFogInit(CRContext *ctx);
+
+DECLEXPORT(void) crStateFogDiff(CRFogBits *bb, CRbitvalue *bitID,
+ CRContext *fromCtx, CRContext *toCtx);
+DECLEXPORT(void) crStateFogSwitch(CRFogBits *bb, CRbitvalue *bitID,
+ CRContext *fromCtx, CRContext *toCtx);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CR_STATE_FOG_H */