agb/agb/examples/test_logo.rs
2022-05-03 22:29:51 +01:00

18 lines
386 B
Rust

#![no_std]
#![no_main]
use agb::display::{example_logo, tiled::RegularBackgroundSize};
#[agb::entry]
fn main(mut gba: agb::Gba) -> ! {
let (gfx, mut vram) = gba.display.video.tiled0();
let mut map = gfx.background(
agb::display::Priority::P0,
RegularBackgroundSize::Background32x32,
);
example_logo::display_logo(&mut map, &mut vram);
loop {}
}