-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.DrawTextureEx
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw a texture with extended parameters
| Parameter | Default Value | Note |
|---|---|---|
| texture | ||
| position | [0, 0] | |
| rotation | 0 | |
| scale | 1.0 | |
| tint | WHITE |
None.
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