#[repr(C)]pub struct retro_camera_callback {
pub caps: u64,
pub width: u32,
pub height: u32,
pub start: Option<unsafe extern "C" fn() -> bool>,
pub stop: Option<unsafe extern "C" fn()>,
pub frame_raw_framebuffer: Option<unsafe extern "C" fn(*const u32, u32, u32, usize)>,
pub frame_opengl_texture: Option<unsafe extern "C" fn(u32, u32, *const f32)>,
pub initialized: Option<unsafe extern "C" fn()>,
pub deinitialized: Option<unsafe extern "C" fn()>,
}Fields§
§caps: u64Set by libretro core. Example bitmask: caps = (1 << RETRO_CAMERA_BUFFER_OPENGL_TEXTURE) | (1 << RETRO_CAMERA_BUFFER_RAW_FRAMEBUFFER).
width: u32Desired resolution for camera. Is only used as a hint.
height: u32§start: Option<unsafe extern "C" fn() -> bool>Set by frontend.
stop: Option<unsafe extern "C" fn()>§frame_raw_framebuffer: Option<unsafe extern "C" fn(*const u32, u32, u32, usize)>Set by libretro core if raw framebuffer callbacks will be used.
frame_opengl_texture: Option<unsafe extern "C" fn(u32, u32, *const f32)>Set by libretro core if OpenGL texture callbacks will be used.
initialized: Option<unsafe extern "C" fn()>Set by libretro core. Called after camera driver is initialized and ready to be started. Can be NULL, in which this callback is not called.
deinitialized: Option<unsafe extern "C" fn()>Set by libretro core. Called right before camera driver is deinitialized. Can be NULL, in which this callback is not called.
Trait Implementations§
Source§impl Clone for retro_camera_callback
impl Clone for retro_camera_callback
Source§fn clone(&self) -> retro_camera_callback
fn clone(&self) -> retro_camera_callback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for retro_camera_callback
impl Debug for retro_camera_callback
impl Copy for retro_camera_callback
Auto Trait Implementations§
impl Freeze for retro_camera_callback
impl RefUnwindSafe for retro_camera_callback
impl Send for retro_camera_callback
impl Sync for retro_camera_callback
impl Unpin for retro_camera_callback
impl UnwindSafe for retro_camera_callback
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