Devlogs
ImGui_GM v1.0.9
imgui_gmA downloadable library for Windows
Posted February 08, 2023 by nommiin
#release
hello! v1.0.9 of imgui_gm changes how imgui is rendered in your game! imgui is now rendered 1:1 with the window size, rather than the GUI layer. this might be a bit of an odd change, but i felt like it's more suitable for imgui's use cases
Added:
- Updated rendering to scale 1:1 with the window, ignoring the application surface and GUI layer
- Internal "ImGui.__Scale" variable, along with "ImGui.__Surface"
- __Surface is an internal surface used as the target for rendering ImGui's draw data. This surface is automatically resized to the window and managed by the ImGui.__Update method.
- __Scale controls the overall scale of the surface being drawn, it is also used when calculating the mouse position for ImGui
Fixed:
- Mouse position for ImGui is now properly calculated (thanks Carson for bringing this to my attention!)
Known Issues/Notes:
- Transparency for sprites is cropped when drawn in ImGui
- This update adjusts the GUI layer size & scaling, let me know if there's any issues with this (ie: scale not being restored when rendering ImGui)