Skip to content

Conversation

AristurtleDev
Copy link
Contributor

@AristurtleDev AristurtleDev commented Jul 29, 2025

This commit adds a complete MonoGame example demonstrating how to integrate Hexa.Net.Imgui with MonoGame. Based on the original ImGuiNet example at https://github.com/ImGuiNET/ImGui.NET/tree/master/src/ImGui.NET.SampleProgram.XNA

Notable changes:

  • ImGuiRenderer class updated for v1.92 texture backend protocol
  • Implements ImGuiBackendFlags_RendererHasTextures support
  • Uses ImTextureRef API instead of legacy ImTextureID
  • Removed obsolete RebuildFontAtlas in favor of the dynamic font sizing in v1.92
  • Implemented ImGuiRenderer.ProcessTextureUpdates() for dynamic texture management in v1.92
  • SampleGame uses u8 and StrBuilder as recommended.

Related #28

AristurtleDev and others added 5 commits July 29, 2025 16:09
This commit adds a complete MonoGame example demonstrating how to integrate Hexa.Net.Imgui with MonoGame. Based on the original ImGuiNet example
- Renamed namespace to match directory
- Removed redundant unsafe keyword usage
- removed redundant value initializations
- Mark fields readonly that can be
- Use C# naming conventions (e.g. `_showAnotherWindow` instead of `show_another_window`
@MutsiMutsi
Copy link

I have used this sample, and I approve of this message 👍.

Copy link
Member

@JunaMeinhold JunaMeinhold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good to me too, if you are done with everything just say the word and I'll merge the PR.

@AristurtleDev
Copy link
Contributor Author

Looks all good to me too, if you are done with everything just say the word and I'll merge the PR.

Oh sorry missed your comment. Yea everything is good. I've been using it for a few weeks now in the particle editor I'm making in MonoGame and have had no issues so far.

@JunaMeinhold JunaMeinhold merged commit 81ba9bd into HexaEngine:master Aug 27, 2025
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.

3 participants