pub struct Nes { /* private fields */ }
Implementations
sourceimpl Nes
impl Nes
pub fn new(sample_freq: f32) -> Self
pub fn load_rom(&mut self, buffer: &[u8])
pub fn step_frame(&mut self)
pub fn reset(&mut self)
pub fn image_buffer(&self) -> *const u8
pub fn audio_buffer(&self) -> *const f32
pub fn audio_buffer_len(&self) -> usize
pub fn colors(&self) -> *const u32
pub fn palettes(&self) -> *const u8
pub fn chr_bank(&self, index: usize) -> *const u8
pub fn nametable_bank(&self, index: usize) -> *const u8
pub fn object_attribute_memory(&self) -> *const u8
pub fn tall_sprites_enabled(&self) -> bool
pub fn background_chr_bank(&self) -> usize
pub fn set_sample_freq(&mut self, sample_freq: f32)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Nes
impl !Send for Nes
impl !Sync for Nes
impl Unpin for Nes
impl !UnwindSafe for Nes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more