projection.h 433 B

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