Changeset 969
- Timestamp:
- Mar 31, 2008, 10:43:58 PM (17 years ago)
- Location:
- code/branches/input/src/orxonox
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/GraphicsEngine.cc
r940 r969 63 63 GraphicsEngine::~GraphicsEngine() 64 64 { 65 if ( !this->root_)65 if (this->root_) 66 66 delete this->root_; 67 // delete the ogre log and the logManager (sine we have created it). 68 if (LogManager::getSingletonPtr() != 0) 69 { 70 LogManager::getSingleton().getDefaultLog()->removeListener(this); 71 LogManager::getSingleton().destroyLog(LogManager::getSingleton().getDefaultLog()); 72 delete LogManager::getSingletonPtr(); 73 } 67 74 } 68 75 -
code/branches/input/src/orxonox/GraphicsEngine.h
r940 r969 28 28 public: 29 29 GraphicsEngine(); 30 inlinevoid setConfigPath(std::string path) { this->configPath_ = path; };30 void setConfigPath(std::string path) { this->configPath_ = path; }; 31 31 // find a better way for this 32 32 //inline Ogre::Root* getRoot() { return root_; }; -
code/branches/input/src/orxonox/InputHandler.cc
r944 r969 166 166 @brief Destroys the singleton. 167 167 */ 168 void InputHandler::destroy ()168 void InputHandler::destroySingleton() 169 169 { 170 170 if (singletonRef_s) … … 179 179 void InputHandler::tick(float dt) 180 180 { 181 //this->mouse_->setEventCallback(this); 181 182 // capture all the input. That calls the event handlers. 182 183 if (mouse_) … … 251 252 bool InputHandler::mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id) 252 253 { 254 COUT(1) << "asdf" << std::endl; 253 255 return true; 254 256 } -
code/branches/input/src/orxonox/InputHandler.h
r934 r969 63 63 64 64 static InputHandler* getSingleton(); 65 static void destroy ();65 static void destroySingleton(); 66 66 67 67 private: -
code/branches/input/src/orxonox/Main.cc
r934 r969 84 84 85 85 orx->start(); 86 orx->destroy ();86 orx->destroySingleton(); 87 87 } 88 88 catch (std::exception &ex) -
code/branches/input/src/orxonox/Orxonox.cc
r945 r969 108 108 delete this->orxonoxHUD_; 109 109 Loader::close(); 110 InputHandler::destroy ();110 InputHandler::destroySingleton(); 111 111 if (this->auMan_) 112 112 delete this->auMan_; … … 154 154 @brief Destroys the Orxonox singleton. 155 155 */ 156 void Orxonox::destroy ()156 void Orxonox::destroySingleton() 157 157 { 158 158 if (singletonRef_s) -
code/branches/input/src/orxonox/Orxonox.h
r934 r969 44 44 45 45 static Orxonox* getSingleton(); 46 static void destroy ();46 static void destroySingleton(); 47 47 48 48 private: -
code/branches/input/src/orxonox/OrxonoxPlatform.h
r917 r969 270 270 } /* namespace orxonox */ 271 271 272 // include visual leak detector to search for memory links 273 // #include <vld.h> 274 272 275 #endif /* _OrxonoxPlatform_H__ */ -
code/branches/input/src/orxonox/OrxonoxStableHeaders.h
r922 r969 40 40 // including std headers here is useless since they're already precompiled 41 41 42 // not including the entire Ogre.h doesn't exceed the default heap size for pch43 42 #ifndef WIN32_LEAN_AND_MEAN 44 43 // prevent Ogre from including winsock.h that messes with winsock2.h from enet 45 44 # define WIN32_LEAN_AND_MEAN 46 45 #endif 46 // not including the entire Ogre.h doesn't exceed the default heap size for pch 47 47 //#include <Ogre.h> 48 48 #include <OgreBillboardSet.h> -
code/branches/input/src/orxonox/core/Factory.h
r871 r969 51 51 namespace orxonox 52 52 { 53 class BaseObject; // Forward declaration54 55 53 // ############################### 56 54 // ### Factory ### -
code/branches/input/src/orxonox/core/Identifier.h
r917 r969 33 33 - the name 34 34 - a list with all objects 35 - parents and child s35 - parents and children 36 36 - the factory (if available) 37 37 - the networkID that can be synchronised with the server … … 65 65 namespace orxonox 66 66 { 67 class BaseFactory; // Forward declaration68 class BaseObject; // Forward declaration69 70 67 // ############################### 71 68 // ### Identifier ### -
code/branches/input/src/orxonox/core/Tickable.h
r918 r969 46 46 namespace orxonox 47 47 { 48 //class TickFrameListener; // Forward declaration49 50 48 //! The Tickable interface provides a tick(dt) function, that gets called every frame. 51 49 class _CoreExport Tickable : virtual public OrxonoxClass -
code/branches/input/src/orxonox/objects/Fighter.h
r871 r969 7 7 8 8 #include "Model.h" 9 10 class TiXmlElement; // Forward declaration11 9 12 10 namespace orxonox -
code/branches/input/src/orxonox/objects/Model.h
r927 r969 6 6 #include "WorldEntity.h" 7 7 #include "../tools/Mesh.h" 8 9 class TiXmlElement; // Forward declaration10 8 11 9 namespace orxonox -
code/branches/input/src/orxonox/objects/NPC.h
r871 r969 11 11 12 12 #include "Model.h" 13 14 class TiXmlElement; // Forward declaration15 13 16 14 namespace orxonox { -
code/branches/input/src/orxonox/objects/Projectile.h
r871 r969 10 10 namespace orxonox 11 11 { 12 class SpaceShip; // Forward declaration13 14 12 class _OrxonoxExport Projectile : public WorldEntity 15 13 { -
code/branches/input/src/orxonox/objects/Skybox.h
r871 r969 5 5 6 6 #include "core/BaseObject.h" 7 8 class TiXmlElement; // Forward declaration9 7 10 8 namespace orxonox -
code/branches/input/src/orxonox/objects/SpaceShip.h
r927 r969 10 10 #include "../tools/BillboardSet.h" 11 11 12 class TiXmlElement; // Forward declaration13 14 12 namespace orxonox 15 13 { 16 class ParticleInterface; // Forward declaration17 18 14 class _OrxonoxExport SpaceShip : public Model, public OIS::MouseListener 19 15 {
Note: See TracChangeset
for help on using the changeset viewer.