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

LibSoftGPU: Remove simple OpenGL types from RasterizerConfig

Replace GLfloat and GLboolean types in RasterizerConfig with their c++
native equivalent.
This commit is contained in:
Stephan Unverwerth 2021-12-22 22:50:33 +01:00 committed by Brian Gianforcaro
parent d8c17c8838
commit 7d49015403

View file

@ -41,22 +41,17 @@ struct RasterizerOptions {
float depth_max { 1 }; float depth_max { 1 };
GLenum depth_func { GL_LESS }; GLenum depth_func { GL_LESS };
GLenum polygon_mode { GL_FILL }; GLenum polygon_mode { GL_FILL };
FloatVector4 fog_color { FloatVector4 fog_color { 0.0f, 0.0f, 0.0f, 0.0f };
0.0f, float fog_density { 1.0f };
0.0f,
0.0f,
0.0f,
};
GLfloat fog_density { 1.0f };
GLenum fog_mode { GL_EXP }; GLenum fog_mode { GL_EXP };
GLboolean fog_enabled { false }; bool fog_enabled { false };
GLfloat fog_start { 0.0f }; float fog_start { 0.0f };
GLfloat fog_end { 1.0f }; float fog_end { 1.0f };
bool scissor_enabled { false }; bool scissor_enabled { false };
Gfx::IntRect scissor_box; Gfx::IntRect scissor_box;
GLenum draw_buffer { GL_BACK }; GLenum draw_buffer { GL_BACK };
GLfloat depth_offset_factor { 0 }; float depth_offset_factor { 0 };
GLfloat depth_offset_constant { 0 }; float depth_offset_constant { 0 };
bool enable_culling { false }; bool enable_culling { false };
GLenum front_face { GL_CCW }; GLenum front_face { GL_CCW };
GLenum culled_sides { GL_BACK }; GLenum culled_sides { GL_BACK };