#[repr(u16)]pub enum VideoMode {
_0 = 0,
_1 = 1,
_2 = 2,
_3 = 3,
_4 = 4,
_5 = 5,
}
Expand description
The video mode controls how each background layer will operate.
Variants§
_0 = 0
All four background layers use text mode.
_1 = 1
BG0 and BG1 are text mode, while BG2 is affine. BG3 is unavailable.
_2 = 2
BG2 and BG3 are affine. BG0 and BG1 are unavailable.
_3 = 3
BG2 is a single full color bitmap.
_4 = 4
BG2 holds two 8bpp indexmaps, and you can flip between.
_5 = 5
BG2 holds two full color bitmaps of reduced size (only 160x128), and you can flip between.
Trait Implementations§
source§impl Ord for VideoMode
impl Ord for VideoMode
source§impl PartialOrd for VideoMode
impl PartialOrd for VideoMode
impl Copy for VideoMode
impl Eq for VideoMode
impl StructuralPartialEq for VideoMode
Auto Trait Implementations§
impl Freeze for VideoMode
impl RefUnwindSafe for VideoMode
impl Send for VideoMode
impl Sync for VideoMode
impl Unpin for VideoMode
impl UnwindSafe for VideoMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)