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
how to render in background? #4588
Comments
This scream like XY Problem please start by describing what you are trying to do in the first place. It also doesn't make sense to do any of that if your button has a fixed size of (200,20) so your code is not adequately representing your problem. The solution is likely that you should be able to tell the compute of a widget yourself given they are pretty standardized. |
@ocornut thanx for your reply! |
well, so as I can read:
the solution I really need is to render my first widget behind other imgui widgets to be able to safely measure it. |
That's not really possible (other than output the "first" widget in a dummy window then hide the window...). |
Version/Branch of Dear ImGui:
Version: master
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_sdl.cpp + imgui_impl_opengl3.cpp
Operating System: Fedora 34
My Issue/Question:
Hi,
I'm going to measure widget width (#3714) and align it.
I'm able to do so rendering one widget two times with the following steps:
the problem is, that this first (invisible) widget is rendered in foreground?... and covers this second (visible).
The solution is to put the visible widget inside of Child.
my question is: is it possible to do it another way so that the second widget could be rendered in a
normal way
(without any other steps before)Screenshots/Video
with steps above (without Push..Alpha to show both buttons):
when mouse over the common region of both buttons
with child (mouse over common region of two buttons)
Standalone, minimal, complete and verifiable example: (see #2261)
The text was updated successfully, but these errors were encountered: