#DrawTextureRec() problem
17 messages · Page 1 of 1 (latest)
c
Then your syntax is wrong
Vector2() is incorrect
You should use:
(Vector2) { x, y }
wait
And also, if the compiler says too few arguments, that is probably true...
Open raylib.h and check what you're passing
Iirc the function has a rotation parameter too
no i changed still have that error
OK, that was just the most obvious issue I could see
Open raylib.h and see what DrawTextureRec actually has for parameters
RLAPI void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint);
I can take a deeper look later
ok thanks