Commit Graph

152 Commits

Author SHA1 Message Date
Feoramund
92005ba1a6 raylib: Refer to Odin-style enum over original C enum
Fixes #4865
2025-06-23 09:20:09 -04:00
Jeroen van Rijn
4d3593afc9 Update rlgl.LoadFramebuffer signature to match raylib 5.5 change 2025-05-26 21:50:13 +02:00
Dove
3c8cdf822f add 3 missing functions in vendor:raylib/rlgl 2025-05-11 04:03:51 +08:00
Jeroen van Rijn
ddedddc16d Get rid of duplicate math.signbit in favor of math.sign_bit 2025-04-15 16:17:02 +02:00
Dan Korostelev
f57048f862 fix raylib.CameraMoveRight signature 2025-01-24 01:13:53 +01:00
LineuVale
21e4888934 Fix raylib DrawRectangleRoundedLines 2025-01-18 18:22:16 -03:00
Laytan Laats
bf0e6eaf60 vendor/raylib: fix SetVertexAttribute definition
Fixes #4596
2025-01-05 19:21:39 +01:00
Laytan Laats
5957ff3699 vendor/raylib: fix Vector3Unproject wrong assignment
Fixes #4646
2025-01-05 13:45:01 +01:00
Karl Zylinski
dc1b75b6c3 Added WASM libs for raylib and raygui. Added them to the foreign import blocks, with optional ways to override them. These overrides can be used to use alterantive libs when using for example emscripten. 2025-01-01 22:26:11 +01:00
gingerBill
db1b67daba Merge pull request #4558 from thebigtoona/vendor/raylib-add-rcamera-module-bindings
add bindings for rCamera module in vendor/raylib/raylib.odin
2024-12-11 12:32:55 +00:00
Laytan Laats
402f8dd576 raylib/rlgl: fix foreign imports after update to 5.5 2024-12-06 18:54:48 +01:00
Tina Colvin
52a7a3e5fc change camera defines to constants 2024-12-04 16:44:00 -07:00
Tina Colvin
dc0e189e32 add bindings for rCamera module in vendor/raylib/raylib.odin 2024-12-04 11:49:24 -07:00
Laytan Laats
ef3d51fad2 vendor/raylib: revert removal of arm64 raygui binaries and fix import paths 2024-11-26 18:59:51 +01:00
Jeroen van Rijn
d315d357ca Add aliases for Is*Ready -> Is*Valid 2024-11-25 20:18:53 +01:00
lxmcf
29839ea9e2 Resolve indentation issues 2024-11-25 21:09:10 +11:00
Alex Macafee
6ebea39b3e Add missing trailing commas 2024-11-25 19:50:34 +11:00
lxmcf
b76781015b Update vendor:raylib to raylib 5.5 2024-11-25 19:37:43 +11:00
nickk-dv
c2dd15b5d3 fix LoadRandomSequence binding in vendor raylib 2024-11-06 22:39:48 +02:00
Barinzaya
30cf3ed02f Fixed raymath not applying matrix translations.
Translation matrices use the w components of the matrix to apply the
transform, and thus only work when the w component is 1. In the
original raymath implementation, the multiplication is done manually
and adds the translation components directly to the result, as if w is
1, but in the Odin binding this is done with a matrix multiplication.
However, the w component is set to 0 instead of 1, resulting in the
translation not being applied.
2024-10-31 13:37:43 -04:00
Stefan Stefanov
f112c27f7d rlgl: Add EnableColorBlend() 2024-10-12 20:01:27 +03:00
Laytan Laats
152479052e va_list fixes for raylib & stb sprintf 2024-09-29 11:45:57 +02:00
Laytan
eef4dffa12 Merge pull request #4134 from karl-zylinski/fix-raylib-LoadImageAnim-binding
Fix binding: Make rl.LoadImageAnim take a pointer instead of a multi-pointer.
2024-08-24 22:56:49 +02:00
Karl Zylinski
25e8a6353d Fix comment indentation. 2024-08-24 22:02:17 +02:00
Karl Zylinski
574a5015d6 Make rl.LoadImageAnim take a pointer instead of a multipointer. The param frames is just for returning an int, it's not for passing a multipointer into the proc. 2024-08-24 22:00:29 +02:00
gingerBill
0e71e93b22 Remove unused import 2024-08-24 14:51:28 +01:00
gingerBill
61b3af5b08 MemFree as a procedure group for both rawptr and cstring 2024-08-24 14:51:05 +01:00
gingerBill
19b95349a6 Use fmt.caprintf directly 2024-08-24 14:47:33 +01:00
gingerBill
eb799393d5 Fix -vet-tabs issues 2024-08-24 13:56:41 +01:00
Jason Olson
d00057c803 Add missing trailing comma 2024-08-17 13:23:42 -07:00
Jason Olson
acfd9dcd1b Restores vertical text alignment broken after 4.0 migration
A series of changes between raygui 3.6 and 4.0 were that various text box
properties were moved from the text box specific properties up into the
extended default control properties. This change corrects the various
property enums to match the raygui 4.0 API.

