1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LibSoftGPU: Remove OpenGL type for polygon mode

Replaces the GLenum used to setup polygon mode in RasterizerOptions with
our own enum.
This commit is contained in:
Stephan Unverwerth 2021-12-22 23:51:28 +01:00 committed by Brian Gianforcaro
parent f4d29bf665
commit de0069188f
2 changed files with 20 additions and 2 deletions

View file

@ -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 };