Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Library:Dear ImGui

From ReverseEngineering.wiki
Library
Developer Omar Cornut
License MIT
Website https://github.com/ocornut/imgui
On this wiki Facts · Code · Notes · Topics

ocornut's immediate-mode GUI library embedded in debug overlays, mod menus and tools: the IMGUI_VERSION string, the global ImGuiContext and a few built-in window names lead an analyst to the UI code.

Identification

  • IMGUI_VERSION is a string such as "1.93.1 WIP" with IMGUI_VERSION_NUM 19301 (XYYZZ). It is passed to ImGui::DebugCheckVersionAndDataLayout by the IMGUI_CHECKVERSION() macro at startup, together with sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx); search the binary for the version string and the call's xrefs to find the init code.
  • Strings in the library: imgui.ini (default IniFilename, relative to the working directory), Debug##Default (implicit window), Dear ImGui Demo, ##MainMenuBar. A imgui.ini or imgui_log.txt next to a game is a sign.
  • ImGuiContext begins with bool Initialized, then WithinFrameScope flags, int FrameCount, FrameCountEnded, FrameCountRendered, double Time, char ContextName[16], then the embedded ImGuiIO. The global GImGui pointer is the usual lead: it is set by CreateContext/SetCurrentContext and read by every ImGui call, so its xrefs are all UI code. The layout changes between versions.
  • Backends (imgui_impl_dx11, dx12, vulkan, win32, sdl2...) are separate files; their presence shows the graphics API. Overlay mods hook Library:DXGI Present and call the DX11 or DX12 backend there.

Code & repositories

  • https://github.com/ocornut/imgui @ 4be0b47ecc0edd535a40a79f6ceb6f1ac5936483 · license: MIT
    Dear ImGui source: IMGUI_VERSION, version check and ImGuiContext layout.
    Tested on: source read, not run: read source · checked 2026-10-18; last activity 2026-10-16