diff --git a/src/ruis/render/scene/scene.hpp b/src/ruis/render/scene/scene.hpp index 619d73e..6a41807 100644 --- a/src/ruis/render/scene/scene.hpp +++ b/src/ruis/render/scene/scene.hpp @@ -24,36 +24,6 @@ along with this program. If not, see . namespace ruis::render { -class node; -class camera; -class light; - -class scene -{ - uint32_t time = 0; - -public: - std::string name; - - std::vector> nodes; - std::vector> cameras; - std::vector> lights; - - std::shared_ptr active_camera; - - scene() = default; - scene(const scene&) = default; - scene(scene&&) = default; - scene& operator=(const scene&) = default; - scene& operator=(scene&&) = default; - virtual ~scene() = default; - - std::shared_ptr get_primary_light(); - std::shared_ptr get_secondary_light(); - - void update(uint32_t dt); -}; - constexpr float default_camera_near = 0.1; constexpr float default_camera_far = 100.0; @@ -84,4 +54,30 @@ class light light() = default; }; +class scene +{ + uint32_t time = 0; + +public: + std::string name; + + std::vector> nodes; + std::vector> cameras; + std::vector> lights; + + std::shared_ptr active_camera; + + scene() = default; + scene(const scene&) = default; + scene(scene&&) = default; + scene& operator=(const scene&) = default; + scene& operator=(scene&&) = default; + virtual ~scene() = default; + + std::shared_ptr get_primary_light(); + std::shared_ptr get_secondary_light(); + + void update(uint32_t dt); +}; + } // namespace ruis::render \ No newline at end of file