Mercurial > hg > dmlib
comparison dmtext.h @ 65:03375aa0ef2b
Implement some new functions for bitmapped font handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 01 Oct 2012 11:20:56 +0300 |
parents | 3d9da937db69 |
children | e6535609c161 |
comparison
equal
deleted
inserted
replaced
64:ad1ef3f0d474 | 65:03375aa0ef2b |
---|---|
28 int nglyphs; | 28 int nglyphs; |
29 SDL_Surface **glyphs; | 29 SDL_Surface **glyphs; |
30 } DMBitmapFont; | 30 } DMBitmapFont; |
31 | 31 |
32 | 32 |
33 int dmLoadBitmapFont(DMResource *res, DMBitmapFont **font); | 33 DMBitmapFont *dmNewBitmapFont(int nglyphs); |
34 int dmFreeBitmapFont(DMBitmapFont *font); | |
35 int dmLoadBitmapFont(DMResource *res, DMBitmapFont **pfont); | |
36 int dmCreateBitmapFontFromImage(SDL_Surface *image, int width, int height, DMBitmapFont **pfont); | |
34 | 37 |
35 void dmDrawBMTextConst(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *str); | 38 void dmDrawBMTextConst(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *str); |
36 void dmDrawBMTextVA(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, va_list ap); | 39 void dmDrawBMTextVA(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, va_list ap); |
37 void dmDrawBMText(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, ...); | 40 void dmDrawBMText(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, ...); |
38 #endif | 41 #endif |