Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BentleyBlanks/imguiDock
An addon of imgui for supporting docks in the imgui's window
https://github.com/BentleyBlanks/imguiDock
Last synced: 28 days ago
JSON representation
An addon of imgui for supporting docks in the imgui's window
- Host: GitHub
- URL: https://github.com/BentleyBlanks/imguiDock
- Owner: BentleyBlanks
- Created: 2018-01-06T02:06:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T20:33:51.000Z (over 1 year ago)
- Last Synced: 2024-08-04T02:10:39.048Z (4 months ago)
- Language: C++
- Homepage:
- Size: 23.4 KB
- Stars: 235
- Watchers: 13
- Forks: 30
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeCppGameDev - imguiDock
README
## imguiDock
An addon of [imgui](https://github.com/ocornut/imgui/wiki) for support dock in the window## How to use
```cpp
void setup(){
// auto-load the imgui.ini settings
ImGui::InitDock();
}void update(){
if(ImGui::Begin("Dock Demo"))
{
// dock layout by hard-coded or .ini file
ImGui::BeginDockspace();if(ImGui::BeginDock("Dock 1")){
ImGui::Text("I'm Wubugui!");
}
ImGui::EndDock();if(ImGui::BeginDock("Dock 2")){
ImGui::Text("I'm BentleyBlanks!");
}
ImGui::EndDock();if(ImGui::BeginDock("Dock 3")){
ImGui::Text("I'm LonelyWaiting!");
}
ImGui::EndDock();ImGui::EndDockspace();
}
ImGui::End();
// multiple dockspace supported
if(ImGui::Begin("Dock Demo2"))
{
ImGui::BeginDockspace();if(ImGui::BeginDock("Dock 2")){
ImGui::Text("Who's your daddy?");
}
ImGui::EndDock();ImGui::EndDockspace();
}
ImGui::End();
}```
## Intro
Thx to the [nem0](https://github.com/nem0), [paniq](https://github.com/paniq), [adcox](https://github.com/adcox)'s distribute of ```imgui_dock```, so the imgui_dock was able to ```auto save/load``` to/from the ```imgui.ini```.> It seems the [Lumix Engine](https://github.com/nem0/LumixEngine) have done a quite intelligible work just save the dock's property to a Lua file, so I was just save the properties to the ```imgui.ini```.(you can modify the format if your want)
> Some complie errors may occured because of the API change of ImGui, pls let me know
## Collaborator
1. [LonelyWaiting](https://github.com/lonelyWaiting)
2. [BentleyBlanks](https://github.com/BentleyBlanks)
3. [Wubugui](https://github.com/wubugui)