A test project to interact with the C and C++ compatibility of Swift for using Raylib
- C++ 64.4%
- C 35.5%
| .vscode | ||
| Sources | ||
| wasi_extra | ||
| .gitignore | ||
| .swift-version | ||
| LICENSE | ||
| Makefile | ||
| Package.swift | ||
| README.md | ||
Swift, C, and Raylib
A test project for my blog post "Testing the Swift C compatibility with Raylib".
Build
Make sure you installed:
- Swift 6.3.2
- WASM SDK for Swift
- make
To run on macOS: make run-mac
To run using WASI: make run-wasm
Update (26th of March)
Based on some cricisms over my blog post I included Dear ImGui as a dependency of this project to demonstrate how easy it is to use a C++ codebase in a Swift project.
The ImGui integration is currently not in the WASM build.