Struct radiant_rs::support::SpriteParameters[][src]

pub struct SpriteParameters {
    pub dimensions: (u32, u32),
    pub num_frames: (u32, u32),
    pub components: u32,
    pub inner_margin: u32,
    pub layout: SpriteLayout,
}

Sprite parameters describe how individual sprites are positioned on a sprite sheet.

Fields

Dimensions of the sprite sheet.

Number of frames per line and row.

Number of sprite-components in the sheet.

Margin around each frame.

Layout of sprites within the sheet.

Trait Implementations

impl Debug for SpriteParameters
[src]

Formats the value using the given formatter. Read more

impl Copy for SpriteParameters
[src]

impl Clone for SpriteParameters
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations