331 Commits

Author SHA1 Message Date
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
YetAnotherCoder00
6d52ac4e13
added 2d camera mouse zoom example (#129)
* added 2d camera mouse zoom example

* correctly formatted build.zig

* removed "gl" const
2024-08-17 16:58:15 +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
201926cfd3
Update README.md formatting 2024-07-13 15:09:48 +02:00
Not-Nik
d4fb6c2e2d
Add note about defining feature macros 2024-07-13 15:09:04 +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
19db777449
Add option to build raylib as a shared library (#113) 2024-07-06 22:49:00 +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
rwzd
2e6cacd399
Modernize Installation Method (#114)
* Modernize installation method

* tiny spelling fix
2024-07-02 20:47:06 +02:00
Not-Nik
361d3962cf
Allow passing null pointers to certain rlgl functions (#112) 2024-06-30 21:03:56 +02:00
Arran Ireland
140dff9a1a
Change zig init-exe to zig init in README (#111)
Fix zig init reference in README
2024-06-26 12:47:29 +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
Dawid Jankowiak
18a7daa631
Add project setup script for Windows (#107) 2024-06-24 11:26:18 +02:00
Sebastian Keller
e09c34d64d
Update project_setup.sh to work with zig 0.13.0 (#105) 2024-06-17 22:45:49 +02:00
Not-Nik
ad994ac135
Update README.md 2024-06-17 22:42:36 +02:00
Not-Nik
9105494e68
Remove .gitmodules 2024-06-17 21:02:23 +02:00
Not-Nik
44e9b6044a
Update zig version 2024-06-17 21:01:27 +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
43d15b05c2
Add CONTRIBUTING.md 2024-06-08 12:44:06 +02:00
Nikolas
0b1d3bd4e1
Update .gitattributes 2024-06-06 11:44:13 +02:00
Nikolas
bcb7ca5e9b
Don't include raylib headers in language analysis 2024-06-06 11:41:38 +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
4d48d3c090
Pass OpenGL version to raylib dependency (#100) 2024-06-04 14:15:40 +02:00
Not-Nik
533c31321a
Fix build with raygui (#98) 2024-06-02 20:55:44 +02:00
Not-Nik
a968200aaf
Add raygui files to zon paths 2024-05-31 21:17:36 +02:00
Not-Nik
876219c600
Properly depend on raygui 2024-05-31 21:15:19 +02:00
Not-Nik
d56fc7b663
Update README.md 2024-05-31 20:39:40 +02:00
Not-Nik
674e5ada11
Use ShaderUniformDataType instead of int 2024-05-31 20:31:58 +02:00
Not-Nik
a0126d15be
BREAKING: rename raylib-math module to raymath 2024-05-31 20:27:48 +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
Sebastian Lukas
b5330624d6
Adding texture/background_scrolling example (#91)
Adding textures_background_scrolling example

Signed-off-by: Sebastian Lukas <sisasebbl@googlemail.com>
2024-05-20 20:38:22 +02:00
CosmicBagel
9abd48b147
Raylib commit bump for zig build script fix (#90)
Co-authored-by: CosmicBagel <>
2024-05-20 20:37:49 +02:00
Not-Nik
ae533ad60f
Update raylib 2024-05-15 22:42:35 +02:00
Not-Nik
3a18a355e3
Automatically fetch hash in project setup 2024-05-15 22:36:08 +02:00
CosmicBagel
28f9a051e4
LazyPath.path deprecated in zig 0.12, removed in 0.13 (#89)
LazyPath.path deprecated in zig 0.12, removed in 0.13, using b.path() instead

Co-authored-by: CosmicBagel <>
2024-05-15 22:28:24 +02:00