Struct quicksilver::graphics::Atlas [−][src]
pub struct Atlas { /* fields omitted */ }
An image atlas that allows a single image file to represent multiple individual images
It uses the libgdx / spine atlas format and groups them by name and index if applicable
Methods
impl Atlas
[src]
impl Atlas
pub fn load<'a, P: 'static + AsRef<Path>>(path: P) -> AtlasLoader
[src]
pub fn load<'a, P: 'static + AsRef<Path>>(path: P) -> AtlasLoader
Load an atlas at a given path
pub fn get(&self, name: &str) -> Option<AtlasItem>
[src]
pub fn get(&self, name: &str) -> Option<AtlasItem>
Get an image or animation with a given name
Trait Implementations
impl Clone for Atlas
[src]
impl Clone for Atlas
fn clone(&self) -> Atlas
[src]
fn clone(&self) -> Atlas
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Atlas
[src]
impl Debug for Atlas