[−][src]Enum gba::io::background::BGSize
The size of a background.
The meaning changes depending on if the background is Text or Affine mode.
- In text mode, the screen base block determines where to start reading the tile arrangement data (2k). Size Zero gives one screen block of use. Size One and Two cause two of them to be used (horizontally or vertically, respectively). Size Three is four blocks used, [0,1] above and then [2,3] below. Each screen base block used is always a 32x32 tile grid.
- In affine mode, the screen base block determines where to start reading data followed by the size of data as shown. The number of tiles varies according to the size used.
Variants
Zero
- Text: 256x256px (2k)
- Affine: 128x128px (256b)
One
- Text: 512x256px (4k)
- Affine: 256x256px (1k)
Two
- Text: 256x512px (4k)
- Affine: 512x512px (4k)
Three
- Text: 512x512px (8k)
- Affine: 1024x1024px (16k)
Trait Implementations
impl Copy for BGSize
[src]
impl PartialEq<BGSize> for BGSize
[src]
fn eq(&self, other: &BGSize) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Eq for BGSize
[src]
impl Clone for BGSize
[src]
fn clone(&self) -> BGSize
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for BGSize
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
[src]
type Output = T
Should always be Self