Mail Archives: djgpp/1999/08/18/02:46:29
rpgmaletteallegro AT my-deja DOT com wrote:
>
> Greetings fellow DJGPP/Allegro developers,
> Do you agree with me when I say that Allegro should have had a users
> guide with it? I don't know how to use too much of this great library
> (it IS great, I just don't know how to use it). If ANYONE has a
> tutorial or a link to a tutorial dealing in Sprite graphics in Allegro,
> please tell me where to find it. I also need to know how to print out
> variables using the textout() function. PLEASE, I NEED HELP!!!
1. Use text_printf. Works just like printf.
2. Use sprintf. eg.,
//--------
char temp_char[50];
int x=5;
float f=22/7.0;
sprintf(temp_char,"Printing variables: %d %f",x,f);
textout(my_bmp,my_font,temp_char,my_x,my_y,my_color);
//--------
I'm not sure if I have the right order of parameters there, i usually
use t_pf.
-Mike
- Raw text -