Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2007, 5:00:41 PM (17 years ago)
Author:
rgrieder
Message:
  • added namespace Orxonox to every file
    • removed all the "using namespace Ogre" in the header files
  • cleaned up with the includes: attempt to include as little as possible to reduce compile time.
    • created a header file: orxonox_prerequisites.h
    • used OgrePrerequisites in the header files
    • avoided including "Ogre.h", using separate files instead
  • created empty class: AmmunitionDump
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/main_reto_vs05/include/ogre_control.h

    r159 r161  
    3030#define OGRE_CONTROL_H
    3131
    32 #include "Ogre.h"
    33 #include "OgreConfigFile.h"
     32#include "OgrePrerequisites.h"
     33
     34#include "Orxonox_prerequisites.h"
    3435
    3536
    36 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
    37 #include <CoreFoundation/CoreFoundation.h>
    38 #endif
     37namespace Orxonox {
    3938
    40 using namespace Ogre;
     39  class OgreControl
     40  {
     41  public:
     42          OgreControl();
    4143
    42 class OgreControl
    43 {
    44 public:
    45         OgreControl();
     44          virtual ~OgreControl();
    4645
    47         virtual ~OgreControl();
     46          /** Sets up the application - returns false if the user chooses to abandon configuration. */
     47          virtual bool initialise();
    4848
    49         /** Sets up the application - returns false if the user chooses to abandon configuration. */
    50         virtual bool initialise();
     49    virtual Ogre::Root* getRoot();
    5150
    52         virtual Root* getRoot();
     51          virtual Ogre::RenderWindow* getRenderWindow();
    5352
    54         virtual RenderWindow* getRenderWindow();
     53          virtual Ogre::String getResourcePath();
    5554
    56         virtual Ogre::String getResourcePath();
     55  protected:
     56          /** Configures the application - returns false if the user chooses to abandon configuration. */
     57          virtual bool configure(void);
    5758
    58 protected:
    59         /** Configures the application - returns false if the user chooses to abandon configuration. */
    60         virtual bool configure(void);
     59          /// Method which will define the source of resources (other than current folder)
     60          virtual void setupResources(void);
    6161
    62         /// Method which will define the source of resources (other than current folder)
    63         virtual void setupResources(void);
     62  protected:
     63          Ogre::Root         *root_;
     64          Ogre::RenderWindow *window_;
     65          Ogre::String  resourcePath_;
    6466
    65 protected:
    66         Root         *root_;
    67         RenderWindow *window_;
    68         Ogre::String  resourcePath_;
     67  };
    6968
    70 };
     69}
    7170
    7271#endif /* OGRE_CONTROL_H */
Note: See TracChangeset for help on using the changeset viewer.