127 Commits

Author SHA1 Message Date
Андрей Краевский
ff775330c7
Update raylib to version 5.5 (#174) 2024-11-25 14:18:03 +01:00
mega-dean
c191e12e7c
make some files not executable (#160) 2024-10-18 14:22:28 +03:00
Not-Nik
a2397363aa
meta: Bump raylib/raygui 2024-10-13 14:12:39 +02:00
Not-Nik
01b6e1a2e2
raylib/raymath/rlgl/raygui: Expose cdef (#152) 2024-10-02 22:34:26 +02:00
Not-Nik
855ab9cd70
raygui: Revert property parameters back to i32s (#131) 2024-10-02 22:19:20 +02:00
Not-Nik
a087398387
rlgl: Add constants (#156) 2024-10-02 22:00:38 +02:00
johan0A
87e18ab398
Make fontChars optional in loadFontFromMemory (#153)
Fixed loadFontFromMemory and Font.fromMemory not allowing null for fontChars
2024-09-28 14:54:02 +02:00
Not-Nik
e3e3a7518a
Bump to raylib 5.5-dev 2024-08-31 11:20:45 +02:00
Not-Nik
58df62807f
Add drawTextCodepoints (#135) 2024-08-17 17:22:57 +02:00
Not-Nik
4b2d9b305f
Allow passing points for drawing as const slices (#127) (2/2) 2024-08-17 17:22:57 +02:00
Not-Nik
6cc4aec3c4
Allow passing points for drawing as const slices (#127) 2024-08-04 23:33:48 +02:00
Not-Nik
da1da5a66c
Allow passing null pointers to more rlgl functions (#128) 2024-08-04 23:25:47 +02:00
Not-Nik
a7f25c615b
Use slice length for spline and image kernel functions 2024-07-28 00:11:56 +02:00
M. Bamberg
155a95feeb
Add shebang line to python script and make it executable (#124) 2024-07-27 23:28:09 +02:00
Not-Nik
c96627f91a
Use proper enums for GuiGetStyle/GuiSetStyle (#125) 2024-07-27 23:27:00 +02:00
pancelor
6efc03f6fe
fix setMouseCursor() and setTextureWrap() enum types (#126)
* 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
2024-07-27 23:19:14 +02:00
M. Bamberg
85e07d7db5
Make fontChars parameter optional in Font.initEx to match rl.loadFontEx (#123) 2024-07-22 10:08:44 +02:00
Not-Nik
a03b65a76c
Move from sentinel-terminated slices to sentinel-terminated pointers ([:0] -> [*:0]) 2024-07-09 21:59:38 +02:00
Not-Nik
fe34354be0
Seperate error union 2024-07-06 22:36:29 +02:00
Dumb Bird
2d8e856009
Make use of Zigs doc comments (#116)
* copy over inline comments

* remove trailing comma

* add more doc comments

* implement requested changes

* Newly generated file

* Manually add docstrings to raygui functions in prelude

* Fix generator script

---------

Co-authored-by: Not-Nik <nik.wipper@gmx.de>
2024-07-03 21:32:56 +02:00
pancelor
e98afb5252
Fix typo: constrast -> contrast (#115) 2024-07-02 21:15:10 +02:00
Not-Nik
361d3962cf
Allow passing null pointers to certain rlgl functions (#112) 2024-06-30 21:03:56 +02:00
Not-Nik
1dab3352b3
Allow not specifiying codepoints in loadFontEx (#110) 2024-06-25 20:01:25 +02:00
Not-Nik
fb11a4e1c8
Make panel text optional (#109) 2024-06-25 19:49:57 +02:00
Not-Nik
c5ce02c084
Warn users when calling textFormat with a non-tuple type 2024-06-17 21:00:42 +02:00
Not-Nik
c0d07991d1
Merge raymath and rlgl into main raylib module 2024-06-05 22:56:07 +02:00
oneearedrabbit
171c2e100c
Update raylib to the latest version (#101)
* Update raylib to the latest

* Update API

---------

Co-authored-by: Not-Nik <nik.wipper@gmx.de>
2024-06-05 22:01:32 +02:00
Not-Nik
674e5ada11
Use ShaderUniformDataType instead of int 2024-05-31 20:31:58 +02:00
Not-Nik
6ff9f0a45b
Use packed struct for ConfigFlags (#93) 2024-05-31 20:23:04 +02:00
Not-Nik
98ced86523
Use more enums instead of ints 2024-05-31 19:52:06 +02:00
Not-Nik
0378699fcd
Remove unneccessary escape for type member 2024-05-31 19:34:56 +02:00
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
Mike Will
39909cdcb3
Add an implementation of Zig's Allocator interface (#94) 2024-05-21 16:12:20 +02:00
Not-Nik
ae533ad60f
Update raylib 2024-05-15 22:42:35 +02:00
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