Results 1 to 6 of 6

Thread: write any digits

  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......

Similar Threads

  1. Unpacking ternary digits
    By barneypitt in forum OpenGL: General
    Replies: 3
    Last Post: 04-13-2018, 04:30 PM
  2. GPU Write to GL_DRAW_INDIRECT_BUFFER
    By Christoph.LGDV in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-09-2016, 11:48 AM
  3. Replies: 1
    Last Post: 01-28-2013, 01:39 AM
  4. Replies: 1
    Last Post: 09-17-2008, 12:28 PM
  5. had to write that
    By Julien Cayzac in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-25-2002, 10:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean