Fairly straightforward at the vsgImGui level - New constructor added and _init methods shuffled around to allow construction without the vsg::Window handle.
One extra fix to ensure ImGuiIO::DisplaySize is initialised to something - I assume this is normally set when handling input or otherwise rendering to the window, but when rendering to texture it doesn't get initialised, and can assert inside ImGui.
Tested by a quick example setup, wasn't planning on merging it to vsgExamples but could if needed:
Fairly straightforward at the vsgImGui level - New constructor added and _init methods shuffled around to allow construction without the vsg::Window handle.
One extra fix to ensure ImGuiIO::DisplaySize is initialised to something - I assume this is normally set when handling input or otherwise rendering to the window, but when rendering to texture it doesn't get initialised, and can assert inside ImGui.
Tested by a quick example setup, wasn't planning on merging it to vsgExamples but could if needed: