* Verify shaders are valid
* Verify images are valid
* Verify models are valid
* Verify materials are valid
* Verify textures are valid
* Verify render textures are valid
* Verify waves are valid
* Verify sounds are valid
* Verify music is valid
* Verify audio streams are valid
* Verify fonts are valid
* Update examples to handle error unions
* Updated getGamepadAxisMovement to take enum and cast return to f32
* Updated raylib-ext.zig GetGamepadAxisMovement to take enum
* modified generate_functions.py to make changes instead
* tidying
no change to behavior, just change a few things to be
more consistent with the rest
* fix enum type conversions
setMouseCursor() and setTextureWrap() both took c_int arguments;
now they take zig enums instead
* make fix_enums table-driven
hopefully this is easier to visually parse than the if-else chain
* updated build.zig and generate_functions.py to add raygui
* added raygui.h and manually coded some structs & enums in raygui prelude WIP
* ported all the structs, enums and globals to zig till raygui implementation
* imported types from raylib in raygui
* re-encoded raygui-prelude.zig. I don't know for some reason it was showing up as UTF-16 unicode text file. re-encoded it to UTF-8
* fixed imports in prelude to work properly with generated files
* updated generate_functions.py file to generate for raygui [text type error not fixed]
* simple temporary patch for mentioned text type issue
* removed unused imports from raylib in raygui
* added generated files
* Manually define raygui functions for slice arguments
* Manually define raygui functions with pointer return values
---------
Co-authored-by: Not-Nik <nik.wipper@gmx.de>
* Update to Zig 0.12.0 and raylib 5.1-dev
* More build.zig fixes for 0.12
* Get module with target and optimization
* Add examples to build step when compiling for emscripten
* Remove unused function
* Add build.* and emcc.zig to the zon paths (#83)
As per some info found through https://github.com/ziglang/zig/issues/18282,
this is apparently necessary to use this library as a dependency.
Co-authored-by: Drum Ogilvie <me@daogilvie.com>
* Update binding
This commit fixes the PEP8 warnings, with the only change to the PEP8
standard being the column limit change from 80 to 120. These warnings
were gathered with `flake8` version 6.1.0.
The complete command to see warnings was:
`flake8 --max-line-length 120 generate_functions.py`
Additionally, comments have been line wrapped in places, start of
sentences have been capitalized, and full stops have been added to
terminate sentences.
some restructuring due to the recent changes to usingnamespace.
also cleaned up some deprecated stuff from raylib 3.7.
- appended the contents of raylib-wa.zig into raylib-zig.zig
- using raylib functions requires `const rl = @import("raylib");`
(and accesing the identifiers inside rl, like `rl.InitWindow`)
only the basic_window example was updated, and it looks like it crashes
on keyboard inputs.
many thanks to @nektro :)