Skip to main content

draw_texture

Function draw_texture 

Source
pub fn draw_texture(
    texture: Texture,
    x: f32,
    y: f32,
    w: f32,
    h: f32,
    tint: Color,
)
Expand description

Draws a texture stretched to w x h with its top-left at (x, y). tint multiplies the texture color (use WHITE for none).