93 Commits

Author SHA1 Message Date
Not-Nik
7cbe2292a1
Explicitly set error types for functions that return RaylibError 2024-05-04 19:47:00 +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
Not-Nik
1aab1159da
Add testing with refAllDeclsRecursive and fix some compile errors 2024-04-14 21:48:53 +02:00
Not-Nik
42c091f514
Update pixel format enum 2024-04-14 20:58:35 +02:00
Kean
068f9e1816
fixed pointer cast that discards const qualifier (#75)
* fixed pointer cast that discards const qualifier. By removing the const from the array parameter.

* changed to [*c]const

* Revert "changed to [*c]const"

This reverts commit d76c85d71ac0639f8ff59be4017a49b510c4d09d.

---------

Co-authored-by: Not-Nik <nik.wipper@gmx.de>
2024-04-07 14:08:35 +02:00
Not-Nik
f8735a8cc7
Fix file exists in multiple modules error when including raymath (again) 2024-02-12 00:46:59 +01:00
Nikolas
ff35f839e0
Merge pull request #65 from Kaixi26/devel 2024-01-31 14:20:29 +01:00
iacore
1ca51fe8aa
apply review suggestions 2024-01-29 08:25:02 +00:00
Kaixi26
588675a3e6 fix compilation errors in zig prelude 2024-01-23 01:02:30 +00:00
seppelin
5eeb74c908 add default fontChars support 2024-01-06 21:30:14 +01:00
iacore
99b1119adb
clean up 2024-01-02 06:09:09 +00:00
iacore
ca13a424e5
fix imports 2024-01-01 16:18:21 +00:00
iacore
048bf83616
Add the copied C headers to source 2024-01-01 16:08:02 +00:00
Locria Cyber
af35245a38
update generate files 2023-12-29 00:44:37 +00:00
Locria Cyber
db9c0729a3
revert changes 2023-12-29 00:42:41 +00:00
Locria Cyber
44e53ff7d1
fix examples 2023-12-28 15:07:14 +00: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
Locria Cyber
90bb1071dc
add drawCircleLinesV 2023-12-27 15:58:57 +00:00
Locria Cyber
dfd0e4ffa8
add const to draw* API 2023-12-25 13:36:24 +00:00
Not-Nik
b74f8d02bb
Correctly define Color.pink (#58) 2023-10-11 13:44:48 +02:00
Not-Nik
00ea64faa7
Catch null pointers before trying to cast them (#49) 2023-10-03 21:23:28 +02: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
42dab04fbf
Correct @call 2023-08-14 00:18:32 +02:00
Not-Nik
79ee589441
Update to raylib head 2023-08-05 20:16:53 +02:00
Not-Nik
0d4cc3ac8c
Fix file exists in multiple modules error when including raymath 2023-08-05 20:10:10 +02:00
Not-Nik
5283eb79e3
Fix slice type 2023-07-21 21:59:16 +02:00
Not-Nik
f6323bf0fa
anyopaque fixes 2023-07-21 21:24:24 +02:00
Not-Nik
a022f39ceb
Update structs 2023-07-21 21:03:21 +02:00
Not-Nik
5050957b56
Correctly call image functions from members 2023-07-21 18:03:55 +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
d80ffdf645
Minor updates to member functions 2023-07-20 17:10:06 +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
f50189fdd0
More defer 2023-07-20 16:23:41 +02:00
Not-Nik
183cc437ac
Font & unloading member functions 2023-07-20 16:13:59 +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
02a3dbba61
Update some types 2023-07-11 19:18:53 +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
9e908b3925
Color member functions 2023-07-11 15:50:31 +02:00
Not-Nik
2578dceb42
Texture member functions 2023-07-11 15:39:11 +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
7e95ad81b5
Update enum/const name style 2023-07-10 22:43:01 +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