CProjection.h 449 B

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