Changeset 7221 in orxonox.OLD for trunk/src/subprojects
- Timestamp:
- Mar 15, 2006, 3:10:45 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/subprojects/others/TTFtoIMG.cc
r6348 r7221 2 2 #include <SDL/SDL.h> 3 3 #include <SDL/SDL_ttf.h> 4 4 #include <string> 5 5 6 6 … … 16 16 17 17 18 void createAsciiImage(const char*fileName, unsigned int size)18 void createAsciiImage(const std::string& fileName, unsigned int size) 19 19 { 20 20 if (fontTTF == NULL) … … 68 68 } 69 69 } 70 SDL_SaveBMP(tmpSurf, fileName );70 SDL_SaveBMP(tmpSurf, fileName.c_str()); 71 71 SDL_FreeSurface(tmpSurf); 72 72 } … … 81 81 82 82 fontTTF = TTF_OpenFont(argv[1], renderSize); 83 83 84 84 createAsciiImage(argv[2], renderSize); 85 85 86 86 // delete fontTTF; 87 87 TTF_Quit();
Note: See TracChangeset
for help on using the changeset viewer.