Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2007, 12:32:09 PM (16 years ago)
Author:
rgrieder
Message:
  • removed all the "using namespace Ogre" in the header files
  • cleaned up the orxonox.cc header a little bit (every Ogre class referenced is now included via header file)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/orxonox.cc

    r608 r609  
    3131 */
    3232
    33 #include "orxonox.h"
    34 #include "graphicsEngine.h"
    35 
    36 //#include <Ogre.h>
    37 // 40% speed up: (instead of Ogre.h)
    38 #include <OgreSceneNode.h>
    39 #include <OgreSceneManager.h>
     33//****** OGRE ******
     34#include <OgreString.h>
     35#include <OgreException.h>
    4036#include <OgreRoot.h>
    4137#include <OgreFrameListener.h>
     38#include <OgreRenderWindow.h>
     39#include <OgreTextureManager.h>
     40#include <OgreResourceGroupManager.h>
    4241#include <OgreConfigFile.h>
    43 #include <OgreTextureManager.h>
    44 #include <OgreEntity.h>
    45 #include <OgreRenderWindow.h>
    46 
     42#include <OgreOverlay.h>
     43#include <OgreOverlayManager.h>
     44
     45//****** OIS *******
    4746#include <OIS/OIS.h>
    48 //#include <CEGUI/CEGUI.h>
    49 //#include <OgreCEGUIRenderer.h>
    50 
     47
     48//****** STD *******
    5149#include <string>
    5250#include <iostream>
    5351
    54 #include "objects/Tickable.h"
    55 #include "objects/Timer.h"
    56 #include "core/ArgReader.h"
    57 #include "core/Factory.h"
    58 #include "core/Debug.h"
    59 
    60 #include "../loader/LevelLoader.h"
    61 #include "../audio/AudioManager.h"
    62 
    63 #include "hud/HUD.h"
    64 
    65 //network stuff
    66 #include "../network/Server.h"
    67 #include "../network/Client.h"
    68 #include "../network/NetworkFrameListener.h"
    69 
     52// hack for the usleep/Sleep problem
    7053#ifdef WIN32
    7154#include <windows.h>
     
    7558#endif
    7659
     60//***** ORXONOX ****
     61// loader and audio
     62#include "loader/LevelLoader.h"
     63#include "audio/AudioManager.h"
     64
     65// network
     66#include "../network/Server.h"
     67#include "../network/Client.h"
     68#include "../network/NetworkFrameListener.h"
     69
     70// objects
     71#include "objects/Tickable.h"
     72#include "objects/Timer.h"
     73#include "core/ArgReader.h"
     74#include "core/Factory.h"
     75#include "core/Debug.h"
     76#include "hud/HUD.h"
     77
     78#include "graphicsEngine.h"
     79#include "orxonox.h"
     80
     81
    7782namespace orxonox
    7883{
    7984  using namespace Ogre;
    8085
    81    // put this in seperate Class or solve the problem in another fashion
     86   // put this in a seperate Class or solve the problem in another fashion
    8287  class OrxListener : public FrameListener
    8388  {
     
    331336        archName = i->second;
    332337#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
    333         Ogre::ResourceGroupManager::getSingleton().addResourceLocation( String(macBundlePath() + "/" + archName), typeName, secName);
     338        ResourceGroupManager::getSingleton().addResourceLocation( String(macBundlePath() + "/" + archName), typeName, secName);
    334339#else
    335         Ogre::ResourceGroupManager::getSingleton().addResourceLocation( archName, typeName, secName);
     340        ResourceGroupManager::getSingleton().addResourceLocation( archName, typeName, secName);
    336341#endif
    337342      }
     
    413418    std::ostringstream windowHndStr;
    414419    OIS::ParamList pl;
    415     Ogre::RenderWindow *win = ogre_->getRoot()->getAutoCreatedWindow();
     420    RenderWindow *win = ogre_->getRoot()->getAutoCreatedWindow();
    416421
    417422    win->getCustomAttribute("WINDOW", &windowHnd);
Note: See TracChangeset for help on using the changeset viewer.