summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/Device.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2021-12-22 23:51:28 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-24 05:10:28 -0800
commitde0069188f700e3e5487e7e02adb7876ba3dd178 (patch)
tree71fbbb69c1dbbe8ae3d48376afbd19e9efd67f0f /Userland/Libraries/LibSoftGPU/Device.h
parentf4d29bf665ee98b430c4eb7b80c86824eb147db2 (diff)
downloadserenity-de0069188f700e3e5487e7e02adb7876ba3dd178.zip
LibSoftGPU: Remove OpenGL type for polygon mode
Replaces the GLenum used to setup polygon mode in RasterizerOptions with our own enum.
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Device.h')
-rw-r--r--Userland/Libraries/LibSoftGPU/Device.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.h b/Userland/Libraries/LibSoftGPU/Device.h
index 0f04b05ce4..d5483a9be7 100644
--- a/Userland/Libraries/LibSoftGPU/Device.h
+++ b/Userland/Libraries/LibSoftGPU/Device.h
@@ -68,6 +68,12 @@ enum FogMode {
Exp2
};
+enum class PolygonMode {
+ Point,
+ Line,
+ Fill,
+};
+
enum class WindingOrder {
Clockwise,
CounterClockwise,
@@ -87,7 +93,7 @@ struct RasterizerOptions {
float depth_min { 0 };
float depth_max { 1 };
DepthTestFunction depth_func { DepthTestFunction::Less };
- GLenum polygon_mode { GL_FILL };
+ PolygonMode polygon_mode { PolygonMode::Fill };
FloatVector4 fog_color { 0.0f, 0.0f, 0.0f, 0.0f };
float fog_density { 1.0f };
FogMode fog_mode { FogMode::Exp };