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 Sprite
fn clone(&self) -> Sprite
[src]
fn clone(&self) -> Sprite
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 Sprite
[src]
impl Debug for Sprite
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Sprite
[src]
impl PartialEq for Sprite
fn eq(&self, other: &Sprite) -> bool
[src]
fn eq(&self, other: &Sprite) -> bool
This 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) -> bool
This method tests for !=
.
impl From<((f32, f32), (f32, f32))> for Sprite
[src]
impl From<((f32, f32), (f32, f32))> for Sprite
fn from(((left, right), (top, bottom)): ((f32, f32), (f32, f32))) -> Self
[src]
fn from(((left, right), (top, bottom)): ((f32, f32), (f32, f32))) -> Self
Performs the conversion.
impl From<[f32; 4]> for Sprite
[src]
impl From<[f32; 4]> for Sprite