/// Get attr value for sprite size
Get attr value for sprite size
Get attr value for sprite size
pub fn size(&self) -> u16 {
        match self {
            SpriteDimensions::Size8x8 => 0,
            SpriteDimensions::Size16x8 => 0,
            SpriteDimensions::Size8x16 => 0,
            SpriteDimensions::Size16x16 => 1,
            SpriteDimensions::Size32x8 => 1,
            SpriteDimensions::Size8x32 => 1,
            SpriteDimensions::Size32x32 => 2,
            SpriteDimensions::Size32x16 => 2,
            SpriteDimensions::Size16x32 => 2,
            SpriteDimensions::Size64x64 => 3,
            SpriteDimensions::Size64x32 => 3,
            SpriteDimensions::Size32x64 => 3,
        }
    }
pub fn size ( & self ) -> u16 { match self { SpriteDimensions :: Size8x8 => 0 , SpriteDimensions :: Size16x8 => 0 , SpriteDimensions :: Size8x16 => 0 , SpriteDimensions :: Size16x16 => 1 , SpriteDimensions :: Size32x8 => 1 , SpriteDimensions :: Size8x32 => 1 , SpriteDimensions :: Size32x32 => 2 , SpriteDimensions :: Size32x16 => 2 , SpriteDimensions :: Size16x32 => 2 , SpriteDimensions :: Size64x64 => 3 , SpriteDimensions :: Size64x32 => 3 , SpriteDimensions :: Size32x64 => 3 , } }
Get attr value for sprite size
Get attr value for sprite size
&self