CLight.h 728 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "WallpaperEngine/Scripting/ScriptableObject.h"
  3. namespace WallpaperEngine::Render::Objects {
  4. using namespace WallpaperEngine::Data::Model;
  5. /**
  6. * A light draws nothing itself, it only feeds the scene's light uniforms. Old "point" lights take one of the four
  7. * fixed slots lit image shaders read (the first free one when created, a fifth light shares slot 0 like in WE)
  8. */
  9. class CLight final : public Scripting::ScriptableObject {
  10. public:
  11. CLight (Wallpapers::CScene& scene, const Light& light, int slot);
  12. [[nodiscard]] const Light& getLight () const;
  13. [[nodiscard]] int getSlot () const;
  14. private:
  15. const Light& m_light;
  16. int m_slot;
  17. };
  18. } // namespace WallpaperEngine::Render::Objects