Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2008, 7:39:38 PM (16 years ago)
Author:
rgrieder
Message:

Moved all Ogre related code from GSRoot to GSGraphics.
You should now be able to start the gui, goto ioConsole, then start the gui again and load the level.
gui —> level —> gui doesn't yet work. But I will not dig into that until our object hierarchy has been replaced.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Main.cc

    r1755 r1891  
    3939
    4040#include "util/OrxonoxPlatform.h"
     41#include "util/Debug.h"
     42#include "core/ConfigFileManager.h"
    4143#include "SignalHandler.h"
    42 #include "util/Debug.h"
    4344
    4445#include "gamestates/GSRoot.h"
     
    9091    SignalHandler::getInstance()->doCatch(argv[0], "orxonox.log");
    9192
     93    // Specifiy config file before creating the GameStates in order to have
     94    // setConfigValues() in the constructor (required).
     95#if ORXONOX_DEBUG_MODE == 1
     96        ConfigFileManager::getInstance().setFile(CFT_Settings, "orxonox_d.ini");
     97#else
     98        ConfigFileManager::getInstance().setFile(CFT_Settings, "orxonox.ini");
     99#endif
     100
     101    // create the gamestates
    92102    GSRoot root;
    93103    GSGraphics graphics;
     
    99109    GSIOConsole ioConsole;
    100110
     111    // make the hierarchy
    101112    root.addChild(&graphics);
    102113    graphics.addChild(&standalone);
     
    104115    graphics.addChild(&client);
    105116    graphics.addChild(&gui);
    106 
    107117    root.addChild(&ioConsole);
    108118    root.addChild(&dedicated);
    109119
     120    // Here happens the game
    110121    root.start(argc, argv);
    111122
Note: See TracChangeset for help on using the changeset viewer.