Hello allegro.cc !!
I would like to draw text from a variable with a simple function in allegro 5 but i can't find anything in the manual.
Could you tell me if there is a substitute or an easy way to emulate the following function from allegro 4.4.2 ?
Function:
void textprintf_ex(BITMAP *bmp, const FONT *f, int x, int y, int color, int bg, const char *fmt, ...);
Exemple:
int player_score;
...
textprintf_ex(screen, font, 10, 10, makecol(255, 100, 200),-1, "Score: %d", player_score);
Also i wonder why this function dit not make it into v5, was it because of it inefficiency ?
The equivalent A5 function is al_draw_textf
Thank you so much, perfect !
...I feel very dumb right now for missing this