Skip to content

raylib.DrawTexture

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a texture

Parameters

Parameter Default Value Note
texture
posX 0
posY 0
tint WHITE

Return value

None.

Notes

Example

tex = raylib.LoadTexture("sprite.png")
raylib.BeginDrawing
  raylib.ClearBackground raylib.BLACK
  raylib.DrawTexture tex, 100, 80, raylib.WHITE
raylib.EndDrawing
raylib.UnloadTexture tex

Clone this wiki locally