Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7221 in orxonox.OLD for trunk/src/subprojects/others/TTFtoIMG.cc


Ignore:
Timestamp:
Mar 15, 2006, 3:10:45 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the std-branche back, it runs on windows and Linux

svn merge https://svn.orxonox.net/orxonox/branches/std . -r7202:HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/subprojects/others/TTFtoIMG.cc

    r6348 r7221  
    22#include <SDL/SDL.h>
    33#include <SDL/SDL_ttf.h>
    4 
     4#include <string>
    55
    66
     
    1616
    1717
    18 void createAsciiImage(const char* fileName, unsigned int size)
     18void createAsciiImage(const std::string& fileName, unsigned int size)
    1919{
    2020  if (fontTTF == NULL)
     
    6868    }
    6969  }
    70   SDL_SaveBMP(tmpSurf, fileName);
     70  SDL_SaveBMP(tmpSurf, fileName.c_str());
    7171  SDL_FreeSurface(tmpSurf);
    7272}
     
    8181
    8282  fontTTF = TTF_OpenFont(argv[1], renderSize);
    83  
     83
    8484  createAsciiImage(argv[2], renderSize);
    85  
     85
    8686  //  delete fontTTF;
    8787  TTF_Quit();
Note: See TracChangeset for help on using the changeset viewer.