Update to 4.5-dev
This commit is contained in:
parent
63ea851d66
commit
1e06706bff
9 changed files with 50 additions and 47 deletions
15
README.md
15
README.md
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
Manually tweaked, auto generated [raylib](https://github.com/raysan5/raylib) bindings for zig.
|
||||
|
||||
Bindings tested on raylib version 4.2.0 and Zig 0.9.1
|
||||
Bindings tested on raylib version 4.5.0-dev and Zig 0.10.1
|
||||
|
||||
Thanks to @jessrud, @mbcrocci, @franciscod, @Gertkeno, @alanoliveira, @sacredbirdman, @rcorre and @Ivan-Velickovic for their contributions to this binding.
|
||||
Thanks to @jessrud, @mbcrocci, @franciscod, @AlxHnr, @Gertkeno, @Ivan-Velickovic, @alanoliveira, @rcorre and @sacredbirdman for their contributions to this binding.
|
||||
|
||||
The binding currently only supports a subset of raylib. For more information read [here](#technical-restrictions).
|
||||
|
||||
|
|
@ -56,25 +56,22 @@ pub fn main() anyerror!void {
|
|||
|
||||
## Technical restrictions
|
||||
|
||||
Due to zig being a relatively new language it does [not have full C ABI support](https://github.com/ziglang/zig/issues/1481) at the moment. For use that mainly means we
|
||||
can't use any functions that return structs that are less than 16 bytes large.
|
||||
Due to zig being a relatively new language it does [not have full C ABI support](https://github.com/ziglang/zig/issues/1481) at the moment. For use that mainly means we can't use any functions that return structs that are less than 16 bytes large.
|
||||
|
||||
## Building the examples
|
||||
|
||||
To build all available examples simply `zig build examples`. To list available examples run `zig build --help`. If you want to run and examples, say `basic_window`
|
||||
run `zig build basic_window`
|
||||
To build all available examples simply `zig build examples`. To list available examples run `zig build --help`. If you want to run an example, say `basic_window` run `zig build basic_window`
|
||||
|
||||
## Building and using
|
||||
|
||||
+ (Optional) Install raylib
|
||||
+ Execute `projectSetup.sh project_name`, this will create a folder with the name specified
|
||||
+ Execute `project_setup.sh project_name`, this will create a folder with the name specified
|
||||
+ You can copy that folder anywhere you want and edit the source
|
||||
+ Run `zig build run` at any time to test your project
|
||||
|
||||
### When is the binding updated?
|
||||
|
||||
I plan on updating it every mayor release (2.5, 3.0, etc.). Keep in mind these are technically header files, so any implementation stuff should be updatable with some
|
||||
hacks on your side.
|
||||
I plan on updating it every mayor release (2.5, 3.0, etc.). Keep in mind these are technically header files, so any implementation stuff should be updatable with some hacks on your side.
|
||||
|
||||
### What's to be done?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue