[][src]Struct rubidium::VideoMode

#[repr(transparent)]pub struct VideoMode(_);

The video modes available on the GBA.

ModeAffineLayersResTilesColorsFeatures
0No0/1/2/3256^2 to 512^210244bpp/8bppScroll, Flip
1Some0/1/2BG0/1 ^, BG2 V---
2Yes2/3128^2 to 1024^22564bpp/8bppScroll
3Yes2240x1601?RGB555-
4Yes2240x1602?4bpp-
5Yes2160x1282?RGB555-

Mode 0 is "Text" mode with all backgrounds available.

Mode 1 is a mixed mode where BG0 and BG1 work the same as Mode 0 (Text) and BG2 works like Mode 2 (Affine).

Mode 2 is "Affine" mode, with only BG2 and BG3 available.

Modes 3, 4, and 5 are "Bitmap" modes. The bitmap is controlled using the BG2 controls.

Methods

impl VideoMode[src]

pub const VideoMode0: Self[src]

pub const VideoMode1: Self[src]

pub const VideoMode2: Self[src]

pub const VideoMode3: Self[src]

pub const VideoMode4: Self[src]

pub const VideoMode5: Self[src]

Trait Implementations

impl Clone for VideoMode[src]

impl Copy for VideoMode[src]

impl Debug for VideoMode[src]

impl Default for VideoMode[src]

impl Eq for VideoMode[src]

impl PartialEq<VideoMode> for VideoMode[src]

impl StructuralEq for VideoMode[src]

impl StructuralPartialEq for VideoMode[src]

Auto Trait Implementations

impl Send for VideoMode

impl Sync for VideoMode

impl Unpin for VideoMode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.