Login
1 branch 0 tags
Ben (Desktop/Arch) Init 663dbdc 25 days ago 1 Commit
gb-rs / src / gb.rs
use crate::Buttons;

pub struct GameBoyState {
    
}

impl GameBoyState {
    pub fn new() -> Self {
        Self {

        }
    }

    pub fn emulate_for(&mut self, _seconds: f32, _buttons: Buttons) {

    }

    pub fn framebuffer(&self) -> Vec<u8> {
        let mut ret = Vec::with_capacity(160 * 144 * 4);
        for y in 0..144 {
            for x in 0..160 {
                ret.push(0xFF);
                ret.push(x ^ y);
                ret.push(0x00);
                ret.push(0xFF);
            }
        }
        ret
    }
}