diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2021-12-22 22:50:33 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-24 05:10:28 -0800 |
commit | 7d49015403ff8999ce2c2ec9c1c136b376b9aa5c (patch) | |
tree | 99d8b2f825188ab0ec65b8adef340325b25f79cc /Userland/Libraries | |
parent | d8c17c8838a948207b8dbc1e96db628b21b5b6a8 (diff) | |
download | serenity-7d49015403ff8999ce2c2ec9c1c136b376b9aa5c.zip |
LibSoftGPU: Remove simple OpenGL types from RasterizerConfig
Replace GLfloat and GLboolean types in RasterizerConfig with their c++
native equivalent.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Device.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.h b/Userland/Libraries/LibSoftGPU/Device.h index a0cd4a9f37..b558af8804 100644 --- a/Userland/Libraries/LibSoftGPU/Device.h +++ b/Userland/Libraries/LibSoftGPU/Device.h @@ -41,22 +41,17 @@ struct RasterizerOptions { float depth_max { 1 }; GLenum depth_func { GL_LESS }; GLenum polygon_mode { GL_FILL }; - FloatVector4 fog_color { - 0.0f, - 0.0f, - 0.0f, - 0.0f, - }; - GLfloat fog_density { 1.0f }; + FloatVector4 fog_color { 0.0f, 0.0f, 0.0f, 0.0f }; + float fog_density { 1.0f }; GLenum fog_mode { GL_EXP }; - GLboolean fog_enabled { false }; - GLfloat fog_start { 0.0f }; - GLfloat fog_end { 1.0f }; + bool fog_enabled { false }; + float fog_start { 0.0f }; + float fog_end { 1.0f }; bool scissor_enabled { false }; Gfx::IntRect scissor_box; GLenum draw_buffer { GL_BACK }; - GLfloat depth_offset_factor { 0 }; - GLfloat depth_offset_constant { 0 }; + float depth_offset_factor { 0 }; + float depth_offset_constant { 0 }; bool enable_culling { false }; GLenum front_face { GL_CCW }; GLenum culled_sides { GL_BACK }; |