Changeset 929 for code/branches/network/src/orxonox/GraphicsEngine.cc
- Timestamp:
- Mar 26, 2008, 11:39:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/GraphicsEngine.cc
r926 r929 33 33 34 34 #include <OgreRoot.h> 35 #include <OgreException.h> 35 36 #include <OgreConfigFile.h> 36 37 #include <OgreTextureManager.h> … … 61 62 GraphicsEngine::~GraphicsEngine() 62 63 { 64 if (!this->root_) 65 delete this->root_; 63 66 } 64 67 … … 78 81 root_ = new Root(NULL, configPath_ + "ogre.cfg", configPath_ + "Ogre.log"); 79 82 #endif*/ 80 #if defined(_DEBUG) && defined(WIN32)83 #if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC && defined(_DEBUG) 81 84 std::string plugin_filename = "plugins_d.cfg"; 82 85 #else … … 110 113 } 111 114 112 void GraphicsEngine:: startRender()115 void GraphicsEngine::initialise() 113 116 { 114 root_->initialise(true, "OrxonoxV2"); 115 this->renderWindow_ = root_->getAutoCreatedWindow(); 117 this->renderWindow_ = root_->initialise(true, "OrxonoxV2"); 116 118 TextureManager::getSingleton().setDefaultNumMipmaps(5); 117 119 //TODO: Do NOT load all the groups, why are we doing that? And do we really do that? initialise != load...
Note: See TracChangeset
for help on using the changeset viewer.