kaikalii / ImGui.Window

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImGui.Window

This is a simple library that creates a window for ImGui.NET.

Usage

Simply make a class that iherits from Form and override Ui().

using ImGui.Window;
using static ImGuiNET.ImGui;

class Program
{
    public static void Main()
    {
        new MyGui().Show();
    }

    class MyGui : Form
    {
        private bool boolean = false;
        private float number = 0f;
        private string str = "Hello World!";
        public MyGui() => Application = new(this);
        public override void Ui()
        {
            // Put ImGui.NET calls here
            Checkbox("Boolean", ref boolean);
            SliderFloat("Number", ref number, 0f, 10f);
            InputText("String", ref str, 1000);
            LabelText("", str);
        }
    }
}

Credits

ocurnut - For creating Dear ImGui mellinoe - For creating ImGui.NET (bindings for Dear ImGui) Veldrid Team - For creating the Veldrid rendering pipeline onepiecefreak3 - For creating ImGui.Forms, which this library's backend is based on

About

License:GNU General Public License v3.0


Languages

Language:C# 93.5%Language:GLSL 3.1%Language:HLSL 1.7%Language:Metal 1.5%Language:Batchfile 0.2%