PDA

View Full Version : write any digits



arslan
11-28-2012, 09:40 AM
plz help me that how can i write any digit or edit text using coding ????

tonyo_au
11-28-2012, 03:57 PM
Do you mean writing text with OpenGL? OpenGL can't do text editting you have to do that in your own code.

arslan
11-29-2012, 05:08 AM
yes writing text with openGL.

arslan
11-29-2012, 05:11 AM
i want to write 100 how can i write it with OpenGL??? tells me the code.

tonyo_au
11-29-2012, 03:27 PM
OpenGL does not have any direct support to writing text. You have to create some sort of bitmap of the text and render it as a texture on a quad. Google "drawing text in OpenGL" there are a lot of articles describing
different ways of doing this. Personnally I use a variation based on http://www.angelcode.com/products/bmfont/

arslan
12-08-2012, 09:22 AM
thanks......