Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: write any digits

  1. #1
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    4

    Lightbulb write any digits

    plz help me that how can i write any digit or edit text using coding ????

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    736
    Do you mean writing text with OpenGL? OpenGL can't do text editting you have to do that in your own code.

  3. #3
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    4
    yes writing text with openGL.

  4. #4
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    4
    i want to write 100 how can i write it with OpenGL??? tells me the code.

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    736
    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/

  6. #6
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    4
    thanks......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •