Skip to main content

load_rotations

Function load_rotations 

Source
pub fn load_rotations(sprite: BlitBuffer, rotations: u16) -> Result<SpriteRef>
Expand description

Load a sprite buffer and place it onto the heap with a set amount of rotations.

Calls load_rotations_range with a range of (0.0, 360.0).

Returns an index that can be used in sprite components.