spriteforge/examples/raylib_cpp17
2026-08-16 03:57:13 +03:00
..
main.cpp Build SpriteForge asset studio and pull GPU relay 2026-08-16 03:57:13 +03:00
README.md Build SpriteForge asset studio and pull GPU relay 2026-08-16 03:57:13 +03:00

raylib C++17 example

This is isolated from every consuming game and renders into a 480x270 CPU framebuffer before one nearest-neighbour raylib blit.

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:

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.