Changeset 9423 in orxonox.OLD for branches/terrain/src
- Timestamp:
- Jul 24, 2006, 2:27:39 PM (18 years ago)
- Location:
- branches/terrain/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/lib/graphics/importer/terrain/terrain.cc
r9421 r9423 53 53 heightfield.pitch = tmpData->pitch; 54 54 int dataSize = heightfield.pitch*heightfield.height; 55 55 56 heightfield.data = new Uint8[dataSize]; 56 57 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 } 57 63 SDL_FreeSurface( tmpData ); 58 64 pagesX = (heightfield.width/(pageSize-1) ); -
branches/terrain/src/lib/util/threading.h
r7847 r9423 8 8 #ifndef _THREADING_H 9 9 #define _THREADING_H 10 10 #include <string> 11 11 #ifdef HAVE_SDL_H 12 12 #include <SDL_thread.h> -
branches/terrain/src/util/signal_handler.cc
r9406 r9423 19 19 SignalHandler * SignalHandler::singletonRef = NULL; 20 20 21 #if ndef __WIN32__21 #ifdef __LINUX__ 22 22 23 23 #include <wait.h> -
branches/terrain/src/util/signal_handler.h
r9406 r9423 12 12 typedef int (*SignalCallback)( void * someData ); 13 13 14 #if ndef __WIN32__14 #ifdef __LINUX__ 15 15 #include <signal.h> 16 16 … … 63 63 public: 64 64 inline static SignalHandler* getInstance() { if (!SignalHandler::singletonRef) SignalHandler::singletonRef = new SignalHandler(); return SignalHandler::singletonRef; }; 65 void doCatch( std::string appName ) {};66 void dontCatch() {};65 void doCatch( const std::string & appName, const std::string & fileName ) {} 66 void dontCatch() {} 67 67 void registerCallback( SignalCallback cb, void * someData ) {}; 68 68
Note: See TracChangeset
for help on using the changeset viewer.