#[repr(C)]pub struct retro_camera_callback {
pub caps: u64,
pub width: c_uint,
pub height: c_uint,
pub start: retro_camera_start_t,
pub stop: retro_camera_stop_t,
pub frame_raw_framebuffer: retro_camera_frame_raw_framebuffer_t,
pub frame_opengl_texture: retro_camera_frame_opengl_texture_t,
pub initialized: retro_camera_lifetime_status_t,
pub deinitialized: retro_camera_lifetime_status_t,
}
Fields§
§caps: u64
Set by libretro core. Example bitmask: caps = (1 << RETRO_CAMERA_BUFFER_OPENGL_TEXTURE) | (1 << RETRO_CAMERA_BUFFER_RAW_FRAMEBUFFER).
width: c_uint
Desired resolution for camera. Is only used as a hint.
height: c_uint
§start: retro_camera_start_t
Set by frontend.
stop: retro_camera_stop_t
§frame_raw_framebuffer: retro_camera_frame_raw_framebuffer_t
Set by libretro core if raw framebuffer callbacks will be used.
frame_opengl_texture: retro_camera_frame_opengl_texture_t
Set by libretro core if OpenGL texture callbacks will be used.
initialized: retro_camera_lifetime_status_t
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: retro_camera_lifetime_status_t
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§const fn clone_from(&mut self, source: &Self)
const 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