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 4 of 4

Thread: Text Input using OpenGL/GLUT and C

  1. #1
    Guest

    Text Input using OpenGL/GLUT and C

    Okay, so I know this is going to seem simplistic, but I've been working with OpenGL/GLUT for about six months, and am to the point where my program needs a user interface which allows for text input (for various default parameter values for the simulations it's running). I can't seem to figure out how to do the equivalent of basic Java text input boxes. Right now I'm using command line options to the C program to set all the values, but I'm tiring of it quickly. Ideally, I'd like a startup screen (running in Linux) with about 10 input boxes which can take text from the user before running the graphics simulation. Any suggestions? I've heard of GLUI/PUI/MUI, but only just in passing, and have no idea whether they could help.

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

    Re: Text Input using OpenGL/GLUT and C

    Hi !

    GLUI is pretty ok, but they are all based on GLUT.

    If you need lot's of input you might consider using the GUI part of your OS, that might be a bit easier.

    Mikael

  3. #3
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: Text Input using OpenGL/GLUT and C

    PUI should work fine (examples & screenshots on the page). You may also want to check out GLGooey .

  4. #4
    Guest

    Re: Text Input using OpenGL/GLUT and C

    Okay - so after investigation, I've been pointed towards GTK to run my UI. I know there are several GTK/GL ports. Has anyone here actually worked with any of them, and do you have any pointers?

Posting Permissions

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