spriteforge/examples/raylib_cpp17/README.md

26 lines
866 B
Markdown

# raylib C++17 example
This is isolated from every consuming game and renders into a 480x270 CPU
framebuffer before one nearest-neighbour raylib blit.
```powershell
python tests/make_fixture.py build/test.sfa
cmake -S . -B build -DSPRITEFORGE_BUILD_RAYLIB_EXAMPLE=ON
cmake --build build --config Release
build\Release\spriteforge_raylib_example.exe build\test.sfa
```
The example requires an already installed raylib 6 package and never modifies
the current game repository.
For use from another repository:
```powershell
pip install -e C:\Users\uuu\Documents\spriteforge
sf build assets\sprites.yaml --output build\sprites
sf codegen --build-dir build\sprites --output generated\spriteforge_assets.h
```
Add SpriteForge's `include/` and the game's `generated/` directory to include
paths. The example conditionally includes the generated header when present.