mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 21:55:09 +00:00
6e46753ce3fa52b2f40b4f4bb151b1e8ad652dc0
SDL3CPlusPlus
A minimal SDL3 + Vulkan spinning cube demo.
Build
- Install or update Conan 2.x and run
so that Conan brings in
conan profile detect conan install . -of build -b missing -s compiler=msvc -s compiler.version=194 -s compiler.cppstd=17 -c tools.cmake.cmaketoolchain:generator="Visual Studio 17 2022"lua, SDL3, and the Vulkan loader + headers. - Configure the project with CMake using the generated Conan toolchain:
cmake -B build -S . - Build the demo:
cmake --build build
Shaders are copied into build/shaders during configuration, so the demo can load the precompiled cube.{vert,frag}.spv.
Run
cmake --build build --target spinning_cube
./build/spinning_cube
If you need the Conan runtime environment (e.g., because dependencies set env vars), source build/conanrun.sh before launching the binary on Linux/macOS or run build\\conanrun.bat on Windows.
Dependency automation
This project ships a renovate.json configuration so Renovate can open PRs that bump the Conan packages listed in conanfile.py. Either install Renovate locally (npm install -g renovate or npx renovate) and run it from the repo root, or enable the Renovate bot on your GitHub/GitLab install to pick up the configuration automatically.
Languages
C++
67.8%
C
27.7%
Python
0.8%
Lua
0.8%
Yacc
0.6%
Other
1.9%