diff --git a/Userland/Libraries/LibGL/GLContext.h b/Userland/Libraries/LibGL/GLContext.h index 7bf7645251..2e9cfb2f3f 100644 --- a/Userland/Libraries/LibGL/GLContext.h +++ b/Userland/Libraries/LibGL/GLContext.h @@ -18,13 +18,13 @@ #include #include #include +#include #include #include #include #include #include #include -#include #include namespace GL { @@ -438,7 +438,7 @@ private: // Lighting configuration bool m_lighting_enabled { false }; - Vector m_light_states; + Vector m_light_states; Array m_material_states; // Color material diff --git a/Userland/Libraries/LibSoftGPU/Light/Light.h b/Userland/Libraries/LibGPU/Light.h similarity index 98% rename from Userland/Libraries/LibSoftGPU/Light/Light.h rename to Userland/Libraries/LibGPU/Light.h index 9589ac2e31..83509b73c9 100644 --- a/Userland/Libraries/LibSoftGPU/Light/Light.h +++ b/Userland/Libraries/LibGPU/Light.h @@ -9,7 +9,7 @@ #include #include -namespace SoftGPU { +namespace GPU { struct Light { bool is_enabled { false }; diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp index 7703afd74d..a7dd7c984b 100644 --- a/Userland/Libraries/LibSoftGPU/Device.cpp +++ b/Userland/Libraries/LibSoftGPU/Device.cpp @@ -1236,7 +1236,7 @@ void Device::set_sampler_config(unsigned sampler, GPU::SamplerConfig const& conf m_samplers[sampler].set_config(config); } -void Device::set_light_state(unsigned int light_id, Light const& light) +void Device::set_light_state(unsigned int light_id, GPU::Light const& light) { m_lights.at(light_id) = light; } diff --git a/Userland/Libraries/LibSoftGPU/Device.h b/Userland/Libraries/LibSoftGPU/Device.h index 16ec94953d..20e9f2f6c7 100644 --- a/Userland/Libraries/LibSoftGPU/Device.h +++ b/Userland/Libraries/LibSoftGPU/Device.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -26,7 +27,6 @@ #include #include #include -#include #include #include #include @@ -134,7 +134,7 @@ public: NonnullRefPtr create_image(GPU::ImageFormat format, unsigned width, unsigned height, unsigned depth, unsigned levels, unsigned layers); void set_sampler_config(unsigned, GPU::SamplerConfig const&); - void set_light_state(unsigned, Light const&); + void set_light_state(unsigned, GPU::Light const&); void set_material_state(GPU::Face, Material const&); void set_stencil_configuration(GPU::Face, StencilConfiguration const&); @@ -161,7 +161,7 @@ private: Array m_samplers; Vector m_enabled_texture_units; AlphaBlendFactors m_alpha_blend_factors; - Array m_lights; + Array m_lights; Array m_materials; RasterPosition m_raster_position; Array m_stencil_configuration;