Add scope section in readme

This commit is contained in:
Not-Nik 2020-05-22 22:11:28 +10:00
parent f545110e62
commit 4bba1b08d3
No known key found for this signature in database
GPG Key ID: 08BB71E672DB3BFD

View File

@ -4,3 +4,7 @@ Bindings tested on raylib version 3.0
## Workaround
On this branch I will try to wokraround the [technical restrictions](https://github.com/Not-Nik/raylib-zig#technical-restrictions) the normal binding has. May cause severe bugs, terms of the [license](https://github.com/Not-Nik/raylib-zig/blob/master/LICENSE) apply.
### Scope
What is possible at the moment is passing arguments despite zigs C ABI issues. We do that by passing a pointer to a wrapper function which is implemented in C and then calls the original function. Back in zig we wrap the pointer function so they can be used without addresses.
Wrapping return values is not possible at the moment as far as I'm concerned. If you do come up with a solution, feel free to submit a pull request.