- Timestamp:
- Dec 8, 2005, 3:16:54 PM (19 years ago)
- Location:
- branches/height_map/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/height_map/src/lib/graphics/importer/height_map.cc
r5980 r5989 63 63 { 64 64 SDL_LockSurface(heightMap); 65 for(int i = 0 ; i < heightMap->h ; i + +)65 for(int i = 0 ; i < heightMap->h ; i +=1) 66 66 { 67 67 for(int j = 0; j < heightMap->w ; j += 1) … … 78 78 79 79 80 this->addVertex( 10*(heightMap->h - i) , (( height)/15) - 200 ,10*j);80 this->addVertex( 20*(heightMap->h - i) , (( height)/15) - 30 ,20*j); 81 81 } 82 82 } 83 83 SDL_UnlockSurface(heightMap); 84 84 85 int c = (heightMap->w) / 1;85 int c = (heightMap->w) ; 86 86 int g = 0; 87 87 88 for(int i = 0; i < (heightMap->w) /1 -1 ; i ++)88 for(int i = 0; i < (heightMap->w) -1 ; i += 1) 89 89 { 90 90 for(int j = 0; j < (heightMap->h)/1 - 1; j++) -
branches/height_map/src/world_entities/terrain.cc
r5976 r5989 44 44 // this->loadParams(root); 45 45 46 HeightMap * hm = new HeightMap("/home/bottac/svn/data/pictures/heightmapHello.bmp"); 46 char* heightmapName = ResourceManager::getFullName("pictures/heightmapHello.bmp"); 47 HeightMap * hm = new HeightMap(heightmapName); 47 48 48 49 hm->load();
Note: See TracChangeset
for help on using the changeset viewer.