943,715 Members | Top Members by Rank

Ad:
Dec 26th, 2007
0

how to display numeric values in glut

Expand Post »
hii all,
I am doing a small puzzle game in glut. there i want to display numbers in Glut (opengl). can u plz help me
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mjmythili is offline Offline
15 posts
since Nov 2006
Dec 26th, 2007
0

Re: how to display numeric values in glut

You can render it as text.

The following link shows how to render text in glut:
http://www.lighthouse3d.com/opengl/g...ex.php?bmpfont

You can use sprintf to convert numbers into strings:
http://www.cplusplus.com/reference/c...o/sprintf.html

Should be all you need to start displaying any text you want ^^
Reputation Points: 108
Solved Threads: 7
Posting Whiz in Training
FireNet is offline Offline
256 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Game Development Forum Timeline: RPG classes - conditional inheritance?
Next Thread in Game Development Forum Timeline: "Fallout like game" demo





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC