[−][src]Struct retro_rs::Emulator
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]
&self,
mr: MemoryRegion,
start: usize
) -> Result<&mut [u8], RetroRsError>
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]
&self,
x: usize,
y: usize
) -> Result<(u8, u8, u8), RetroRsError>
pub fn for_each_pixel(
&self,
f: impl FnMut(usize, usize, u8, u8, u8)
) -> Result<(), RetroRsError>
[src]
&self,
f: impl FnMut(usize, usize, u8, u8, u8)
) -> Result<(), RetroRsError>
pub fn copy_framebuffer_rgb888(
&self,
slice: &mut [u8]
) -> Result<(), RetroRsError>
[src]
&self,
slice: &mut [u8]
) -> Result<(), RetroRsError>
pub fn copy_framebuffer_rgb332(
&self,
slice: &mut [u8]
) -> Result<(), RetroRsError>
[src]
&self,
slice: &mut [u8]
) -> Result<(), RetroRsError>
pub fn copy_framebuffer_argb32(
&self,
slice: &mut [u32]
) -> Result<(), RetroRsError>
[src]
&self,
slice: &mut [u32]
) -> Result<(), RetroRsError>
pub fn copy_framebuffer_rgba32(
&self,
slice: &mut [u32]
) -> Result<(), RetroRsError>
[src]
&self,
slice: &mut [u32]
) -> Result<(), RetroRsError>
Trait Implementations
impl Drop for Emulator
[src]
impl FramebufferToImageBuffer for Emulator
[src]
fn create_imagebuffer(
&self
) -> Result<ImageBuffer<Rgb<u8>, Vec<u8>>, RetroRsError>
[src]
&self
) -> Result<ImageBuffer<Rgb<u8>, Vec<u8>>, RetroRsError>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,