Fantastic library, well apart from the lack of documentation that makes sense to me
I am struggling to have a dock space contain my game rendering. I want to constrain my game rendering to one dock and another set of windows to another.
Code: Select all
imgui.SetNextWindowPos(0, 0)
if imgui.Begin("PrimaryDock", nil, { "NoTitleBar", "NoMove" }) then
imgui.BeginDockspace() --start the dock
---
if imgui.BeginDock("dock_".."Game") then
--draw game here
imgui.EndDock()
end
--
if imgui.BeginDock("dock_".."Editor") then
imgui.Begin("MainEditorScreen")
--eventually will fill with all editor related shenanigans
imgui.End()
imgui.EndDock()
end
--
imgui.EndDockspace() -- end the dock
end
imgui.End()
imgui.Render();
This does make my game render when dock_Game dock is selected.
Though i noticed the game rendering is not constrained to the dock, it simply only happens when that dock is selected and it appears asif though the docks pane/window is drawn over my game.
The same happens for the MainEditorScreen window, it is drawn behind and outside the dock.
How would I go about getting better documentation than using the imgui.cpp and imgui.h files and rendering my game inside of a dock?