OpenGL - text output

This is a discussion on OpenGL - text output within the C Programming forums, part of the General Programming Boards category; How do I print some text to the screen? (Not in 3D! just simple text something like printf XD ) ...

  1. #1
    Registered User gavra's Avatar
    Join Date
    Jun 2008
    Posts
    265

    OpenGL - text output

    How do I print some text to the screen?
    (Not in 3D! just simple text something like printf XD )
    (windows,dev c++)

    thanks
    gavra.

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    There are lots of ways, but OpenGL itself has no clue what 'text is' nor how to draw it.

    See the OpenGL FAQ: http://www.opengl.org/resources/faq/technical/fonts.htm

  3. #3
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    If you don't want fancy 3d then GDI will work just fine.

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    43
    This works on many platforms and was easy to use the few times I have:
    http://www.libsdl.org/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 01:23 AM
  2. text output in text editor
    By realjag in forum C++ Programming
    Replies: 5
    Last Post: 10-29-2005, 07:51 PM
  3. Text output into other applications
    By melchior in forum C Programming
    Replies: 9
    Last Post: 09-21-2005, 02:40 AM
  4. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  5. Recording console window output to a text file?
    By HolySmiter in forum C++ Programming
    Replies: 3
    Last Post: 02-24-2002, 03:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21