Struct rust_libretro_sys::retro_camera_callback
source · [−]#[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: u64Set by libretro core. Example bitmask: caps = (1 << RETRO_CAMERA_BUFFER_OPENGL_TEXTURE) | (1 << RETRO_CAMERA_BUFFER_RAW_FRAMEBUFFER).
width: c_uintDesired resolution for camera. Is only used as a hint.
height: c_uintstart: retro_camera_start_tSet by frontend.
stop: retro_camera_stop_tframe_raw_framebuffer: retro_camera_frame_raw_framebuffer_tSet by libretro core if raw framebuffer callbacks will be used.
frame_opengl_texture: retro_camera_frame_opengl_texture_tSet by libretro core if OpenGL texture callbacks will be used.
initialized: retro_camera_lifetime_status_tSet 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_tSet by libretro core. Called right before camera driver is deinitialized. Can be NULL, in which this callback is not called.
Trait Implementations
sourceimpl Clone for retro_camera_callback
impl Clone for retro_camera_callback
sourcefn clone(&self) -> retro_camera_callback
fn clone(&self) -> retro_camera_callback
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for retro_camera_callback
impl Debug for retro_camera_callback
impl Copy for retro_camera_callback
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
