Mercurial > hg > dmlib
diff dmtext.h @ 100:f16d102dbbac
Add a function for setting bitmapped font palette.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Oct 2012 20:33:01 +0300 |
parents | e1e308167991 |
children | d5d27f262227 |
line wrap: on
line diff
--- a/dmtext.h Tue Oct 02 20:26:08 2012 +0300 +++ b/dmtext.h Tue Oct 02 20:33:01 2012 +0300 @@ -52,6 +52,7 @@ int dmLoadBitmapFont(DMResource *res, DMBitmapFont **pfont); int dmSaveBitmapFont(DMResource *res, DMBitmapFont *font); int dmCreateBitmapFontFromImage(SDL_Surface *image, int width, int height, DMBitmapFont **pfont); +int dmSetBitmapFontPalette(DMBitmapFont *font, SDL_Color *pal, int start, int size); void dmDrawBMTextConst(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *str); void dmDrawBMTextVA(SDL_Surface *screen, DMBitmapFont *font, int mode, int xc, int yc, const char *fmt, va_list ap);