| Last change
                  on this file since 3681 was
                  3681,
                  checked in by bensch, 21 years ago | 
        
          | 
orxonox/branches/textEngine: merged trunk here.merged with command:
 svn merge ../trunk textEngine -r 3467:HEAD
 no conflicts
 
 | 
        | File size:
            729 bytes | 
      
      
        
  | Line |  | 
|---|
| 1 | /*! | 
|---|
| 2 | \file terrain.h | 
|---|
| 3 | \brief Defines and handles the terrain of the World | 
|---|
| 4 |  | 
|---|
| 5 | \todo implement it | 
|---|
| 6 |  | 
|---|
| 7 | The terrain should either be build from a Model a OBJModel or from a HeightMap. | 
|---|
| 8 | */ | 
|---|
| 9 |  | 
|---|
| 10 | #ifndef _TERRAIN_H | 
|---|
| 11 | #define _TERRAIN_H | 
|---|
| 12 |  | 
|---|
| 13 | #include "world_entity.h" | 
|---|
| 14 |  | 
|---|
| 15 | // FORWARD DEFINITION \\ | 
|---|
| 16 |  | 
|---|
| 17 | //! A simple method to call a desired debug world. | 
|---|
| 18 | enum DebugTerrain {TERRAIN_DAVE, TERRAIN_BENSCH}; | 
|---|
| 19 |  | 
|---|
| 20 |  | 
|---|
| 21 | //! A Class to handle Terrain of orxonox | 
|---|
| 22 | class Terrain : public WorldEntity | 
|---|
| 23 | { | 
|---|
| 24 |  | 
|---|
| 25 | public: | 
|---|
| 26 | Terrain(); | 
|---|
| 27 | Terrain(char* fileName); | 
|---|
| 28 | Terrain(DebugTerrain debugTerrain); | 
|---|
| 29 | virtual ~Terrain(); | 
|---|
| 30 | void init(); | 
|---|
| 31 |  | 
|---|
| 32 | void buildDebugTerrain(DebugTerrain debugTerrain); | 
|---|
| 33 | virtual void draw(); | 
|---|
| 34 |  | 
|---|
| 35 | private: | 
|---|
| 36 | int objectList; | 
|---|
| 37 | }; | 
|---|
| 38 |  | 
|---|
| 39 | #endif /* _TERRAIN_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.