Sign in to follow this  
nick22891

Output from the variables with allegro.

Recommended Posts

nick22891    103
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?

Share this post


Link to post
Share on other sites
SiCrane    11839
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.

Share this post


Link to post
Share on other sites
nick22891    103
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++?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this