String Output
gary_ramsgate

Hi there,

A very simple question, one which I've spent about an hour trying to work out.
What is the correct approach for outputing the string below to the screen using Allegro.

I take it I would need to use textout_ex ???

I.E

#include<string>

score=123456;
name="Gary";

textout_ex ??????

Thanks in advance.

Kibiz0r

No, textprintf_ex().

textprintf_ex(buffer, font, x, y, col, bg, "%s's score: %i", name.c_str(), score);

gary_ramsgate

Many thanks, works a treat :):):)

Thread #591540. Printed from Allegro.cc