Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/height_map/src/world_entities/terrain.h @ 5980

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