[][src]Struct retro_rs::Emulator

pub struct Emulator { /* fields omitted */ }

Implementations

impl Emulator[src]

pub fn create(core_path: &Path, rom_path: &Path) -> Emulator[src]

pub fn get_library(&mut self) -> &Library[src]

pub fn get_symbol<'a, T>(&'a self, symbol: &[u8]) -> Option<Symbol<'a, T>>[src]

pub fn run(&mut self, inputs: [Buttons; 2])[src]

pub fn reset(&mut self)[src]

pub fn get_video_ram_size(&self) -> usize[src]

pub fn get_system_ram_size(&self) -> usize[src]

pub fn get_save_ram_size(&self) -> usize[src]

pub fn video_ram_ref(&self) -> &[u8][src]

pub fn system_ram_ref(&self) -> &[u8][src]

pub fn system_ram_mut(&mut self) -> &mut [u8][src]

pub fn save_ram(&self) -> &[u8][src]

pub fn memory_regions(&self) -> Vec<MemoryRegion>[src]

pub fn memory_ref(&self, start: usize) -> Result<&[u8], RetroRsError>[src]

pub fn memory_ref_mut(
    &self,
    mr: MemoryRegion,
    start: usize
) -> Result<&mut [u8], RetroRsError>
[src]

pub fn pixel_format(&self) -> PixelFormat[src]

pub fn framebuffer_size(&self) -> (usize, usize)[src]

pub fn framebuffer_pitch(&self) -> usize[src]

pub fn save(&self, bytes: &mut [u8])[src]

pub fn load(&mut self, bytes: &[u8]) -> bool[src]

pub fn save_size(&self) -> usize[src]

pub fn clear_cheats(&mut self)[src]

pub fn set_cheat(&mut self, index: usize, enabled: bool, code: &str)[src]

pub fn get_pixel(
    &self,
    x: usize,
    y: usize
) -> Result<(u8, u8, u8), RetroRsError>
[src]

pub fn for_each_pixel(
    &self,
    f: impl FnMut(usize, usize, u8, u8, u8)
) -> Result<(), RetroRsError>
[src]

pub fn copy_framebuffer_rgb888(
    &self,
    slice: &mut [u8]
) -> Result<(), RetroRsError>
[src]

pub fn copy_framebuffer_rgb332(
    &self,
    slice: &mut [u8]
) -> Result<(), RetroRsError>
[src]

pub fn copy_framebuffer_argb32(
    &self,
    slice: &mut [u32]
) -> Result<(), RetroRsError>
[src]

pub fn copy_framebuffer_rgba32(
    &self,
    slice: &mut [u32]
) -> Result<(), RetroRsError>
[src]

Trait Implementations

impl Drop for Emulator[src]

impl FramebufferToImageBuffer for Emulator[src]

Auto Trait Implementations

impl RefUnwindSafe for Emulator

impl !Send for Emulator

impl !Sync for Emulator

impl Unpin for Emulator

impl UnwindSafe for Emulator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.