Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
antongit opened this issue Nov 11, 2022 · 0 comments
Open

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

antongit opened this issue Nov 11, 2022 · 0 comments
Labels
VL.ImGui Wrapper for the Dear ImGui library

Comments

@antongit
Copy link
Member

@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.

@joreg joreg transferred this issue from vvvv/VL.ImGui Mar 1, 2023
@joreg joreg added the VL.ImGui Wrapper for the Dear ImGui library label Mar 1, 2023
@joreg joreg added this to the 5.0 milestone Mar 20, 2023
@antongit antongit removed this from the 5.0 milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VL.ImGui Wrapper for the Dear ImGui library
Projects
None yet
Development

No branches or pull requests

2 participants