[−][src]Function macroquad::draw_texture_rec
pub fn draw_texture_rec(
texture: Texture2D,
x: f32,
y: f32,
w: f32,
h: f32,
sx: f32,
sy: f32,
sw: f32,
sh: f32,
color: Color
)
Draw texture to x y w h position on the screen, using sx sy sw sh as a texture coordinates. Good use example: drawing an image from texture atlas.
TODO: maybe introduce Rect type?