[−][src]Function kit::graphics::draw_sprite
pub fn draw_sprite(ctx: &mut Ctx, sprite: Sprite, pos: V2, scale: f32)
This draw command is a special alias for draw_quad
with some extra
utility for treating the associated image like a spritesheet. Define
a Sprite
to describe the zone within the image that will be drawn.
Use draw_image
instead if you just want to draw the whole image.