Slashdot Mirror


Making a GUI for OpenGL Games?

stuck in a bind asks: "I am currently coding a civilization-type game (in C) but on a galactic scale. OpenGL is used to draw everything so far. However I have been unable to find a decent, nice GUI, practically all of them are coded in C++. The only other options I can think of is coding my own toolkit (too much work, and I would hate to reinvent the wheel here), using SDL to draw 2D bitmaps on top of my OpenGL window. The last option would be to switch to GTK and use the GTK GL widget. What would the educated gamer/programmers of Slashdot recommend?"

2 of 96 comments (clear)

  1. Stick with GTK by larley · · Score: 0, Offtopic

    I mean, it's kinda old, and really in need of a re-vamp, but it's still a classic. If you're willing to put up with the way it seems to work around all of its inadequacies.

  2. Try Tcl/Tk by rmadhuram · · Score: 0, Offtopic

    Years ago, I wrote a flight sim type application using Embedded Tk (in C) and OpenGL. Tcl was very handy to build a decent GUI very rapidly.