Skip to content

Template repository for quickly getting C++ up and running with ImGui

License

Notifications You must be signed in to change notification settings

CasualBot/imgui-cmake-template

Repository files navigation

Learing C++ UI with Dear ImGui

This repo is a base project using CMake and vcpkg to install imgui and generate a sln to work in.

See the Dear ImGui git repository for information on imgui.

Getting Started

  1. Download and install CMake
  2. Download and install vcpkg
  3. Download and install Visual Studio 2022

Ensure to include the CMake additional module when installing VS2022

  1. Create new repo using template and git clone to local machine
  2. Run cmake . inside root of local git repo
  3. Open the generated LearningUICpp.sln solution
  4. Right click LearningUICpp.sln in Solution Explorer -> Select Set as Startup Project
  5. Run with F5 or Ctrl+F5

Updating Project / Solution name

  1. Open the CMakeLists.txt file
  2. Find and replace any instances of LearningUICpp with your new project name
  3. Regenerate SLN if needed

Notes

  1. This project is using the docking branch of imgui to provide multi-view and docking support
  2. This project uses >= v1.91.0 of ImGui
  3. This project is generated to use DX12 and Win32 APIs. If you'd like to use a different set of APIs update the vcpkg.json, update the main.cpp using the examples from imgui, and re-generate the SLN using step 5 in Getting Started

About

Template repository for quickly getting C++ up and running with ImGui

Topics

Resources

License

Stars

Watchers

Forks