ImGui4NET.Backend.Metal4 1.93.0.4

dotnet add package ImGui4NET.Backend.Metal4 --version 1.93.0.4
                    
NuGet\Install-Package ImGui4NET.Backend.Metal4 -Version 1.93.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ImGui4NET.Backend.Metal4" Version="1.93.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ImGui4NET.Backend.Metal4" Version="1.93.0.4" />
                    
Directory.Packages.props
<PackageReference Include="ImGui4NET.Backend.Metal4" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ImGui4NET.Backend.Metal4 --version 1.93.0.4
                    
#r "nuget: ImGui4NET.Backend.Metal4, 1.93.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ImGui4NET.Backend.Metal4@1.93.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ImGui4NET.Backend.Metal4&version=1.93.0.4
                    
Install as a Cake Addin
#tool nuget:?package=ImGui4NET.Backend.Metal4&version=1.93.0.4
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.93.0.4 48 11/11/2026