gameboy_core 0.3.3

core library to be used for Gameboy emulation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use bitflags::bitflags;

bitflags! {
    pub struct BgAttributes : u8 {
        const PALETTE_NUMBER_BIT_0  = 0b0000_0001;
        const PALETTE_NUMBER_BIT_1  = 0b0000_0010;
        const PALETTE_NUMBER_BIT_2  = 0b0000_0100;
        const VRAM_BANK             = 0b0000_1000;
        const XFLIP                 = 0b0010_0000;
        const YFLIP                 = 0b0100_0000;
        const BG_PRIORITY           = 0b1000_0000;
    }
}