Examples » ImGui

Integration of Dear ImGui into Magnum.

Shows the Dear ImGui demo and two example windows which demonstrate rendering of immediate-mode GUI using the ImGuiIntegration library.

Image

Controls

  • Mouse interaction with widgets and dragging windows
  • Keyboard for text input

Credits

This example originated from community projects by @denesik, Guillaume Jacquemin, Natesh Narain, @ShaddyDC and Tomáš Skřivan, which where integrated by Jonathan Hale. The example makes use of the ImGui library, see documentation of the ImGuiIntegration namespace for license information.

Source

Full source code is linked below and also available in the magnum-examples GitHub repository.

The ports branch contains additional patches for Emscripten support that aren't present in master in order to keep the example code as simple as possible.