pub struct RetroRuntime { /* private fields */ }
Implementations§
Source§impl RetroRuntime
impl RetroRuntime
pub fn new( audio_sample: retro_audio_sample_t, audio_sample_batch: retro_audio_sample_batch_t, input_state: retro_input_state_t, video_refresh: retro_video_refresh_t, ) -> Option<RetroRuntime>
Sourcepub fn upload_audio_frame(&self, frame: &[i16]) -> usize
pub fn upload_audio_frame(&self, frame: &[i16]) -> usize
Sends audio data to the libretro
frontend.
Sourcepub fn upload_audio_sample(&self, left: i16, right: i16)
pub fn upload_audio_sample(&self, left: i16, right: i16)
Sends audio data to the libretro
frontend.
Sourcepub fn upload_video_frame(
&self,
frame: &[u8],
width: u32,
height: u32,
pitch: usize,
)
pub fn upload_video_frame( &self, frame: &[u8], width: u32, height: u32, pitch: usize, )
Sends video data to the libretro
frontend.
Returns true if the specified button is pressed, false otherwise.
Auto Trait Implementations§
impl Freeze for RetroRuntime
impl RefUnwindSafe for RetroRuntime
impl Send for RetroRuntime
impl Sync for RetroRuntime
impl Unpin for RetroRuntime
impl UnwindSafe for RetroRuntime
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