Changeset 3392 in orxonox.OLD for orxonox/branches
- Timestamp:
- Feb 2, 2005, 3:21:47 PM (20 years ago)
- Location:
- orxonox/branches/nico/src/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/nico/src/importer/heightMapTerrain.cc
r3390 r3392 9 9 10 10 #include "heightMapTerrain.h" 11 #include "vector.h" 12 #ifdef HAVE_SDL_SDL_IMAGE_H 13 #include <SDL/SDL_image.h> 14 #endif /* HAVE_SDL_SDL_IMAGE_H */ 11 15 12 16 HeightMapTerrain::HeightMapTerrain() … … 20 24 bool HeightMapTerrain::loadBitmap(char* fileName) 21 25 { 22 return bitmap = SDL_LoadBMP(fileName); 26 #ifdef HAVE_SDL_SDL_IMAGE_H 27 cout << "Using SDL-image for reading in the File " << fileName <<endl; 28 return this->bitmap = IMG_Load(fileName); 29 #else 30 return this->bitmap = SDL_LoadBMP(fileName); 31 #endif /* HAVE_SDL_SDL_IMAGE_H */ 23 32 } 24 33 -
orxonox/branches/nico/src/importer/heightMapTerrain.h
r3390 r3392 11 11 using namespace std; 12 12 13 #include "vector.h"14 13 #include "../stdincl.h" 15 14
Note: See TracChangeset
for help on using the changeset viewer.