![]() |
|
Newbie- Display int? |
Craig Harrison
Member #5,255
November 2004
![]() |
How can I output an integer using textout_ex or textprintf_ex? Thanks! |
Thomas Fjellstrom
Member #476
June 2000
![]() |
First off, this was just posted, and second, it takes the same format strings that the printf function from libc does. -- |
inspiredevistate
Member #7,980
November 2006
|
LennyLen
Member #5,313
December 2004
![]() |
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)
|
|