Struct amethyst_renderer::Sprite[][src]

pub struct Sprite {
    pub left: f32,
    pub right: f32,
    pub top: f32,
    pub bottom: f32,
}

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

Normalized left x coordinate

Normalized right x coordinate

Normalized top y coordinate

Normalized bottom y coordinate

Trait Implementations

impl Clone for Sprite
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Sprite
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Sprite
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<((f32, f32), (f32, f32))> for Sprite
[src]

Performs the conversion.

impl From<[f32; 4]> for Sprite
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Sprite

impl Sync for Sprite