https://github.com/nickscha/vk-glfw-cimgui
c demo of imgui using vulkan, glfw3, cimgui
https://github.com/nickscha/vk-glfw-cimgui
c c99 cimgui demo glfw3 imgui vulkan
Last synced: about 1 year ago
JSON representation
c demo of imgui using vulkan, glfw3, cimgui
- Host: GitHub
- URL: https://github.com/nickscha/vk-glfw-cimgui
- Owner: nickscha
- License: apache-2.0
- Created: 2020-06-14T12:44:30.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-14T13:04:16.000Z (about 6 years ago)
- Last Synced: 2025-05-07T22:44:22.462Z (about 1 year ago)
- Topics: c, c99, cimgui, demo, glfw3, imgui, vulkan
- Language: C
- Size: 58.6 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vk-glfw-cimgui
Pure C demo for Vulkan, GLFW3 and CIMGUI.
This is the C port of IMGUI examples (https://github.com/ocornut/imgui/tree/master/examples/example_glfw_vulkan)
## Build
```sh
# Debug (dist/Debug/...)
make
# Release (dist/Release/...)
make CONF=Release
```
## Example

## Linker Libraries
-lvulkan-1 -lglfw3 -lcimgui -lstdc++ (needed for cimgui)
### Compile GLFW3 on Windows (MinGW via MSYS2)
```sh
# Download sources from (https://www.glfw.org/download.html)
cd glfw
rm CMakeCache.txt
cmake -DBUILD_SHARED_LIBS=OFF -DGLFW_BUILD_EXAMPLES=ON -DGLFW_VULKAN_STATIC=OFF -G "MinGW Makefiles"
make install
```
### Compile CIMGUI on Windows (MinGW via MSYS2)
```sh
git clone https://github.com/cimgui/cimgui.git
cd cimgui
rm CMakeCache.txt
git submodule update --init --recursive
cmake -DIMGUI_STATIC=ON -DCIMGUI_TEST=ON -G "MinGW Makefiles"
make install
```