Output from the variables with allegro.

Started by
1 comment, last by nick22891 16 years, 5 months ago
i know only one function in allegro to output text(textout_ex) and i havent been able to figure out how to output data from variables. Ive heard a lot about a textprintf function that only applies to C but what can i use with my dev C++ to out a score etc. to the screen?
Advertisement
textprintf_ex() can still be used in C++ as long as you don't use C++ types in the call. Ex: textprintf_ex(/* stuff */, "%d", score); if score is an integer.
Thanks. You obviously know what you're talking about but im still clueless. I just tried to implement what you said and it told me something like invalid conversion from const char. Can you give me a working example of an instruction outputing the score with textprintf in C++?

This topic is closed to new replies.

Advertisement