Skip to content

Damon3000s/ImGuiApp

 
 

Repository files navigation

ImGuiApp

A bootstrap library to give you an environment to build an ImGUI.NET application with.

Minimal Example

namespace ktsu.ImGuiAppDemo;

using ImGuiNET;
using ktsu.ImGuiApp;

internal class ImGuiAppDemo
{
	private static bool showImGuiDemo;

	private static void Main() =>
		ImGuiApp.Start(nameof(ImGuiAppDemo), new(), OnStart, OnTick, OnMenu, OnWindowResized);

	private static void OnStart() => {}

	private static void OnTick(float dt)
	{
		ImGui.ShowDemoWindow(ref showImGuiDemo);
		ImGui.Begin("Demo");
		ImGui.Text("Hello, ImGui.NET!");
		ImGui.Text("This is a demo of ImGui.NET.");
		ImGui.End();
	}

	private static void OnMenu() => {}

	private static void OnWindowResized() => {}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 82.2%
  • PowerShell 17.8%