Changeset 4090 in orxonox.OLD for orxonox/branches/heightMap/src/world_entities
- Timestamp:
- May 6, 2005, 6:01:06 PM (20 years ago)
- Location:
- orxonox/branches/heightMap/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/heightMap/src/world_entities/terrain.cc
r4021 r4090 21 21 #include "glincl.h" 22 22 23 #include "heightmap.h" 24 25 23 26 using namespace std; 24 27 … … 51 54 { 52 55 // the heightmap case 53 this->model = (Heightmap*)ResourceManager::getInstance()->load(fileName, BMP, RP_LEVEL);56 //this->model = (Heightmap*)ResourceManager::getInstance()->load(fileName, BMP, RP_LEVEL); 54 57 } 55 58 else 56 59 { 57 60 // nor .obj nor .bmp 61 } 62 } 63 64 /** 65 \brief Constructor for loading a heightmap out of a file 66 \param fileName The file to load data from. 67 \param displaylistResolution The count of vertices in a Displaylistdimension 68 \param vertexResolution How exact the mesh should be created. 1 means every pixel defines a vertex 69 70 */ 71 Terrain::Terrain(char* fileName, int displaylistResolution, int vertexResolution) 72 { 73 this->init(); 74 75 // here are only bmps supported! 76 if (strstr(fileName, ".bmp") || strstr(fileName, ".BMP")) 77 { 78 // the heightmap case 79 this->model = new Heightmap(fileName, 1.0, displaylistResolution, vertexResolution); 80 } 81 else 82 { 83 // nor .obj nor .bmp 58 84 } 59 85 } -
orxonox/branches/heightMap/src/world_entities/terrain.h
r3566 r4090 26 26 Terrain(); 27 27 Terrain(char* fileName); 28 Terrain(char* fileName, int displaylistResolution, int vertexResolution); 28 29 Terrain(DebugTerrain debugTerrain); 29 30 virtual ~Terrain();
Note: See TracChangeset
for help on using the changeset viewer.