ImGui4NET.Backend.Glut
1.93.0.4
dotnet add package ImGui4NET.Backend.Glut --version 1.93.0.4
NuGet\Install-Package ImGui4NET.Backend.Glut -Version 1.93.0.4
<PackageReference Include="ImGui4NET.Backend.Glut" Version="1.93.0.4" />
<PackageVersion Include="ImGui4NET.Backend.Glut" Version="1.93.0.4" />
<PackageReference Include="ImGui4NET.Backend.Glut" />
paket add ImGui4NET.Backend.Glut --version 1.93.0.4
#r "nuget: ImGui4NET.Backend.Glut, 1.93.0.4"
#:package ImGui4NET.Backend.Glut@1.93.0.4
#addin nuget:?package=ImGui4NET.Backend.Glut&version=1.93.0.4
#tool nuget:?package=ImGui4NET.Backend.Glut&version=1.93.0.4
ImGui4NET
Bare-metal .NET bindings for Dear ImGui, tracking v1.93.0-docking.
The bindings expose the native C++ API directly: structs are unsafe value
types with the exact native layout, and every function is a [DllImport] with
the mangled entry point. There is no wrapper layer and no allocation on the
interop boundary.
Getting started
Install the core package plus one platform backend and one renderer backend:
dotnet add package ImGui4NET
dotnet add package ImGui4NET.Backend.Glfw # platform
dotnet add package ImGui4NET.Backend.OpenGL3 # renderer
Native libraries for win-x64, linux-x64, osx-x64, osx-arm64 and
android-arm64 ship inside the packages under runtimes/, so no extra build
step is needed. Every package targets net10.0; the Direct3D and Win32
backends also ship a net10.0-windows build.
Prerequisites
- .NET 10.0 or later.
- The native platform library the chosen backend links against (GLFW, SDL2/3, Vulkan loader, Direct3D, ...) must be resolvable at run time. Packages that need one already depend on the matching Silk.NET package, which supplies it.
Usage
using ImGui4NET;
using ImGui4NET.Backend.Glfw;
using ImGui4NET.Backend.OpenGL3;
unsafe
{
ImGuiContext* ctx = ImGui.CreateContext();
ImGui.SetCurrentContext(ctx);
ImGui_ImplGlfw.InitForOpenGL(window, install_callbacks: 1);
ImGui_ImplOpenGL3.Init("#version 330");
// ... your frame loop ...
ImGui_ImplOpenGL3.Shutdown();
ImGui_ImplGlfw.Shutdown();
ImGui.DestroyContext(ctx);
}
Packages
| Package | Contents |
|---|---|
ImGui4NET |
Core Dear ImGui bindings plus the native imgui library |
ImGui4NET.Club |
Pure C# ports of the ocornut/imgui_club extensions: Memory Editor, Multi-Context Compositor, Threaded Rendering (no native library) |
ImGui4NET.Backend.OpenGL2 |
OpenGL2 renderer backend |
ImGui4NET.Backend.OpenGL3 |
OpenGL3 renderer backend |
ImGui4NET.Backend.DirectX9 |
Direct3D 9 renderer backend |
ImGui4NET.Backend.DirectX11 |
Direct3D 11 renderer backend |
ImGui4NET.Backend.DirectX12 |
Direct3D 12 renderer backend |
ImGui4NET.Backend.Vulkan |
Vulkan renderer backend |
ImGui4NET.Backend.Win32 |
Win32 platform backend |
ImGui4NET.Backend.Glfw |
GLFW platform backend |
ImGui4NET.Backend.Sdl2 |
SDL2 platform backend |
ImGui4NET.Backend.Sdl3 |
SDL3 platform backend |
ImGui4NET.Backend.SdlGpu3 |
SDL3 GPU renderer backend |
ImGui4NET.Backend.Glut |
GLUT platform backend |
ImGui4NET.Backend.Metal |
Metal renderer backend (macOS) |
ImGui4NET.Backend.Metal4 |
Metal 4 renderer backend (macOS 26+, Apple Silicon) |
ImGui4NET.Backend.OSX |
macOS/Cocoa platform backend |
ImGui4NET.Backend.Allegro5 |
Allegro5 platform backend |
ImGui4NET.Backend.Android |
Android platform backend (arm64) |
Each backend package ships its own native library and depends only on the core package, so an application pulls in exactly the backends it uses.
Additional documentation
Feedback
Issues and pull requests: https://github.com/StArraySharp/ImGui4NET/issues
License
MIT — see LICENSE.
Dear ImGui and imgui_club are MIT licensed by Omar Cornut. Third-party components (Silk.NET, freeglut, Allegro) are consumed as NuGet packages and keep their own licenses.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- ImGui4NET (>= 1.93.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.