Dear ImGui: C++ graphical user interface library
Immediate mode GUI library for 3D applications.
Learn more about Dear ImGui
Dear ImGui is an immediate mode GUI library written in C++ that generates optimized vertex buffers for rendering. It operates without external dependencies and provides a self-contained core that compiles directly into applications. The library uses an immediate mode design pattern where UI state is reconstructed each frame rather than retained, reducing synchronization complexity. It is commonly integrated into game engines, real-time 3D applications, and tools where rapid iteration and minimal UI state overhead are priorities.
Immediate Mode Design
UI is reconstructed each frame rather than retained, eliminating state synchronization between application and UI. Reduces boilerplate code and simplifies integration into existing codebases without architectural changes.
Renderer Agnostic Output
Generates optimized vertex buffers compatible with any graphics API or rendering pipeline. Backends provided for common platforms, or create custom backends wherever textured triangles can be rendered.
Minimal Dependencies Integration
Core functionality contained in a few platform-agnostic C++ files that compile directly into projects. No external dependencies or build process required, suitable for embedded systems and console platforms.
#include "imgui.h"
void RenderDebugUI() {
ImGui::Begin("Debug Info");
ImGui::Text("FPS: %.1f", ImGui::GetIO().Framerate);
static float velocity = 0.0f;
ImGui::SliderFloat("Speed", &velocity, 0.0f, 100.0f);
if (ImGui::Button("Reset")) {
velocity = 0.0f;
}
ImGui::End();
}See how people are using Dear ImGui
Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
Pug
Whitespace-sensitive template engine compiling to HTML for Node.js with Haml-inspired syntax.
Axios
Promise-based HTTP client with unified browser and Node.js interface.
JSON for Modern C++
Header-only C++ library for JSON with STL-like containers.
Gemini CLI
CLI for Google Gemini AI with text, image, and multimodal interactions from terminal.
Moq
Mock .NET objects using lambda expressions and LINQ.
Related Reading
Guides and comparisons from the Greptile content library
Choosing the Right Code Review Tool: Better Alternatives to Graphite AI
A breakdown of the best alternatives to Graphite for code reviews. Compare AI tools like Trag, open-source solutions like Gerrit, and database-focused platforms like Visual Expert.
10 Powerful Code Quality Tools That Catch Bugs Before Deployment
We tested 10 code quality tools that catch bugs before production. Detailed comparison with real-world examples, pricing, and ROI analysis for dev teams.
Greptile Ranks #1 on Martian's AI Code Review Benchmark
Greptile ranks #1 on Martian's independent online AI code review benchmark, leading all evaluated tools in F1 score and precision with near-leading recall.
Best AI Code Review Tools for GitLab
Enterprise-grade AI code review tools for GitLab teams. In-depth comparison of accuracy, security, and integration features to accelerate your merge request workflows.