protot/3rdparty/imgui_docking_minimal
Martin Felis a47adeaa20 Initial integration of docking that saves layout and does not crash 2017-07-02 20:18:34 +02:00
..
imgui Initial integration of docking that saves layout and does not crash 2017-07-02 20:18:34 +02:00
include Initial integration of docking that saves layout and does not crash 2017-07-02 20:18:34 +02:00
src Initial integration of docking that saves layout and does not crash 2017-07-02 20:18:34 +02:00
.gitignore Started trying to integrate https://github.com/vassvik/imgui_docking_minimal 2017-06-28 16:01:19 +02:00
LICENSE Started trying to integrate https://github.com/vassvik/imgui_docking_minimal 2017-06-28 16:01:19 +02:00
Makefile Started trying to integrate https://github.com/vassvik/imgui_docking_minimal 2017-06-28 16:01:19 +02:00
README.md Started trying to integrate https://github.com/vassvik/imgui_docking_minimal 2017-06-28 16:01:19 +02:00
fragment_shader.fs Started trying to integrate https://github.com/vassvik/imgui_docking_minimal 2017-06-28 16:01:19 +02:00
imgui_dock.layout Started trying to integrate https://github.com/vassvik/imgui_docking_minimal 2017-06-28 16:01:19 +02:00
main.cpp Started trying to integrate https://github.com/vassvik/imgui_docking_minimal 2017-06-28 16:01:19 +02:00
mathGL.h Started trying to integrate https://github.com/vassvik/imgui_docking_minimal 2017-06-28 16:01:19 +02:00
vertex_shader.vs Started trying to integrate https://github.com/vassvik/imgui_docking_minimal 2017-06-28 16:01:19 +02:00

README.md

imgui_docking_minimal

A minimal example combining dear imgui with LumixEngine's extension for docking windows (tiling windows, essentially).

LumixEngine's code uses Lua for layout loading and saving. These have been removed and replaced with simpler functions that just read and write a plain textfile using fprintf and fscanf. These functions are not particularly impressive, but does its job at the moment.

The main program itself is a modified version of opengl3_example from the imgui repo. It has a menubar, and has 6 docked windows that can me rearranged how you see fit.

A cube (currently 4 cylinders) is rendered to a framebuffer texture, and that is drawn in one of the docks. This dock accepts mouse and keyboard input to move the camera while active/focused.

A simple Makefile tested for Windows (MinGW64-w64) and Linux (Arch?) is included, and a simple layout file (that matches the code in main.cpp) is included, that will update after modification of the layout while running the program.

Dependencies:

  • GLFW3
  • GLEW
  • dear imgui (included from the imgui repo)
  • imgui_docking.{h,cpp} (included from the LumixEngine repo slightly modified)