scene.h 546 B

12345678910111213141516171819202122232425262728293031
  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);
  15. ~scene ();
  16. camera* getCamera ();
  17. private:
  18. irr::io::path m_file;
  19. std::string m_content;
  20. camera* m_camera;
  21. std::vector<object*> m_objects;
  22. json m_json;
  23. };
  24. };
  25. #endif //WALLENGINE_SCENE_H