pub fn draw_sprite(
texture: TextureHandle,
position: Vec2,
tint: Color,
z_index: i32,
world_size: Vec2,
)
Expand description
Draws a sprite on the screen.
texture
- A handle to the texture to draw.position
- World position where to draw.tint
- The color tint to apply to the sprite.z_index
- The z-index of the sprite. Higher values are drawn on top of lower values.world_size
- The size of the world. Used for scaling.