Changeset 5989 in orxonox.OLD for branches/height_map/src/lib
- Timestamp:
- Dec 8, 2005, 3:16:54 PM (19 years ago)
- File:
-
- 1 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++)
Note: See TracChangeset
for help on using the changeset viewer.