diff --git a/src/display/mod.rs b/src/display/mod.rs index c196b136..f5dd4faa 100644 --- a/src/display/mod.rs +++ b/src/display/mod.rs @@ -6,6 +6,7 @@ use video::Video; pub mod bitmap3; pub mod bitmap4; +pub mod object; pub mod tiled0; pub mod vblank; pub mod video; diff --git a/src/display/object.rs b/src/display/object.rs new file mode 100644 index 00000000..69ca4011 --- /dev/null +++ b/src/display/object.rs @@ -0,0 +1,12 @@ +#[non_exhaustive] +pub struct Object {} + +impl Object { + pub(crate) fn new() -> Self { + Object {} + } + + pub fn enable(&mut self) {} + + pub fn disable(&mut self) {} +} diff --git a/src/display/tiled0.rs b/src/display/tiled0.rs index 8ed36511..3ba0e070 100644 --- a/src/display/tiled0.rs +++ b/src/display/tiled0.rs @@ -3,7 +3,8 @@ use core::convert::TryInto; use crate::memory_mapped::MemoryMapped1DArray; use super::{ - set_graphics_mode, set_graphics_settings, DisplayMode, GraphicsSettings, DISPLAY_CONTROL, + object::Object, set_graphics_mode, set_graphics_settings, DisplayMode, GraphicsSettings, + DISPLAY_CONTROL, }; const PALETTE_BACKGROUND: MemoryMapped1DArray = @@ -101,6 +102,7 @@ pub struct Tiled0 { pub background_1: Background, pub background_2: Background, pub background_3: Background, + pub object: Object, } impl Tiled0 { @@ -112,6 +114,7 @@ impl Tiled0 { background_1: Background { layer: 1 }, background_2: Background { layer: 2 }, background_3: Background { layer: 3 }, + object: Object::new(), } }