C++ – portable OpenGL UI Library (Buttons, Lists, Windows, Dropdown etc)

ciphoneopengl-esuser interface

I'm searching for a OpenGL User Interface Library like WxWidgets but not OS dependent.

It would have to provide callbacks for user input since this is OS dependent.

If something like this doesn't yet exist (which I doubt because most games have most of the Basic UI Elements) is there a OpenGL HTML/CSS renderer?

Best Answer

FLTK, GTK+, and QT support OpenGL widgets in a portable way. QT in particular can render all of its widgets in an OpenGL viewport. I know there's been some work on getting GTK to do the same thing, but I haven't heard on the progress of it.

OTK comes up on a quick Google search as an OpenGL-backed widget library.

It's also worth pointing out that Cairo has an OpenGL backend, and there are a number of toolkits that depend on it, including GTK+.

Related Topic