Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2008, 11:39:55 PM (16 years ago)
Author:
rgrieder
Message:
  • removed getRoot() from GaphicsEngine —> added getRenderWindow() —> added 3 function to control render loop
  • rearranged the sequence of methods in Orxonox.cc to make it a little bit more logical
  • added deletion code in Orxonox.cc destructor
  • fixed a bug in AudioManger destructor
  • fixed a bug in InputHandler destroy()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/GraphicsEngine.cc

    r926 r929  
    3333
    3434#include <OgreRoot.h>
     35#include <OgreException.h>
    3536#include <OgreConfigFile.h>
    3637#include <OgreTextureManager.h>
     
    6162  GraphicsEngine::~GraphicsEngine()
    6263  {
     64    if (!this->root_)
     65      delete this->root_;
    6366  }
    6467
     
    7881    root_ = new Root(NULL, configPath_ + "ogre.cfg", configPath_ + "Ogre.log");
    7982#endif*/
    80 #if defined(_DEBUG) && defined(WIN32)
     83#if ORXONOX_COMPILER == ORXONOX_COMPILER_MSVC && defined(_DEBUG)
    8184    std::string plugin_filename = "plugins_d.cfg";
    8285#else
     
    110113  }
    111114
    112   void GraphicsEngine::startRender()
     115  void GraphicsEngine::initialise()
    113116  {
    114     root_->initialise(true, "OrxonoxV2");
    115     this->renderWindow_ = root_->getAutoCreatedWindow();
     117    this->renderWindow_ = root_->initialise(true, "OrxonoxV2");
    116118    TextureManager::getSingleton().setDefaultNumMipmaps(5);
    117119    //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.