mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
LibSoftGPU: Remove OpenGL type for front face selection
Replaces the GLenum used for selecting the frontface in the rasterizer config with out own enum.
This commit is contained in:
parent
c720cd00db
commit
24c76741e8
3 changed files with 8 additions and 3 deletions
|
@ -51,6 +51,11 @@ enum class BlendFactor {
|
|||
SrcAlphaSaturate,
|
||||
};
|
||||
|
||||
enum class WindingOrder {
|
||||
Clockwise,
|
||||
CounterClockwise,
|
||||
};
|
||||
|
||||
struct RasterizerOptions {
|
||||
bool shade_smooth { true };
|
||||
bool enable_depth_test { false };
|
||||
|
@ -78,7 +83,7 @@ struct RasterizerOptions {
|
|||
float depth_offset_factor { 0 };
|
||||
float depth_offset_constant { 0 };
|
||||
bool enable_culling { false };
|
||||
GLenum front_face { GL_CCW };
|
||||
WindingOrder front_face { WindingOrder::CounterClockwise };
|
||||
GLenum culled_sides { GL_BACK };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue