how to display numeric values in glut

Reply

Join Date: Nov 2006
Posts: 15
Reputation: mjmythili is an unknown quantity at this point 
Solved Threads: 0
mjmythili mjmythili is offline Offline
Newbie Poster

how to display numeric values in glut

 
0
  #1
Dec 26th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 256
Reputation: FireNet will become famous soon enough FireNet will become famous soon enough 
Solved Threads: 6
FireNet's Avatar
FireNet FireNet is offline Offline
Posting Whiz in Training

Re: how to display numeric values in glut

 
0
  #2
Dec 26th, 2007
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 ^^
See what you can, remember what you need

Fourzon | Earn via Coding
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Game Development Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC