Changeset 5991 in orxonox.OLD for branches/height_map
- Timestamp:
- Dec 8, 2005, 4:18:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/height_map/src/lib/graphics/importer/height_map.cc
r5990 r5991 60 60 void HeightMap::load() 61 61 { 62 unsignedint height = 0;62 int height = 0; 63 63 int offset = 0; 64 64 char * bmp = (char*) heightMap->pixels; … … 81 81 82 82 83 this->addVertex( 20*(heightMap->h - i) , ((double)( 100-(double)offset)/5) - 50 ,20*j);83 this->addVertex( 20*(heightMap->h - i) , ((double)( (double)300-40*height)/100) - 300 ,20*j); 84 84 } 85 85 }
Note: See TracChangeset
for help on using the changeset viewer.