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]
impl Debug for SpriteParameters
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 Copy for SpriteParameters
[src]
impl Copy for SpriteParameters
impl Clone for SpriteParameters
[src]
impl Clone for SpriteParameters
fn clone(&self) -> SpriteParameters
[src]
fn clone(&self) -> SpriteParameters
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
Auto Trait Implementations
impl Send for SpriteParameters
impl Send for SpriteParameters
impl Sync for SpriteParameters
impl Sync for SpriteParameters