#[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(p: *mut LocalPlayer, delta: f32)>,
pub OnRawMovement: Option<unsafe extern "C" fn(deltaX: f32, deltaY: f32, deviceIndex: c_int)>,
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_bool
§GetProjection: 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(p: *mut LocalPlayer, delta: f32)>
§OnRawMovement: Option<unsafe extern "C" fn(deltaX: f32, deltaY: f32, deviceIndex: c_int)>
§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 Camera
Trait Implementations§
impl Copy for Camera
impl Eq for Camera
impl StructuralPartialEq for Camera
Auto Trait Implementations§
impl Freeze for Camera
impl RefUnwindSafe for Camera
impl !Send for Camera
impl !Sync for Camera
impl Unpin for Camera
impl UnwindSafe for Camera
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