Skip to main content

sprite_dims

Function sprite_dims 

Source
fn sprite_dims(
    s: &SpriteDraw,
    tw: f64,
    th: f64,
    anm_x: i8,
    anm_y: i8,
) -> (f64, f64, f64, f64)
Expand description

Sprite world extents: (half width in xy, height in z, left offset texels).