25 #ifndef __I6ENGINE_MODULES_GRAPHICSMANAGER_H__
26 #define __I6ENGINE_MODULES_GRAPHICSMANAGER_H__
35 #include "OGRE/OgreFrameListener.h"
36 #include "OGRE/OgreWindowEventUtilities.h"
52 class GraphicsController;
54 class ListenerFactoryLogic;
55 class ResourceManager;
74 inline Ogre::Root *
getRoot()
const {
return _objRoot; }
88 GraphicsNode * getOrCreateGraphicsNode(
const int64_t goid,
const Vec3 & position =
Vec3(0.0, 0.0, 0.0),
const Quaternion & rotation =
Quaternion(1.0, 0.0, 0.0, 0.0),
const Vec3 & scale =
Vec3(1.0, 1.0, 1.0));
95 GraphicsNode * getGraphicsNode(
const int64_t goid)
const;
102 void deleteGraphicsNode(
const int64_t goid);
109 void addTerrain(
const int64_t
id,
const boost::shared_ptr<Terrain> & t);
116 void removeTerrain(
const int64_t
id);
138 bool windowClosing(Ogre::RenderWindow * rw);
188 Ogre::RenderWindow * _rWindow;
193 Ogre::Root * _objRoot;
198 Ogre::SceneManager * _sceneManager;
203 std::map<int64_t, GraphicsNode *> _nodes;
208 std::map<int64_t, boost::shared_ptr<Terrain>> _terrains;
220 Ogre::RaySceneQuery * _raySceneQuery;
225 std::set<GraphicsNode *> _tickers;
238 Ogre::OverlaySystem * _overlaySystem;
240 Ogre::LogManager * _logManager;
242 std::vector<ListenerFactoryLogic *> _compositorLogics;
244 void loadResources(
const std::string & resourcesFile,
const std::function<
void(uint16_t)> & callback);
250 bool frameEnded(
const Ogre::FrameEvent & evt)
override;
Saves all graphics-related data associated with one GameObject.
Class describing a 3d rotation.
i6e::math::i6eVector Vec3
Responsible for initializing and updating the gui.
#define ISIXE_MODULES_API
boost::shared_ptr< Message > Ptr
i6e::math::i6eQuaternion Quaternion
Implements 3-dimensional vectors.
This class is responsible for loading all required resources into memory.
Ogre::RenderWindow * getRenderWindow() const
#define ASSERT_THREAD_SAFETY_HEADER
This class handles the whole Ogre graphics subsystem.
Ogre::SceneManager * getSceneManager() const
Returns a pointer to the sceneManager of the object.
Ogre::Root * getRoot() const
Returns a pointer the root element of the graphics library.