Skip to main content

ClipRects

Type Alias ClipRects 

Source
pub type ClipRects = HashMap<AssetId, [f32; 4]>;
Expand description

Scissor rectangle per overlay asset, [x, y, width, height] in the reference canvas the sprite was authored in. An asset absent from the table is unclipped.

Aliased Typeยง

pub struct ClipRects { /* private fields */ }