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

Hybrid View

  1. #1
    Junior Member 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
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    Do you mean writing text with OpenGL? OpenGL can't do text editting you have to do that in your own code.

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

  4. #4
    Junior Member 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
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    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
    Junior Member 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
  •