Skip to content

raylib.DrawTextureEx

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a texture with extended parameters

Parameters

Parameter Default Value Note
texture
position [0, 0]
rotation 0
scale 1.0
tint WHITE

Return value

None.

Notes

Example

tex = raylib.LoadTexture("sprite.png")
raylib.BeginDrawing
  raylib.ClearBackground raylib.BLACK
  // Draw at [100, 80], rotated 45 degrees, scaled 2x
  raylib.DrawTextureEx tex, [100, 80], 45, 2.0, raylib.WHITE
raylib.EndDrawing
raylib.UnloadTexture tex

Clone this wiki locally