-
Notifications
You must be signed in to change notification settings - Fork 2k
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
A way to access logical_dst_rect? #8815
Comments
Can you explain more? Conceptually the logical rect is the viewport that you can draw into and it shouldn't matter where it is. |
Sorry it took me so long to respond, I need to know where it is to correctly draw an imgui panel, for logical rendering I have to turn it off before I render the imgui frame, because of that I need to know where to put the frame, and that involves the offset that the logical rect is from 0, 0 because of how it is pushed to the middle with letterboxing, currently I am using a modified version of the UpdateLogicalPresentation method to get the rect, but this should just be a sdl feature |
That makes sense, thanks. |
If I were to add this would it belong in SDL_render.h? |
I made a pull request |
I'm working with ImGui and am facing an issue when using logical rendering and an aspect ratio change. I believe I could fix my issue my offsetting the panel position with the logical_dst_rect position, but currently it doesn't look like there is any way to access it without the definition of the SDL_Renderer
The text was updated successfully, but these errors were encountered: