24 #include "../Math_LIB/MMatrix3x3.h"
31 namespace OpenSkyNet {
48 virtual bool configure(
bool restoreOgreConfig_);
75 void serialize(TiXmlElement* element_, Ogre::SceneNode* parentSceneNode_);
80 inline Ogre::SceneNode*
getSceneNode(
const char* name_)
const {
return _sceneMgr->getSceneNode(Ogre::String(name_)); }
91 virtual bool setup(
bool restoreOgreConfig_);
94 virtual void createScene(
const char* sceneGraphXML_);
96 Ogre::SceneNode*
createSceneNode(
const char* name_,
bool isPersistent_, Ogre::SceneNode* parent_);
99 virtual void destroyScene(
bool doDestroyPersistentData_);
102 _root->startRendering();
virtual ~OgreApp()
Definition: GOgreApp.h:78
Ogre::SceneManager * getSceneManager() const
Definition: GOgreApp.h:82
Ogre::Camera * _camera
Definition: GOgreApp.h:37
virtual void createScene(const char *sceneGraphXML_)
Definition: GOgreApp.cpp:95
const std::vector< Ogre::SceneNode * > & getNonPersistentNodes() const
Definition: GOgreApp.h:88
std::vector< Ogre::Light * > _nonPersistentLights
Definition: GOgreApp.h:43
std::map< std::string, Ogre::SceneNode * > _namesToSerializableNodes
Definition: GOgreApp.h:40
std::vector< Ogre::SceneNode * > _nonPersistentNodes
Definition: GOgreApp.h:41
std::map< std::string, Ogre::Light * > _namesToSerializableLights
Definition: GOgreApp.h:42
Ogre::RenderWindow * getWindow() const
Definition: GOgreApp.h:86
Ogre::RenderWindow * _window
Definition: GOgreApp.h:39
const Ogre::Camera * getCam() const
Definition: GOgreApp.h:84
virtual void destroyScene(bool doDestroyPersistentData_)
Definition: GOgreApp.cpp:141
virtual bool configure(bool restoreOgreConfig_)
Definition: GOgreApp.cpp:62
Ogre::SceneNode * getSceneNode(const char *name_) const
Definition: GOgreApp.h:80
virtual void setupResources()
Definition: GOgreApp.cpp:41
virtual void go()
Definition: GOgreApp.h:101
virtual void createViewports()
Definition: GOgreApp.cpp:81
void processSceneGraphXML(TiXmlElement *element_, Ogre::SceneNode *parentSceneNode_)
Definition: GOgreApp.cpp:166
OgreApp()
Definition: GOgreApp.h:77
Definition: GOgreApp.h:34
Ogre::SceneNode * createSceneNode(const char *name_, bool isPersistent_, Ogre::SceneNode *parent_)
Definition: GOgreApp.cpp:132
virtual void createCamera()
Definition: GOgreApp.cpp:74
virtual void loadResources()
Definition: GOgreApp.cpp:90
Ogre::Root * _root
Definition: GOgreApp.h:36
virtual void createResourceListener()
Definition: GOgreApp.h:53
Ogre::SceneManager * _sceneMgr
Definition: GOgreApp.h:38
void serializeSceneGraph(const char *sceneGraphXML_)
Definition: GOgreApp.cpp:267
virtual void chooseSceneManager()
Definition: GOgreApp.cpp:70
void serialize(TiXmlElement *element_, Ogre::SceneNode *parentSceneNode_)
Definition: GOgreApp.cpp:208
virtual bool setup(bool restoreOgreConfig_)
Definition: GOgreApp.cpp:14