Changeset 667 for abuse/trunk/src/imlib/fonts.h
- Timestamp:
- May 16, 2011, 2:37:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/fonts.h
r555 r667 11 11 #ifndef __FONTS_HPP_ 12 12 #define __FONTS_HPP_ 13 13 14 #include "image.h" 14 15 #include "transimage.h" 15 16 17 18 class texture_font19 {20 int tl,th;21 image *let,*fntpat;22 public:23 texture_font(image *letters, image *font_pattern=NULL);24 void put_char(image *screen, int x, int y, char ch);25 void put_string(image *screen, int x, int y, char const *st);26 int height() { return th; }27 int length() { return tl; }28 int width() { return tl; }29 image *font_image() { return let; }30 image *font_patter() { return fntpat; }31 ~texture_font() { if (let) delete let; if (fntpat) delete fntpat; }32 } ;33 16 34 17 class JCFont
Note: See TracChangeset
for help on using the changeset viewer.