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(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§
source§impl PartialEq for Camera
impl PartialEq for Camera
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)