One additional aspect of this change was rolling back a previous commit
made to this vendor file that changed the signature of GuiSetStyle and
GuiGetStyle from using a c.int as property value to a more strongly-defined
GuiControlProperty enum. Unfortunately, this breaks the raygui API by
disallowing the use of various control-specific extended properties due to
how the enums are built.
2024-08-17 12:35:50 -07:00
Alex Macafee
1f2ab84e82 Use GuiControlProperty instead of c.int 2024-07-31 19:08:08 +10:00
Alex Macafee
92831d7ca3 Remove GuiStyleProp 2024-07-31 18:58:43 +10:00
Alex Macafee
f33b4ecd3e Update Raygui Style set/get functions 2024-07-31 18:48:16 +10:00
gingerBill
df56655ab1 Fix formatting inconsistencies 2024-07-16 14:03:02 +01:00
gingerBill
6702f07762 rawptr -> cstring 2024-07-16 14:02:07 +01:00
gingerBill
8642d719f0 Imply #no_capture to all variadic parameters 2024-07-14 12:19:47 +01:00
gingerBill
c7bd954752 Add more uses of #no_capture 2024-07-14 11:56:04 +01:00
gingerBill
a67df07392 Merge pull request #3742 from karl-zylinski/fix-raymath-matrix-to-float
Make rl.MatrixToFloatV do same thing in Odin as in C
2024-06-12 23:15:48 +01:00
Karl Zylinski
c7ea4ec71c rlgl: Pull in raylib and expose missing types, so it is the same as rlgl.h. This makes rlgl less stand-alone, but I left some notes in rlgl.odin how to easily make it stand-alone if one really wants to. 2024-06-12 21:13:12 +02:00
Karl Zylinski
d37b5a7b67 Make rl.MatrixToFloatV transpose the matrix before transmuting it to [16]f32, so it does the same thing as the raymath version implemented in C. 2024-06-12 19:54:14 +02:00
gingerBill
cb45aa58fd Merge pull request #3731 from karl-zylinski/rlgl-subpackage
Move rlgl to vendor:raylib/rlgl
2024-06-12 11:51:16 +01:00
Karl Zylinski
1a22f82f94 Changed rl.SetShaderValue etc to take a c.int like in original raylib.h. You should be able to use other values than the ShaderLocationIndex enum, that enum is only for build in things in raylib. Added #any_int on those procs so you can pass both int and also a ShaderLocationIndex. 2024-06-11 18:03:20 +02:00
Karl Zylinski
c9e732d141 rlgl.RLGL_VERSION -> rlgl.VERSION 2024-06-11 08:59:30 +02:00
Karl Zylinski
d2cd96c3c8 Made rlgl.odin work as a subpackage of raylib. So now you import vendor:raylib/rlgl. Instead of rl.rlBegin(rl.RL_TRIANGLES) you now type rlgl.Begin(rlgl.TRIANGLES). 2024-06-11 08:46:44 +02:00
Karl Zylinski
34af2bb8ad Moved rlgl.odin to subpackage 'raylib/rlgl' 2024-06-11 08:34:45 +02:00
gingerBill
ff37a7435c Add parentheses around the foreign import paths 2024-06-06 21:03:35 +01:00
gingerBill
3b7100f8e5 raygui: change c.int to their correct enum types 2024-06-04 16:17:49 +01:00
gingerBill
11b1a48bf0 Fix extra_linker_flags for raylib on windows 2024-06-04 15:54:57 +01:00
gingerBill
72ce111a95 Keep -vet happy 2024-06-04 15:51:19 +01:00