Reputation: 8173
I installed Dear ImGui on Windows 10 with this command:
vcpkg install imgui:x64-windows
which installs only:
imgui[core]:x64-windows -> 1.85
I suspect that I need to add one or more bindings from this list:
imgui[allegro5-binding] Make available Allegro5 binding
imgui[docking-experimental] Build with docking support
imgui[dx10-binding] Make available DirectX10 binding
imgui[dx11-binding] Make available DirectX11 binding
imgui[dx12-binding] Make available DirectX12 binding
imgui[dx9-binding] Make available DirectX9 binding
imgui[freetype] Build font atlases using FreeType instead of stb_truetype
imgui[glfw-binding] Make available GLFW binding
imgui[glut-binding] Make available Glut binding
imgui[libigl-imgui] Install the libigl-imgui headers
imgui[marmalade-binding] Make available Marmalade binding
imgui[metal-binding] Make available Metal binding
imgui[opengl2-binding] Make available OpenGL (legacy) binding
imgui[opengl3-binding] Make available OpenGL3/ES/ES2 (modern) binding
imgui[osx-binding] Make available OSX binding
imgui[sdl2-binding] Make available SDL2 binding
imgui[sdl2-renderer-binding] Make available SDL2 Renderer binding
imgui[vulkan-binding] Make available Vulkan binding
imgui[wchar32] Use WCHAR32 instead of WCHAR16
imgui[win32-binding] Make available Win32 binding
The Windows 10 version I'm using has DirectX 12. Do I need just imgui[dx12-binding]
? imgui[win32-binding]
? More? I can't find the documentation discussing these requirements.
Upvotes: 4
Views: 12090
Reputation: 8173
Here are the steps to get a sample Dear ImGui application build and run with Visual Studio on Windows 10:
vcpkg install imgui[core,dx12-binding,win32-binding]:x64-windows
Get a sample project from https://github.com/ocornut/imgui/tree/master/examples/example_win32_directx12
Open the project with Visual Studio and remove imgui dependencies with hard coded paths
Build and enjoy.
Upvotes: 10