Not-Nik / raylib-zig

Manually tweaked, auto-generated raylib bindings for zig. https://github.com/raysan5/raylib
MIT License
473 stars 101 forks source link

Expose access to Raylibs compile-time config flags #28

Closed AlxHnr closed 1 year ago

AlxHnr commented 1 year ago

The default CMake build allows configuring compile-time library flags for Raylib. An example use case would be disabling the default screenshot button (F12) so one can use this key for something else. It would be great if there would be a way to pass in a Zig config object when setting up the build.

Not-Nik commented 1 year ago

This can't be done currently because this binding uses the src/build.zig file in the main raylib repository to build raylib. You could create a PR there to update the addRaylib function. If you do that please reopen this issue and I'll add it with the next release.