GrafixersCrew WhatsApp us

Home › AI Game Development › Dear ImGui

What is Dear ImGui? The bloat-free GUI library for C++ game tools

Dear ImGui is a bloat-free graphical user interface library for C++. It outputs optimised vertex buffers you can render any time in your 3D-pipeline-enabled application — fast, portable, renderer agnostic and self-contained, with no external dependencies.

Dear ImGui in one paragraph

Dear ImGui (github.com/ocornut/imgui) is a bloat-free graphical user interface library for C++ with minimal dependencies. It is designed to enable fast iterations and to empower programmers to create content creation tools and visualisation and debug tools — as opposed to UI for the average end-user. It favours simplicity and productivity toward that goal: it minimises state synchronisation and UI-related state storage on the user side, and it is easy to use to create dynamic UI that reflects a dynamic data set, code-driven and data-driven tools, and both short-lived ad hoc tools and long-lived, more elaborate ones.

The project is battle-tested and used by many major actors in the game industry, and it passed 77,000 GitHub stars by December 2026, with over 10,000 commits and 124 releases since it was created in July 2014. It is available under a free and permissive MIT licence. The library is free to use, but the project asks companies that use it to consider supporting its continued development through sponsoring or support contracts.

What Dear ImGui actually does

Dear ImGui is an immediate-mode GUI: you call its functions in your program loop, and it hands back vertex buffers and a small list of draw call batches to render. Its work breaks down into four parts.

1. A GUI you call from anywhere in your loop

After Dear ImGui is set up in your application, you can use it from anywhere in your program loop — a few lines of code create text, buttons, input fields and sliders, and a window with a menu bar, colour editor and scrolling region takes only a short block of code. Because it never touches your GPU directly, you can call its functions in the middle of a running algorithm or in the middle of your own rendering process, and render the results later.

2. No build process, no dependencies

The core of Dear ImGui is self-contained within a few platform-agnostic files in the root of the repository (imgui.cpp, imgui.h and friends), which you compile straight into your application or engine. No specific build process is required: you add the files into your existing project. It is fast, portable, renderer agnostic and self-contained, with no external dependencies.

3. Backends for almost every renderer and platform

Backends for a variety of graphics APIs and rendering platforms are provided in the backends folder, along with example applications. Officially maintained renderers include DirectX 9, 10, 11 and 12, Metal 3 and 4, OpenGL and OpenGL ES, SDL_GPU, SDL_Renderer 2 and 3, Vulkan and WebGPU; platforms include GLFW, SDL2 and SDL3, Win32, Glut, OSX and Android. Third-party backends and bindings cover many more languages — C, C#, Python, Rust, Go, Lua and more — and frameworks from Unity and Unreal Engine to Godot and Blender.

4. A demo window and a gallery of real tools

Calling ImGui::ShowDemoWindow() creates a demo window showcasing a variety of features and examples, with the code always available for reference in imgui_demo.cpp. Real projects built on Dear ImGui include the Tracy profiler, the ImHex hex editor and the RemedyBG debugger, and hundreds of other tools — from loggers and inspection tools to profilers, debuggers and entire game-making editors.

What it costs

Dear ImGui itself is free — MIT licence, no subscription, no per-use cost. The project does ask for financial support to sustain its continued improvements: businesses can support continued development and maintenance through invoiced sponsoring or support contracts, and individuals can contribute through the project’s funding page. That support is voluntary; the licence does not require it.

Who Dear ImGui is for

Game engine and tools programmers

You are building an engine or a level editor and need a UI for it. Dear ImGui drops into your existing project with no build process, and is built for exactly this job.

Debug and visualisation tool builders

You need a logger, an inspector, a profiler or a debugger. Call the functions from anywhere in your loop and trace a running algorithm by emitting text commands.

Real-time 3D application developers

Your app already has a 3D pipeline. Dear ImGui outputs vertex buffers you render yourself, so it fits fullscreen, embedded and console applications where operating system features are non-standard.

Programmers who iterate fast

With hot code reload you can add a few widgets to tweak variables while your application is running, and remove the code a minute later. Short-lived tools are a first-class use case.

Dear ImGui at a glance

Honest limits

Dear ImGui is deliberately not a general-purpose UI toolkit, and the README says so plainly. It is designed for content creation tools and debug tools, not UI for the average end-user, and it lacks features common in more high-level libraries — full internationalisation (right-to-left text, bidirectional text and text shaping) and accessibility features are not supported. Integration is also your job: you wire the mouse, keyboard and gamepad inputs, upload a texture to your GPU and provide a render function, although the supplied backends and examples mean that usually takes less than an hour on a supported platform.

Want a game without doing the setup?

Dear ImGui is one of the tools behind our AI game development service: we build your game instead of from scratch, playtest everything by hand, and hand over a finished game with its source code. Mini-games from £499, full 2D games from £1,499, 3D games from £2,999. You bring the idea; there are no surprise bills.

Have a game idea?

Tell us the idea — a sentence is enough. We will tell you what it takes and what it costs, honestly.