20 #ifndef SDLTK_IMAGE_FONT_H 21 #define SDLTK_IMAGE_FONT_H 54 inline const Rect &
glyph(Uint8 chr)
const;
72 String::size_type i =
mGlyphs.find(chr);
73 if (i == String::npos) i = 0;
79 #endif // SDLTK_IMAGE_FONT_H void init()
Definition: roland.cpp:97
const Image & image()
Definition: imagefont.h:56
Image to display either on an OpenGL- or plain SDL-Surface.
Definition: image.h:39
ImageFont()
Standardconstructor.
Definition: imagefont.h:38
Uint16 spacing() const
Definition: imagefont.h:59
unsigned char uchar
Definition: types.h:127
void clear()
Frees all used resources.
Definition: imagefont.cpp:51
Image mImage
Definition: imagefont.h:62
const Rect & glyph(Uint8 chr) const
Definition: imagefont.h:70
Uint16 mSpacing
Definition: imagefont.h:65
#define ROLAND_DEFAULT
Definition: compspec.h:46
void load(const String &fname, const String &glyphs, uchar alpha=255)
Definition: imagefont.cpp:56
a font created from an Image
Definition: imagefont.h:33
std::string String
Definition: types.h:29
~ImageFont() ROLAND_DEFAULT void init()
Standarddestructor.
String mGlyphs
Definition: imagefont.h:63
the SDL based Stuff
Definition: audio.cpp:22
Rect mGlyphRect[256]
Definition: imagefont.h:64
void setSpacing(Uint16 spacing)