Newbie- Display int?
Craig Harrison

How can I output an integer using textout_ex or textprintf_ex?

Thanks!

Thomas Fjellstrom

First off, this was just posted, and second, it takes the same format strings that the printf function from libc does.

inspiredevistate
textprintf(BITMAP *bmp, FONT *fnt, x, y, COLOR, "%s", string)
/*this displayed the string "string"*/

LennyLen
Quote:

textprintf(BITMAP *bmp, FONT *fnt, x, y, COLOR, "%s", string)

Or, since he was asking about the new, non-depricated versions, and outputting integers not strings:

void textprintf_ex(BITMAP *bmp, const FONT *f, int x, int y, int color, int bg, "%d", number)

Thread #588773. Printed from Allegro.cc