Mail Archives: djgpp/1997/10/29/08:37:26
Mark Phillips wrote:
>
> If I am in graphics mode (any one) and I want to write an integer to
> the screen, how do I do it? thanks in advance,
write the number to a string using sprintf:
char tempstr[12];
sprintf(tempstr, "%d", integer_to_print);
then use textout to put the string on the screen:
textout(screen, font, tempstr, x, y, color);
The new WIP has functions specially designed to handle this situation,
but I don't have the syntax handy.
--
[ Ryan Blazecka -- http://www.deninc.com/~corrosion/ ]
[ _corrosion_ AT geocities DOT com OR eblazecka AT bc DOT sympatico DOT ca ]
- Raw text -