moderngl-window icon indicating copy to clipboard operation
moderngl-window copied to clipboard

integrations/imgui: use viewport size for imgui display_size

Open implr opened this issue 5 months ago • 0 comments

Currently the imgui integration does not play well with fixed aspect ratio and black bars.

This fixes it, making sure imgui draws inside the viewport, and then shifts the scissor boxes in screen space to be inside the viewport.

implr avatar Sep 01 '24 21:09 implr