-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.DrawTexture
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw a texture
| Parameter | Default Value | Note |
|---|---|---|
| texture | ||
| posX | 0 | |
| posY | 0 | |
| tint | WHITE |
None.
tex = raylib.LoadTexture("sprite.png")
raylib.BeginDrawing
raylib.ClearBackground raylib.BLACK
raylib.DrawTexture tex, 100, 80, raylib.WHITE
raylib.EndDrawing
raylib.UnloadTexture tex