Skip to content

SampleImplementation

Nigel Kennington edited this page Oct 25, 2023 · 10 revisions

For this stage, we will duplicate the larger example from the Dear Imgui readme so you can see some of the inherent differences in Monogame from the parent project.

If you have not already configured your game for the MonoGame.ImGuiNet project, you should start with the Project Setup page and then come back here.

Add the Renderer

First, we must add the following 4 sections of code to the basic Game1.cs.

  1. Declare a new variable for the ImgGuiRenderer to the class variables of Game1.cs: public static ImGuiRenderer GuiRenderer;

Add a test tool

Populate the tool

Clone this wiki locally