Results 1 to 3 of 3

Thread: Button & ttf

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Bangladesh
    Posts
    5

    Button & ttf

    I am working on opengl.But I do not know how to create button & true type font in opengl

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Button & ttf

    It all depends on if you only need it to work on Windows or on other platforms also.

    On Windows you can use wglUseFontOutlines to create TTF characters in OpenGL, the alternative is to use FreeType, there are a number of libraries available that render TTF characters on OpenGL using FreeType.

    The button itself is just glBegin()/glEnd with some GL_LINES or GL_LINE_STRIPS.

    Mikael

  3. #3
    Senior Member Regular Contributor
    Join Date
    Mar 2004
    Posts
    143

    Re: Button & ttf

    A quick search in the forum gave 30 hits for the keywords "button menu"

    Here are three of them:
    http://www.opengl.org/discussion_boa...ML/002865.html http://www.opengl.org/discussion_boa...ML/008071.html http://www.opengl.org/discussion_boa...ML/015336.html

    Seems like GLUI is what your are looking for.

Similar Threads

  1. Texture for a button?
    By tomb18 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-20-2017, 06:20 PM
  2. glutAttachMenu(button)
    By danielwashere in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 12-15-2010, 06:36 AM
  3. button help
    By asdfwe in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-19-2008, 08:50 AM
  4. Mouse2 button
    By azncrip4lif in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-19-2002, 01:23 AM
  5. PUI button callbacks
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-20-2002, 07:15 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