Closed xzripper closed 4 months ago
Google "array to pointer decay".
The C function doesn't return an array - it returns a pointer. The pointer may point to an array, or it may point to a single struct. The compiler has no way to know from that function definition.
If we know that it has indeed returned an array, then we can access the other elements with https://electronstudio.github.io/jaylib/com/raylib/Raylib.Color.html#position(long)
Thanks!
Raylib cheatsheet:
Java:
And same issue with
LoadMaterials
,LoadRandomSequence
, etc...Why Jaylib returns single object instead of array?