-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Multi Host Windows on DirectX11/Win32 #3490
Comments
I am not sure I understand your problem very well, but it could be the same as #3350 Doesn’t the application you are creating a plugin for already has a decorated window? This could serve as the main host window. (I suggest reading the Glossary section in wiki to ensure you are referring to the right terminology, as those advanced multi-viewports discussions can easily get confusing.
I am afraid it’s not enough to say that. Please clarify what you tried, what problem you ran into etc otherwise I can only assume you are submitting a “XY problem” (http://xyproblem.info). From the description of your problem I don’t quite understand why you cannot use multi-viewports feature. |
Thanks for reply,
Now two windows are getting rendered just fine, I tested different UIs as well and they are rendered fine. What I need should be super simple but I can't find the solution. I can't use docking because my main application is Maya and I don't want to manipulate it's main window because it leads to random crashes. Also I may need to create my plugin as seperated proess with no main window so I need only different tool windows with imGUI ui, I'm currently using WPF for my user interfaces but imGUI is a way better than it so I really like to use it. I did read Glossary and also tried most of issues on imGUI github but still can't figure it out. Thanks |
@ocornut I did take a deep look at docking source, as far I understood imgui uses independent swapchain and rtv for each viewport so why there always should be a mother window? I removed mother window swapchain and rtv and disabled |
One of the issue is that there's various code relying on the MainViewport, and we'd need to provide the option to get rid of this dependency. This include providing a high-level helper to get a safe "origin" point so instead of user using |
Are you planning to make this changes? |
Yes eventually but its not a high priority at the moment.
|
Version/Branch of Dear ImGui:
Version: 17803
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_dx11.cpp + imgui_impl_win32.cpp
Compiler: VC++ 2019
Operating System: Windows 10 latest version
My Issue/Question:
I'm trying to bring imgui to my plugin for a win32 based application. I want to use multiple windows using imgui ui...
I'm aware of docking branch but this is not what I need I guess because it needs a main viewport but I don't have any and I just have toolbars and several tool windows.
I could successfully create two imgui windows but there's hitting problem and some extra issues.
Is there any solution or way to make this work in a simpler way?
Here's the source code of my project, it's clean and minimal :
https://github.com/Bit00009/imGUIWin
Regards,
Ultran
The text was updated successfully, but these errors were encountered: