How to draw gui in two portions #3735
Jochen0x90h
announced in
Old/Archived discussions
Replies: 1 comment 1 reply
-
Why not just submitting the first window and not the second when you want to take that screenshot? As for post-processing, each window will have its own ImDrawList and you can rely on |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Is it possible to render the gui in two portions? For example construct a window with ImGui::Begin ... ImGui::End, then obtain the draw data (ImGui::GetDrawData()), draw it, and still in the same frame construct another window with ImGui::Begin ... ImGui::End and then draw it. One use case for this would be taking a screenshot after drawing the first window and before drawing the second window so that only one window is visible in the screenshot. Other use case would be to apply some post-processing effect on only one window.
Thanks,
Jochen
Beta Was this translation helpful? Give feedback.
All reactions