scene.h 539 B

1234567891011121314151617181920212223242526272829
  1. #ifndef WALLENGINE_SCENE_H
  2. #define WALLENGINE_SCENE_H
  3. #include <iostream>
  4. #include <irrlicht/irrlicht.h>
  5. #include <nlohmann/json.hpp>
  6. #include "object.h"
  7. #include "camera.h"
  8. namespace wp
  9. {
  10. using json = nlohmann::json;
  11. class scene
  12. {
  13. public:
  14. scene (irr::io::path file, irr::io::path basepath);
  15. ~scene ();
  16. private:
  17. irr::io::path m_file;
  18. std::string m_content;
  19. camera* m_camera;
  20. std::vector<object*> m_objects;
  21. json m_json;
  22. };
  23. };
  24. #endif //WALLENGINE_SCENE_H