33 Commits

Author SHA1 Message Date
Mohanavel S K
efb7b736db
Adding support for raygui (#95)
* 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>
2024-05-31 19:24:05 +02:00
Nikolas
ae751ce82e
Bump to Zig 0.12/raylib 5.1-dev (#81)
* 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
2024-04-28 23:46:51 +02:00
Not-Nik
9600e2108a
Rename library files 2024-04-14 22:20:30 +02:00
Not-Nik
ee7593d5ef
Add rlgl binding (#77) 2024-04-14 22:14:49 +02:00
Locria Cyber
528bcf29c5
fix const 2023-12-28 15:04:26 +00:00
Locria Cyber
37ddb70f93
Update zig functions to raylib 5.0 2023-12-28 14:59:48 +00:00
vent
4dbbea186e Clean up generate_functions.py
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.
2023-09-11 15:14:59 +01:00
Not-Nik
cd66693011
Use slice length instead of asking for it from the callee on some functions (#50) 2023-08-18 00:58:13 +02:00
Not-Nik
edbd73e6be
Bump to Zig 0.11/raylib 4.6-dev 2023-07-21 17:04:56 +02:00
Not-Nik
e25a3e070a
Image member functions 2023-07-20 17:58:29 +02:00
Not-Nik
e13c5bf521
Compression/Encoding functions now with proper slices + correct casting for lens 2023-07-20 16:33:37 +02:00
Not-Nik
f09c38381b
Use correct zero-terminated type for strings (#46) 2023-07-19 19:36:21 +02:00
Not-Nik
66b7a087c3
More work on slices 2023-07-18 21:43:18 +02:00
Not-Nik
c08e5f51c2
Fix issues with slices in font loading functions (#47) 2023-07-18 12:20:01 +02:00
Not-Nik
052ab7b75b
Convert some more enums 2023-07-11 19:14:05 +02:00
Not-Nik
3f046d9db7
Convert return values 2023-07-11 18:58:07 +02:00
Not-Nik
8a2cd7dce2
Convert WindowState flags again, this time with a non-exaustive enum (#43) 2023-07-10 22:51:13 +02:00
Not-Nik
e29e012981
Map C pointers to Zig and functions names use Zig naming conventions 2023-07-10 22:22:37 +02:00
Not-Nik
642ca0513f
Remove unneccessary empty lines at the end of library files 2023-07-10 00:45:21 +02:00
Not-Nik
ffe8091bc4
Don't convert flags type to enum for WindowState (#43) 2023-07-07 02:09:23 +02:00
Not-Nik
af773c79e2
Use single library files instead of keeping function declarations in a seperate file 2023-07-07 02:03:54 +02:00
Not-Nik
1e06706bff
Update to 4.5-dev 2023-01-23 22:07:43 +01:00
Not-Nik
3a7b9f0009
Functions that receive ConfigFlags now use the enum instead of a c_uint (Fixes #25) 2022-08-23 16:10:44 +02:00
Not-Nik
723c77688c
Update to raylib 4.2/zig 9.1 2022-08-11 23:05:10 +02:00
Not-Nik
533cd5a0ad
Integrate fix into function generation script 2022-03-25 16:33:29 +01:00
Not-Nik
7d2665ebd7
Fix bug, where pointers were always marked const + update to lastest master 2022-03-18 17:48:11 +01:00
Not-Nik
c83263a8a7
Readd core examples 2022-01-08 23:51:50 +01:00
Not-Nik
fe637bb128
Some more cleanup 2022-01-08 20:58:22 +01:00
Francisco Demartino
5e275e93df fix build and basic_window example
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 :)
2022-01-08 05:37:52 -03:00
Not-Nik
bc85894992
Blatant copy rcorre's 'Fix SetShaderValue and port rlights.' 2021-07-25 02:19:01 +02:00
Not-Nik
3e6462d3af
Untested update to raylib 3.7 2021-07-20 18:04:03 +02:00
Nikolas
c26f12bc9a
Update generate_functions.py 2020-11-29 11:34:01 +01:00
Not-Nik
3969aee9cc
Functions generated automatically 2020-05-09 23:12:17 +10:00