Skip to content

emrekovanci/Template-SDL

Repository files navigation

ci

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

CMake Presets

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.

List Presets

cmake --list-presets=all

Configure & Build & Test

cmake --preset=<configurePreset-name>
cmake --build --preset=<buildPreset-name>
ctest --preset=<testPreset-name>

Development on Windows

  • 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 architecture argument.

      /path/to/vcvarsall.bat x64
  • Clang/LLVM support in Visual Studio

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •