Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

draw_sprite_material

Function draw_sprite_material 

Source
pub fn draw_sprite_material(
    x: i16,
    y: i16,
    w: u16,
    h: u16,
    uv: (u8, u8),
    material: TextureMaterial,
)
👎Deprecated:

use gpu.set_draw_mode(material) and gpu.draw(&Sprite::with_material(..))

Expand description

Draw a variable-size textured sprite using a TextureMaterial.