https://github.com/cmaughan/vulkan_imgui_vcpkg_starter
Minimal example of using vcpkg to bootstrap a vulkan/imgui. Also does high DPI.
https://github.com/cmaughan/vulkan_imgui_vcpkg_starter
dpi-awareness highdpi imgui minimal sdl sdl2 starter vcpkg vulkan
Last synced: about 1 month ago
JSON representation
Minimal example of using vcpkg to bootstrap a vulkan/imgui. Also does high DPI.
- Host: GitHub
- URL: https://github.com/cmaughan/vulkan_imgui_vcpkg_starter
- Owner: cmaughan
- License: other
- Created: 2022-02-25T11:54:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-28T12:43:24.000Z (about 3 years ago)
- Last Synced: 2025-01-17T13:19:46.594Z (3 months ago)
- Topics: dpi-awareness, highdpi, imgui, minimal, sdl, sdl2, starter, vcpkg, vulkan
- Homepage:
- Size: 312 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vulkan_imgui_vcpkg_starter
[](https://github.com/cmaughan/vulkan_imgui_vcpkg_starter/actions/workflows/builds.yml)
[](https://github.com/cmaughan/vulkan_imgui_vcpkg_starter/blob/main/LICENSE)Minimal example of using vcpkg to bootstrap a vulkan/imgui. Also sets up the high DPI manifest file for Windows.
A font is loaded, which may be too big for low DPI screens; adjust as appropriate until the code reads the DPI and scales correctlyThis would work cross platform if a shell script was added to do the vcpkg bit; I just haven't done it yet.
The CMake creates an config_app.h with the #define for the root of the project. It also loads the package.
There is just 1 source file which creates the vulkan window and displays the IMGui. This is the easiest way to bootstrap a 3D/ImGui Vulkan app IMHO
To build:
- Run prebuild.bat in the root directory. This will install all the necessary packages
- Run config.bat to make the project.
- Load up VC 2022, open the solution in the build directory, set the main project as the startup project, run it.