Skip to content

MonoGame & FNA sample upgrade#518

Merged
zaafar merged 8 commits into
ImGuiNET:masterfrom
morfah:feature/xna-sample-upgrades
Jul 20, 2026
Merged

MonoGame & FNA sample upgrade#518
zaafar merged 8 commits into
ImGuiNET:masterfrom
morfah:feature/xna-sample-upgrades

Conversation

@morfah

@morfah morfah commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

It's good to dispose ImGuiRenderer when unloading content.
For example if the game use multiple game states which unload and loads content.

Also if you instantiated ImGuiRenderer again there would be multiple event handlers for text inputs, so I removed those in the Dispose too.

Enabled docking in BeforeLayout, otherwise you would get an cimgui assert error when you tried to use the docking feature.

Did some minor code cleanups.

morfah added 8 commits June 4, 2025 18:51
* Enable docking support.
* FNA fixes.
* Minor code cleanups.
* Only set effect name if it's empty, so we don't string interpolate unnecessarily.
This fixes console warning spam when using FNA with FNALoggerEXT.
This should also be more correct and performant.
@zaafar
zaafar merged commit 6c558f4 into ImGuiNET:master Jul 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants