summaryrefslogtreecommitdiffstats
path: root/src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:46 +0000
commitf8fe689a81f906d1b91bb3220acde2a4ecb14c5b (patch)
tree26484e9d7e2c67806c2d1760196ff01aaa858e8c /src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h
parentInitial commit. (diff)
downloadvirtualbox-upstream.tar.xz
virtualbox-upstream.zip
Adding upstream version 6.0.4-dfsg.upstream/6.0.4-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h')
-rw-r--r--src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h b/src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h
new file mode 100644
index 00000000..33cdf79d
--- /dev/null
+++ b/src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h
@@ -0,0 +1,53 @@
+/* Copyright (c) 2001, Stanford University
+ * All rights reserved.
+ *
+ * See the file LICENSE.txt for information on redistributing this software.
+ */
+
+#ifndef CR_STATE_POLYGON_H
+#define CR_STATE_POLYGON_H
+
+#include "state/cr_statetypes.h"
+
+#include <iprt/cdefs.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct {
+ CRbitvalue enable[CR_MAX_BITARRAY];
+ CRbitvalue offset[CR_MAX_BITARRAY];
+ CRbitvalue mode[CR_MAX_BITARRAY];
+ CRbitvalue stipple[CR_MAX_BITARRAY];
+ CRbitvalue dirty[CR_MAX_BITARRAY];
+} CRPolygonBits;
+
+typedef struct {
+ GLboolean polygonSmooth;
+ GLboolean polygonOffsetFill;
+ GLboolean polygonOffsetLine;
+ GLboolean polygonOffsetPoint;
+ GLboolean polygonStipple;
+ GLboolean cullFace;
+ GLfloat offsetFactor;
+ GLfloat offsetUnits;
+ GLenum cullFaceMode;
+ GLenum frontFace;
+ GLenum frontMode;
+ GLenum backMode;
+ GLint stipple[32];
+} CRPolygonState;
+
+DECLEXPORT(void) crStatePolygonInit(CRContext *ctx);
+
+DECLEXPORT(void) crStatePolygonDiff(CRPolygonBits *bb, CRbitvalue *bitID,
+ CRContext *fromCtx, CRContext *toCtx);
+DECLEXPORT(void) crStatePolygonSwitch(CRPolygonBits *bb, CRbitvalue *bitID,
+ CRContext *fromCtx, CRContext *toCtx);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif