Template project for developing SDL applications.
This project uses the GPU API introduced with SDL3+, and relies on shadercross to compile shaders at runtime. Currently, it is waiting for shadercross to be fully released. It should only work on Windows for now. However, if you replace shadercross folder with the appropriate version macOS or Linux, the project should work on those platforms also as well. You can get the binaries for shadercross from action artifacts
This project makes use of CMake Presets to simplify the process of configuring the project.
To build the project, please make sure you have vcpkg
installed and properly set up at least with the VCPKG_ROOT environment variable pointing
to the right place.
cmake --list-presets=allcmake --preset=<configurePreset-name>cmake --build --preset=<buildPreset-name>ctest --preset=<testPreset-name>-
Sourcing the Environment
-
If you're building with Ninja and the Visual C++ toolset on Windows, set the environment before CMake is called to generate the build system. You can do it by calling vcvarsall.bat with the
architectureargument./path/to/vcvarsall.bat x64
-