summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/Enums.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Enums.h')
-rw-r--r--Userland/Libraries/LibSoftGPU/Enums.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Enums.h b/Userland/Libraries/LibSoftGPU/Enums.h
new file mode 100644
index 0000000000..e349ced509
--- /dev/null
+++ b/Userland/Libraries/LibSoftGPU/Enums.h
@@ -0,0 +1,71 @@
+/*
+ * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+namespace SoftGPU {
+
+enum class AlphaTestFunction {
+ Never,
+ Always,
+ Less,
+ LessOrEqual,
+ Equal,
+ NotEqual,
+ GreaterOrEqual,
+ Greater,
+};
+
+enum class BlendFactor {
+ Zero,
+ One,
+ SrcAlpha,
+ OneMinusSrcAlpha,
+ SrcColor,
+ OneMinusSrcColor,
+ DstAlpha,
+ OneMinusDstAlpha,
+ DstColor,
+ OneMinusDstColor,
+ SrcAlphaSaturate,
+};
+
+enum class DepthTestFunction {
+ Never,
+ Always,
+ Less,
+ LessOrEqual,
+ Equal,
+ NotEqual,
+ GreaterOrEqual,
+ Greater,
+};
+
+enum FogMode {
+ Linear,
+ Exp,
+ Exp2
+};
+
+enum class PolygonMode {
+ Point,
+ Line,
+ Fill,
+};
+
+enum class WindingOrder {
+ Clockwise,
+ CounterClockwise,
+};
+
+enum class PrimitiveType {
+ Triangles,
+ TriangleStrip,
+ TriangleFan,
+ Quads,
+};
+
+}