Draw a part of a texture (defined by a rectangle) with 'pro' parameters NOTE: origin is relative to destination rectangle size
None.
tex = raylib.LoadTexture("sprite.png") src = {x:0, y:0, width:64, height:64} dst = {x:100, y:100, width:128, height:128} raylib.BeginDrawing raylib.ClearBackground raylib.BLACK raylib.DrawTexturePro tex, src, dst, [0, 0], 0, raylib.WHITE raylib.EndDrawing raylib.UnloadTexture tex
There was an error while loading. Please reload this page.