source:
orxonox.OLD/branches/height_map/src/world_entities/terrain.h
@
6103
Last change on this file since 6103 was 6103, checked in by bensch, 18 years ago | |
---|---|
File size: 1021 bytes |
Rev | Line | |
---|---|---|
[4597] | 1 | /*! |
[5039] | 2 | * @file terrain.h |
[4836] | 3 | * Defines and handles the terrain of the World |
[3329] | 4 | |
[4836] | 5 | @todo implement it |
[3559] | 6 | |
7 | The terrain should either be build from a Model a OBJModel or from a HeightMap. | |
[3245] | 8 | */ |
[1853] | 9 | |
[3559] | 10 | #ifndef _TERRAIN_H |
11 | #define _TERRAIN_H | |
[1853] | 12 | |
[3559] | 13 | #include "world_entity.h" |
[1853] | 14 | |
[5405] | 15 | // FORWARD DECLARATION |
[4889] | 16 | class SpatialSeparation; |
[6103] | 17 | class Material; |
[3543] | 18 | |
[3564] | 19 | //! A simple method to call a desired debug world. |
20 | enum DebugTerrain {TERRAIN_DAVE, TERRAIN_BENSCH}; | |
21 | ||
22 | ||
[3559] | 23 | //! A Class to handle Terrain of orxonox |
[4597] | 24 | class Terrain : public WorldEntity |
[3559] | 25 | { |
[3543] | 26 | |
[1904] | 27 | public: |
[4607] | 28 | Terrain(const TiXmlElement* root = NULL); |
[4597] | 29 | Terrain(const char* fileName); |
[3564] | 30 | Terrain(DebugTerrain debugTerrain); |
[4746] | 31 | virtual ~Terrain(); |
[4597] | 32 | |
[4746] | 33 | void init(); |
[4607] | 34 | void loadParams(const TiXmlElement* root); |
35 | ||
[5465] | 36 | void loadVegetation(const char* vegetationFile); |
37 | ||
[3564] | 38 | void buildDebugTerrain(DebugTerrain debugTerrain); |
[5500] | 39 | virtual void draw() const; |
[3245] | 40 | |
[4919] | 41 | public: |
42 | SpatialSeparation* ssp; | |
43 | ||
[3245] | 44 | private: |
[5465] | 45 | Model* vegetation; |
[6103] | 46 | Material* tmp_mat; |
[5465] | 47 | int objectList; |
[1853] | 48 | }; |
49 | ||
[3559] | 50 | #endif /* _TERRAIN_H */ |
Note: See TracBrowser
for help on using the repository browser.