Closed gamecubate closed 2 months ago
You are calling it wrongly. As the error message states loadImageColors
returns a ![]Color
, not a [*]Color
. This is because the binding knows that the function returns an array, and converts it to a slice for you. The error message is indeed a bit confusing, because the error type is not specified in the function header.
I am new at Zig and I suspect that the problem comes from me. My code won't compile and the error message is difficult to understand.
Raylib's LoadImageColors is defined like this:
In my code, I invoke it like that:
The error message I get is this:
Am I calling this wrong or have I found a bug?