Jump to content
  • Advertisement
Sign in to follow this  
freddykhalid

OpenGL Drawing Numbers and Letters

This topic is 4320 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

Hi everyone... I want to draw letters and numbers using OpenGL. But some are difficult to draw for example the number "6". Does anyone have any idea or a link to help?? Help is much appreciated! Thanks in advance..

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by freddykhalid
I want to draw letters and numbers using OpenGL. But some are difficult to draw for example the number "6". Does anyone have any idea or a link to help??
Help is much appreciated!
What do you mean be 'draw'? Since you've singled out a particular character as difficult to draw, I assume your intent is to draw the characters using lines or some other primitive. Is that correct?

In any case, some more information about what you're wanting to do would be helpful.

Share this post


Link to post
Share on other sites
What I mean to say is that I need to "generate" or "produce" the number 6 using the following basic commands.

glPushMatrix(); //Round center of number 6
glColor3ub(0,0,255);
glTranslatef(2,0,0);
glScalef(1,1,1);
glutSolidTorus(0.3,0.7,20,20);
glPopMatrix();


Repeated part to generate the bent side of the number 6
glPushMatrix(); //Bent side of number 6
glColor3ub(0,0,255);
glTranslatef(1.5,0.5,0);
glRotatef(90,1,0,1);
glScalef(1,0.5,0.5);
glutSolidCube(1);
glPopMatrix();

Including the vertex commands GLBEGIN .. GLEND
I am no expert or advanced user of OpenGL, so using these commands is monly option... Any ideas would be helpful!!!

Thanks,,,

[Edited by - freddykhalid on October 20, 2006 7:50:23 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!