Changeset 9421 in orxonox.OLD for branches/terrain/src/world_entities/terrain_entity.h
- Timestamp:
- Jul 24, 2006, 1:46:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/world_entities/terrain_entity.h
r9414 r9421 27 27 { 28 28 29 30 31 32 33 29 public: 30 TerrainEntity(const TiXmlElement* root = NULL); 31 TerrainEntity(const std::string& fileName); 32 TerrainEntity(DebugTerrainEntity debugTerrainEntity); 33 virtual ~TerrainEntity(); 34 34 35 36 35 void init(); 36 virtual void loadParams(const TiXmlElement* root); 37 37 38 38 void loadVegetation(const std::string& vegetationFile); 39 39 40 41 42 40 void loadElevationmap( const std::string& _eleFile ); 41 void loadLightmap(const std::string& _lightFile ); 42 void setScale( float x, float y, float z ); 43 43 44 44 void buildDebugTerrainEntity(DebugTerrainEntity debugTerrainEntity); 45 45 46 47 48 49 50 51 52 53 54 55 56 46 float getHeight(float x, float y); 47 void getAltitude( Vector& _position, Vector& _normal ); 48 virtual void draw() const; 49 virtual void tick( float _dt ); 50 public: 51 52 private: 53 Model* vegetation; 54 int objectList; 55 Terrain* terrain; 56 Vector TerrainEntityScale; 57 57 }; 58 58
Note: See TracChangeset
for help on using the changeset viewer.