CProjection.h 454 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "WallpaperEngine/Core/Core.h"
  3. namespace WallpaperEngine::Core::Scenes
  4. {
  5. using json = nlohmann::json;
  6. class CProjection
  7. {
  8. public:
  9. static CProjection* fromJSON (json data);
  10. const uint32_t& getWidth () const;
  11. const uint32_t& getHeight () const;
  12. protected:
  13. CProjection (uint32_t width, uint32_t height);
  14. private:
  15. uint32_t m_width;
  16. uint32_t m_height;
  17. };
  18. };