vvvv / VL.StandardLibs

A collection of standard libraries for vvvv including VL.Stride, VL.Skia, VL.ImGui, msgpack.org[VL]
https://visualprogramming.net
GNU Lesser General Public License v3.0
35 stars 14 forks source link

`GetMainViewport` returns a ImGuiViewportPtr that we didn't wrapped #13

Open antongit opened 1 year ago

antongit commented 1 year ago

@azeno The GetMainViewport can be handy in getting the center of the imgui screen among other things, like here: https://github.com/ocornut/imgui/blob/03d3343e215f78945d149621bd5655a95db59bfc/imgui_demo.cpp#L3516

But it returns ImGuiViewportPtr, that we didn't wrapped I've tried forwarding and using it, but vvvv crashes, because it's a pointer and has other pointers, right? Has to be handled properly.