Skip to content
 
 

Repository files navigation

Dear ImGui

This is a version of Dear ImGui that can be built as a static or shared library using CMake.

Build

Example build using CMake and Ninja:

cmake -S . -B build -G Ninja \
    -DIMGUI_BACKEND=bgfx,sdl3 \
    -DCMAKE_BUILD_TYPE=Release \
    -DIMGUI_BUILD_SHARED=OFF \
    -DCMAKE_INSTALL_PREFIX=C:/libs/imgui

cmake --build build

CMake Options

  • IMGUI_BACKEND – Select the backend(s) to use. Currently supports sdl3 and bgfx.

  • IMGUI_BUILD_SHARED – ON to build as a shared library, OFF for static library

Backend Dependencies

Backends require their respective libraries:

  • BGFX: Build manually using bgfx.cmake
  • SDL3: Build manually from SDL

These libraries are not included in this repository; build them separately as needed.

Example Project

A sample project using this library is available here:
sdl3-bgfx-imgui-examples

About

Dear imgui with supports building as static or shared libraries with sdl3 and bgfx backend integration

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages