PDA

View Full Version : GUI + opengl



ugluk
03-19-2011, 04:07 AM
This has been addressed before and I know of the possibility of using a library, such as CEGUI, or a widget toolkit such as WX or Qt. Or even combine Java GUI and GL. But what if one wants something else? Are there are other ways to get a nice-quick GUI? Some other libraries?

Mukund
03-19-2011, 04:29 AM
GLUI is an option. A small Windowing toolkit built over glut. Not as good as Qt, but good enough to serve small applications.

Here is an EXAMPLE (http://www.cs.unc.edu/~rademach/glui/)


And, i guess its possible to use FLTK with OpenGL as well. i haven't tried that though.

ugluk
03-19-2011, 05:22 PM
What if GLUI and FLTK are both out of the question? Maybe cull blenders GUI code?

ugluk
03-20-2011, 07:22 AM
Anyway, yeah even though GUI toolkits are 2D it is not easy to replace them with some boiler-plate code :) Many non-trivial algorithms play a role there, like automatic layout algorithms. If I find an easy solution I will post again here.