Last change
on this file since 5497 was
5465,
checked in by bensch, 19 years ago
|
orxonox/trunk: vegetation rendering in the terrain (trees are now rendered correctly)
|
File size:
967 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file terrain.h |
---|
3 | * 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 DECLARATION |
---|
16 | class SpatialSeparation; |
---|
17 | |
---|
18 | //! A simple method to call a desired debug world. |
---|
19 | enum DebugTerrain {TERRAIN_DAVE, TERRAIN_BENSCH}; |
---|
20 | |
---|
21 | |
---|
22 | //! A Class to handle Terrain of orxonox |
---|
23 | class Terrain : public WorldEntity |
---|
24 | { |
---|
25 | |
---|
26 | public: |
---|
27 | Terrain(const TiXmlElement* root = NULL); |
---|
28 | Terrain(const char* fileName); |
---|
29 | Terrain(DebugTerrain debugTerrain); |
---|
30 | virtual ~Terrain(); |
---|
31 | |
---|
32 | void init(); |
---|
33 | void loadParams(const TiXmlElement* root); |
---|
34 | |
---|
35 | void loadVegetation(const char* vegetationFile); |
---|
36 | |
---|
37 | void buildDebugTerrain(DebugTerrain debugTerrain); |
---|
38 | virtual void draw(); |
---|
39 | |
---|
40 | public: |
---|
41 | SpatialSeparation* ssp; |
---|
42 | |
---|
43 | private: |
---|
44 | Model* vegetation; |
---|
45 | int objectList; |
---|
46 | }; |
---|
47 | |
---|
48 | #endif /* _TERRAIN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.