• Advertisement

Archived

This topic is now archived and is closed to further replies.

SDL....Sfont vs Bfont

This topic is 5375 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Guest Anonymous Poster
can either of those print out as text a numeric variable? like if i said print(x); and x was an int equal to 12 it would show 12 on the screen?

Share this post


Link to post
Share on other sites
no, but thats easily fixed you write a function called NumToString(int num) and have the return variable a char*, and use the c function sprintf. so you would do something like this to print a number to the screen:

PutString(0,0,NumToString(integer));

there ya go!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
thanks!

Share this post


Link to post
Share on other sites

  • Advertisement