Struct amethyst_renderer::Sprite [−][src]
A description of a frame in a sprite sheet.
These should be in normalized coordinates:
- X axis: 0.0 is the left side and 1.0 is the right side.
- Y axis: 0.0 is the top and 1.0 is the bottom.
Fields
left: f32
Normalized left x coordinate
right: f32
Normalized right x coordinate
top: f32
Normalized top y coordinate
bottom: f32
Normalized bottom y coordinate
Trait Implementations
impl Clone for Sprite[src]
impl Clone for Spritefn clone(&self) -> Sprite[src]
fn clone(&self) -> SpriteReturns 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 Sprite[src]
impl Debug for Spritefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Sprite[src]
impl PartialEq for Spritefn eq(&self, other: &Sprite) -> bool[src]
fn eq(&self, other: &Sprite) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Sprite) -> bool[src]
fn ne(&self, other: &Sprite) -> boolThis method tests for !=.
impl From<((f32, f32), (f32, f32))> for Sprite[src]
impl From<((f32, f32), (f32, f32))> for Spritefn from(((left, right), (top, bottom)): ((f32, f32), (f32, f32))) -> Self[src]
fn from(((left, right), (top, bottom)): ((f32, f32), (f32, f32))) -> SelfPerforms the conversion.
impl From<[f32; 4]> for Sprite[src]
impl From<[f32; 4]> for Sprite