How joiningallies/clean-imgui-menu works
Dear ImGui is a portable immediate-mode GUI library, despite the README’s “Imgui menu” title. Its central workflow is for an application to submit UI each frame, while platform backends provide input and renderer backends consume generated draw data. The tree also shows widget, table, font, demo, and optional convenience modules. The README gives no technical architecture; edges are limited to relationships supported by the supplied excerpts or SOURCE INDEX, so some plausible runtime links are omitted.
Main entry points: imgui.h Public API · imgui_internal.h Internal State · imgui_draw.cpp Draw Lists · backends Renderer Backends
Components 16
Application API
- Public API
imgui.h
GUI Core
- Frame Context
imgui.cpp - Widgets
imgui_widgets.cpp - Tables
imgui_tables.cpp - Draw Lists
imgui_draw.cpp - Internal State
imgui_internal.h
Platform and Rendering
- Platform Backends
backends - Renderer Backends
backends - OpenGL Loader
backends/imgui_impl_opengl3_loader.h - Vulkan Renderer
backends/imgui_impl_vulkan.cpp
Fonts and Utilities
- Font Atlas
imgui_draw.cpp - STB Font Rasterizer
imstb_truetype.h - FreeType Builder
misc/freetype/imgui_freetype.cpp - String Wrappers
misc/cpp/imgui_stdlib.cpp - Demo UI
imgui_demo.cpp
Other components
- Application
Connections 12
- Application → Public API: submits UI
- Platform Backends → Public API: uses API
backends/imgui_impl_glfw.cpp - Renderer Backends → Public API: uses API
backends/imgui_impl_opengl3.cpp - Vulkan Renderer → Draw Lists: consumes draw data
backends/imgui_impl_vulkan.cpp - OpenGL Loader → Renderer Backends: supports loading
backends/imgui_impl_opengl3.cpp - Widgets → Internal State: uses state
imgui_internal.h - Tables → Internal State: uses state
imgui_tables.cpp - Draw Lists → Internal State: uses state
imgui_draw.cpp - Font Atlas → STB Font Rasterizer: rasterizes with
imgui_draw.cpp - FreeType Builder → Internal State: uses internals
misc/freetype/imgui_freetype.cpp - String Wrappers → Public API: wraps input
misc/cpp/imgui_stdlib.cpp - Demo UI → Public API: demonstrates
imgui_demo.cpp