Like the title says, I'm looking for a library that's platform-agnostic and lightweight, for the purpose of displaying buttons, slider bars, check boxes, etc. in OpenGL. Ideally, something that is not directly coupled with OpenGL is best (ie. so that I may replace the rendering with DirectX if need be).
My 'ideal' library would have an event system that supports callbacks or something similar. This is a nice-to-have, but not absolutely required.
I looked into Qt and wxWidgets and both seem very heavy. CEGUI looks like a mess of code. Most other libraries I seen are GLUT based.
To create the GUI app, you must use Visual Studio 2019 because it is better suited for the C++ GUI application.
Boost. UI is a C++ User Interface (GUI) Boost library that is cross-platform, uses native system-provided widgets, has STL-like and Boost-like API, is compatible with other Boost libraries and supports modern C++11/14/17 features.
Yes absolutely. Maybe not practical though. Have a look at github.com/ocornut/imgui you can use opengl to render the GUI.
There's Dear IMGUI
https://github.com/ocornut/imgui
It's completely graphics API agnostic. It just builds vertices. Its up to you to render them.
There's also nuklear inspired by Dear ImGUI.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With