| 123456789101112131415161718192021222324252627282930313233343536 |
- #pragma once
- #include "BsPrerequisites.h"
- #include "BsCoreSceneManager.h"
- namespace BansheeEngine
- {
- class BS_EXPORT SceneManager : public CoreSceneManager
- {
- public:
- SceneManager() {}
- virtual ~SceneManager() {}
- /**
- * @brief Returns all cameras in the scene.
- */
- virtual const Vector<HCamera>& getAllCameras() const = 0;
- /**
- * @brief Returns all renderables in the scene.
- */
- virtual const Vector<HRenderable>& getAllRenderables() const = 0;
- /**
- * @brief Updates dirty transforms on any scene objects with a Renderable component.
- */
- virtual void updateRenderableTransforms() = 0;
- /**
- * @brief Triggered whenever a renderable is removed from a SceneObject.
- */
- Event<void(const HRenderable&)> onRenderableRemoved;
- };
- BS_EXPORT SceneManager& gBsSceneManager();
- }
|