Mercurial > hg > dmlib
comparison dmtext.h @ 63:3d9da937db69
More work on the text support.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 01 Oct 2012 10:42:56 +0300 |
parents | f28cd66356f6 |
children | 03375aa0ef2b |
comparison
equal
deleted
inserted
replaced
62:daeb5d4f6bad | 63:3d9da937db69 |
---|---|
18 extern "C" { | 18 extern "C" { |
19 #endif | 19 #endif |
20 | 20 |
21 /* Bitmapped fonts and text | 21 /* Bitmapped fonts and text |
22 */ | 22 */ |
23 #ifdef DM_GFX_BM_TEXT | |
23 typedef struct | 24 typedef struct |
24 { | 25 { |
25 int width, height; | 26 int width, height; |
26 | 27 |
27 int nglyphs; | 28 int nglyphs; |
32 int dmLoadBitmapFont(DMResource *res, DMBitmapFont **font); | 33 int dmLoadBitmapFont(DMResource *res, DMBitmapFont **font); |
33 | 34 |
34 void dmDrawBMTextConst(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *str); | 35 void dmDrawBMTextConst(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *str); |
35 void dmDrawBMTextVA(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, va_list ap); | 36 void dmDrawBMTextVA(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, va_list ap); |
36 void dmDrawBMText(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, ...); | 37 void dmDrawBMText(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, ...); |
38 #endif | |
37 | 39 |
38 | 40 |
39 /* TTF text drawing | 41 /* TTF text drawing |
40 */ | 42 */ |
41 #ifdef DM_GFX_TTF_TEXT | 43 #ifdef DM_GFX_TTF_TEXT |