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: (u32, u32)
Dimensions of the sprite sheet.
num_frames: (u32, u32)
Number of frames per line and row.
components: u32
Number of sprite-components in the sheet.
inner_margin: u32
Margin around each frame.
layout: SpriteLayout
Layout of sprites within the sheet.
Trait Implementations
impl Debug for SpriteParameters
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for SpriteParameters
[src]
impl Clone for SpriteParameters
[src]
fn clone(&self) -> SpriteParameters
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more