Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2007, 5:00:41 PM (16 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/orxonox_scene.h

    r159 r161  
    3030#define ORXONOX_SCENE_H
    3131
    32 #include "Ogre.h"
     32#include "OgrePrerequisites.h"
    3333
    34 using namespace Ogre;
     34#include "Orxonox_prerequisites.h"
    3535
    36 class OrxonoxScene
    37 {
    38 public:
    39         OrxonoxScene(SceneManager*);
    4036
    41         virtual ~OrxonoxScene();
     37namespace Orxonox {
    4238
    43         virtual bool initialise();
     39  class OrxonoxScene
     40  {
     41  public:
     42    OrxonoxScene(Ogre::SceneManager*);
    4443
    45         virtual bool tick(unsigned long, Real);
     44          virtual ~OrxonoxScene();
    4645
    47 protected:
    48         /// method where you can perform resource group loading
    49         virtual void loadResources();
     46          virtual bool initialise();
    5047
    51         /// Define what is in the scene
    52         virtual void createScene();
     48          virtual bool tick(unsigned long, Ogre::Real);
    5349
    54 protected:
    55         SceneManager* sceneMgr_;
     50  protected:
     51          /// method where you can perform resource group loading
     52          virtual void loadResources();
    5653
    57         //specific variables for test purposes
    58         Light        *light_;
    59         SceneNode    *lightNode_;
    60         BillboardSet *bbs_;
    61         Real distance_;
    62   Real radius_;
    63 };
     54          /// Define what is in the scene
     55          virtual void createScene();
     56
     57  protected:
     58          Ogre::SceneManager* sceneMgr_;
     59
     60          //specific variables for test purposes
     61          Ogre::Light        *light_;
     62          Ogre::SceneNode    *lightNode_;
     63          Ogre::BillboardSet *bbs_;
     64          Ogre::Real distance_;
     65    Ogre::Real radius_;
     66  };
     67
     68}
    6469
    6570#endif /* ORXONOX_SCENE_H */
Note: See TracChangeset for help on using the changeset viewer.