Struct classicube_sys::Camera
source ·
[−]#[repr(C)]pub struct Camera {
pub isThirdPerson: cc_bool,
pub GetProjection: Option<unsafe extern "C" fn(proj: *mut Matrix)>,
pub GetView: Option<unsafe extern "C" fn(view: *mut Matrix)>,
pub GetOrientation: Option<unsafe extern "C" fn() -> Vec2>,
pub GetPosition: Option<unsafe extern "C" fn(t: f32) -> Vec3>,
pub UpdateMouse: Option<unsafe extern "C" fn(delta: f64)>,
pub OnRawMovement: Option<unsafe extern "C" fn(deltaX: f32, deltaY: f32)>,
pub AcquireFocus: Option<unsafe extern "C" fn()>,
pub LoseFocus: Option<unsafe extern "C" fn()>,
pub GetPickedBlock: Option<unsafe extern "C" fn(t: *mut RayTracer)>,
pub Zoom: Option<unsafe extern "C" fn(amount: f32) -> cc_bool>,
pub next: *mut Camera,
}Fields
isThirdPerson: cc_boolGetProjection: Option<unsafe extern "C" fn(proj: *mut Matrix)>GetView: Option<unsafe extern "C" fn(view: *mut Matrix)>GetOrientation: Option<unsafe extern "C" fn() -> Vec2>GetPosition: Option<unsafe extern "C" fn(t: f32) -> Vec3>UpdateMouse: Option<unsafe extern "C" fn(delta: f64)>OnRawMovement: Option<unsafe extern "C" fn(deltaX: f32, deltaY: f32)>AcquireFocus: Option<unsafe extern "C" fn()>LoseFocus: Option<unsafe extern "C" fn()>GetPickedBlock: Option<unsafe extern "C" fn(t: *mut RayTracer)>Zoom: Option<unsafe extern "C" fn(amount: f32) -> cc_bool>next: *mut CameraTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Camera
impl UnwindSafe for Camera
Blanket Implementations
Mutably borrows from an owned value. Read more
