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.
- Download and install CMake
- Download and install vcpkg
- Download and install Visual Studio 2022
Ensure to include the CMake additional module when installing VS2022
- Create new repo using template and git clone to local machine
- Run
cmake .
inside root of local git repo - Open the generated
LearningUICpp.sln
solution - Right click
LearningUICpp.sln
in Solution Explorer -> SelectSet as Startup Project
- Run with
F5
orCtrl+F5
- Open the
CMakeLists.txt
file - Find and replace any instances of
LearningUICpp
with your new project name - Regenerate SLN if needed
- This project is using the
docking
branch of imgui to provide multi-view and docking support - This project uses >= v1.91.0 of ImGui
- 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 inGetting Started