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
gingerBill
606608c02b
Utilize foreign import constant strings for foreign imports
2024-06-04 15:49:17 +01:00
alec hodgkinson
3b632b4d90
Fixed typo in raylib documentation
2024-04-22 15:13:52 -07:00
Laytan Laats
d83532d29e
fix raygui GuiFade being renamed to GuiSetAlpha
2024-04-06 20:20:16 +02:00
gingerBill
29e5f94c2a
Add #no_broadcast procedure parameter to disallow automatic array programming broadcasting on procedure arguments
2024-03-21 11:52:48 +00:00
gingerBill
cd7137af60
Update raylib to use #row_major matrices
2024-03-19 21:16:04 +00:00
gingerBill
51d12acab3
Enforce linalg
2024-03-08 13:28:15 +00:00
Laytan Laats
3ada83a503
clean imports
2024-03-01 20:32:07 +01:00
Laytan Laats
50ded324e0
move va_list into core:c
2024-03-01 20:30:19 +01:00
Laytan Laats
6734a7096a
makes raylib and stb_rect_pack free of libc
2024-02-29 23:33:25 +01:00
gingerBill
d1174f66bc
Fix #3233
2024-02-28 13:41:54 +00:00
Karl Zylinski
cdda8f0eb9
Additional fixes for errors in Raylib bindings since Raylib 4 -> 5 upgrade.
2024-02-26 17:16:45 +01:00
Karl Zylinski
ae67f37fc1
Fix ModelAnimation in raylib.odin missing a field.
2024-02-26 13:32:16 +01:00
gingerBill
b43c1f2b5b
Merge pull request #3134 from laytan/non-universal-binaries-raylib
...
vendor/raylib: change to non-universal binaries
2024-02-19 14:18:44 +00:00
gingerBill
4ca23499fa
Add raymath procedures (with numerous deprecated attributes to suggest to use array programming)
2024-02-10 16:31:03 +00:00
Murtagy
456dd22dc4
Update raylib.odin
2024-02-05 21:38:17 +03:00
Murtagy
7bf25a4cf2
typo in comment
2024-02-03 18:43:34 +03:00
Laytan Laats
9ac619f4a2
vendor/raylib: change to non-universal binaries
...
We already have 2 different folders for the different architectures, so
this does should not have any usage impact.
Main motivation for doing this is hombrew requiring non-universal
binaries in their installation, so this is a step to getting homebrew
and vendor to play nice.
2024-01-24 20:58:14 +01:00
Colin Davidson
d0bb1fb844
bring log allocator up to date
2024-01-17 13:11:10 -08:00