-
-
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
Ability to render Dear ImGui in a specific region #6714
Comments
Sure there's a way. You will need to implement custom backends to transform your inputs to ImGui and to render its outputs. ImGui just gives you a vertex buffer, an index buffer and information about draw calls it generates. Whether you render those with appropriate transformations directly into your backbuffer or into a texture first that you then draw by other means is entirely up to you. Take a look at the sources of the backends (system and renderer) that you are most familiar with and use them as a reference. |
You can alter Various other reasons (easier/standardized DPI framebuffer scale support, remapping of absolute multi-viewports coordinates to be positive) are likely to lead us toward backend supporting some form of inputs coordinate transforms, so it's not impossible we would support this out of the box in the future. |
Thanks. Basically I could tinker in the backend to be able to draw in a specific region, and I can delegate transform inputs too. Making this kind of features built-in without extra effort/customization would bring more modularity to this library. |
@ocornut Is there any roadmap, milestone list about this? |
There are not roadmap/milestones for publicly requested features, I don't have the bandwidth to guarantee anything. 1- Seems like a bad idea leading to tooling issues/mistakes when working/debugging/hacking/patching/merging the lib. I also absolutely don't need more casual/tourist contributors. I need focused/experienced contributors. All source files are carefully indexed so you can jump around quickly with IDE features. |
Basically I am using IMGUI as a secondary GUI kit and I am trying to embed it in my primary kit.
Is there a way to restrict IMGUI Window rendering to a specific region?
Thanks for this great library.
The text was updated successfully, but these errors were encountered: