pub struct InterpretedNametable {
pub index: u8,
pub base_address: String,
pub tiles: Vec<Vec<u8>>,
pub attributes: Vec<u8>,
pub tile_palettes: Vec<Vec<u8>>,
}Expand description
A single nametable (32x30 tiles + 64-byte attribute table).
Fields§
§index: u8Nametable index (0-3)
base_address: StringBase address in PPU memory ($2000, $2400, $2800, $2C00)
tiles: Vec<Vec<u8>>32x30 = 960 tile indices
attributes: Vec<u8>8x8 = 64 attribute bytes (each controls 4x4 tile area)
tile_palettes: Vec<Vec<u8>>Per-tile palette indices (derived from attribute table)
Implementations§
Trait Implementations§
Source§impl Clone for InterpretedNametable
impl Clone for InterpretedNametable
Source§fn clone(&self) -> InterpretedNametable
fn clone(&self) -> InterpretedNametable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterpretedNametable
impl Debug for InterpretedNametable
Auto Trait Implementations§
impl Freeze for InterpretedNametable
impl RefUnwindSafe for InterpretedNametable
impl Send for InterpretedNametable
impl Sync for InterpretedNametable
impl Unpin for InterpretedNametable
impl UnsafeUnpin for InterpretedNametable
impl UnwindSafe for InterpretedNametable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more