Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 24, 2006, 2:27:39 PM (18 years ago)
Author:
ponder
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/lib/graphics/importer/terrain/terrain.cc

    r9421 r9423  
    5353  heightfield.pitch = tmpData->pitch;
    5454  int dataSize = heightfield.pitch*heightfield.height;
     55       
    5556  heightfield.data = new Uint8[dataSize];
    5657  memcpy( heightfield.data, tmpData->pixels, sizeof(Uint8)*dataSize );
     58        for ( int x = 0; x < heightfield.width; ++x ) {
     59                for ( int y = 0; y < heightfield.height; ++y ) {
     60                        printf( "height of %d, %d is %f\n", x, y, getAltitude( x, y ) );
     61                }
     62        }
    5763  SDL_FreeSurface( tmpData );
    5864  pagesX = (heightfield.width/(pageSize-1) );
Note: See TracChangeset for help on using the changeset viewer.