#DrawTextureRec() problem

17 messages · Page 1 of 1 (latest)

terse dragon
#

What language is this?

vocal spire
terse dragon
#

Then your syntax is wrong

#

Vector2() is incorrect

#

You should use:
(Vector2) { x, y }

vocal spire
#

wait

terse dragon
#

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

vocal spire
#

no i changed still have that error

terse dragon
#

OK, that was just the most obvious issue I could see

#

Open raylib.h and see what DrawTextureRec actually has for parameters

vocal spire
#

RLAPI void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint);

terse dragon
#

I can take a deeper look later

vocal spire
vocal spire
#

i sloved

#
DrawTextureRec( red_crystal.tex , b, a, WHITE);