| 1 | // $Id: dfont.h,v 1.3 2003/04/14 05:51:03 mbridak Exp $cxx . . $ `<file>/src/dfont.h`/ |
| 2 | #ifndef DFONT_H |
| 3 | #define DFONT_Hcxx . . $ `src/dfont.h:3:9`! |
| 4 | |
| 5 | #include <SDL/SDL.h> |
| 6 | #include <SDL/SDL_image.h> |
| 7 | |
| 8 | #include <iostream> |
| 9 | using stdcxx . . $ std/::ioscxx . . $ ios#; |
| 10 | |
| 11 | #include <fstream> |
| 12 | using stdcxx . . $ std/::istreamcxx . . $ istream#; |
| 13 | using stdcxx . . $ std/::ostreamcxx . . $ ostream#; |
| 14 | using stdcxx . . $ std/::ofstreamcxx . . $ ofstream#; |
| 15 | using stdcxx . . $ std/::ifstreamcxx . . $ std/ifstream#; |
| 16 | using stdcxx . . $ std/::cerrcxx . . $ std/cerr.; |
| 17 | using stdcxx . . $ std/::cincxx . . $ std/cin.; |
| 18 | using stdcxx . . $ std/::coutcxx . . $ std/cout.; |
| 19 | |
| 20 | #include <map> |
| 21 | |
| 22 | |
| 23 | |
| 24 | class DFontcxx . . $ DFont# |
| 25 | { |
| 26 | protected: |
| 27 | stdcxx . . $ std/::mapcxx . . $ std/map# <char, SDL_Rect> fontscxx . . $ DFont#fonts.; |
| 28 | SDL_Surface *fontSurfacecxx . . $ DFont#fontSurface.; |
| 29 | int gapcxx . . $ DFont#gap.; |
| 30 | |
| 31 | private: |
| 32 | void initMapcxx . . $ DFont#initMap(fda57c8427c60377). (char *); |
| 33 | void loadMapcxx . . $ DFont#loadMap(fda57c8427c60377). (char *); |
| 34 | void loadImagecxx . . $ DFont#loadImage(fda57c8427c60377). (char *); |
| 35 | Uint32cxx . . $ Uint32# GetPixelcxx . . $ DFont#GetPixel(60d64c952162f67c). (SDL_Surface *, Sint32cxx . . $ Sint32#, Sint32cxx . . $ Sint32#); |
| 36 | |
| 37 | public: |
| 38 | DFontcxx . . $ DFont#DFont(d0489a02ea06dfc6). (char *, char * ); |
| 39 | ~cxx . . $ DFont#`~DFont`(ced63f7c635d850d).DFontcxx . . $ DFont# (); |
| 40 | void PutStringcxx . . $ DFont#PutString(dae77c54ebf0dad5).(SDL_Surface *, Sint16cxx . . $ Sint16# , Sint16cxx . . $ Sint16# , char * ); |
| 41 | void PutCharcxx . . $ DFont#PutChar(a83924c70b029325).(SDL_Surface *, Sint16cxx . . $ Sint16#, Sint16cxx . . $ Sint16#, char); |
| 42 | }; |
| 43 | |
| 44 | ostreamcxx . . $ ostream#& operatorcxx . . $ `operator<<`(5e4960ddb1f9971). << (ostreamcxx . . $ ostream# & , SDL_Rect const &);//output a record |
| 45 | istreamcxx . . $ istream#& operatorcxx . . $ `operator>>`(406811df2e9f9d93). >> (istreamcxx . . $ istream# & , SDL_Rect &);//input a record |
| 46 | #endif |