pub enum PpuRegion {
Ntsc,
Pal,
Dendy,
}Expand description
Region governs the size of the post-render-to-pre-render scanline span.
Variants§
Ntsc
NTSC (and Famicom). 262 scanlines per frame, pre-render = scanline 261.
Pal
PAL. 312 scanlines per frame, pre-render = scanline 311.
Dendy
Dendy (Russian PAL famiclone). 312 scanlines, but VBL starts at 291.
Implementations§
Source§impl PpuRegion
impl PpuRegion
Sourcepub const fn prerender_line(self) -> i16
pub const fn prerender_line(self) -> i16
Pre-render scanline number.
Sourcepub const fn last_visible_line(self) -> i16
pub const fn last_visible_line(self) -> i16
Last visible scanline (always 239).
Sourcepub const fn vblank_start_line(self) -> i16
pub const fn vblank_start_line(self) -> i16
Scanline at which V-blank starts (and PPUSTATUS.VBLANK is set on dot 1).
Sourcepub const fn post_reset_mask_cycles(self) -> u32
pub const fn post_reset_mask_cycles(self) -> u32
Number of CPU cycles $2000/$2001/$2005/$2006 writes are
ignored after a power-on / reset. Per nesdev wiki:
NTSC ≈ 29,658; PAL ≈ 33,132.
Trait Implementations§
impl Copy for PpuRegion
impl Eq for PpuRegion
impl StructuralPartialEq for PpuRegion
Auto Trait Implementations§
impl Freeze for PpuRegion
impl RefUnwindSafe for PpuRegion
impl Send for PpuRegion
impl Sync for PpuRegion
impl Unpin for PpuRegion
impl UnsafeUnpin for PpuRegion
impl UnwindSafe for PpuRegion
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