Struct classicube_sys::Model

source ·
#[repr(C)]
pub struct Model {
Show 27 fields pub name: *const c_char, pub vertices: *mut ModelVertex, pub defaultTex: *mut ModelTex, pub MakeParts: Option<unsafe extern "C" fn()>, pub Draw: Option<unsafe extern "C" fn(entity: *mut Entity)>, pub GetNameY: Option<unsafe extern "C" fn(entity: *mut Entity) -> f32>, pub GetEyeY: Option<unsafe extern "C" fn(entity: *mut Entity) -> f32>, pub GetCollisionSize: Option<unsafe extern "C" fn(entity: *mut Entity)>, pub GetPickingBounds: Option<unsafe extern "C" fn(entity: *mut Entity)>, pub index: c_int, pub armX: cc_uint8, pub armY: cc_uint8, pub flags: cc_uint8, pub bobbing: cc_bool, pub usesSkin: cc_bool, pub calcHumanAnims: cc_bool, pub usesHumanSkin: cc_bool, pub pushes: cc_bool, pub gravity: f32, pub drag: Vec3, pub groundFriction: Vec3, pub GetTransform: Option<unsafe extern "C" fn(entity: *mut Entity, pos: Vec3, m: *mut Matrix)>, pub DrawArm: Option<unsafe extern "C" fn(entity: *mut Entity)>, pub maxScale: f32, pub shadowScale: f32, pub maxVertices: c_int, pub next: *mut Model,
}

Fields§

§name: *const c_char§vertices: *mut ModelVertex§defaultTex: *mut ModelTex§MakeParts: Option<unsafe extern "C" fn()>§Draw: Option<unsafe extern "C" fn(entity: *mut Entity)>§GetNameY: Option<unsafe extern "C" fn(entity: *mut Entity) -> f32>§GetEyeY: Option<unsafe extern "C" fn(entity: *mut Entity) -> f32>§GetCollisionSize: Option<unsafe extern "C" fn(entity: *mut Entity)>§GetPickingBounds: Option<unsafe extern "C" fn(entity: *mut Entity)>§index: c_int§armX: cc_uint8§armY: cc_uint8§flags: cc_uint8§bobbing: cc_bool§usesSkin: cc_bool§calcHumanAnims: cc_bool§usesHumanSkin: cc_bool§pushes: cc_bool§gravity: f32§drag: Vec3§groundFriction: Vec3§GetTransform: Option<unsafe extern "C" fn(entity: *mut Entity, pos: Vec3, m: *mut Matrix)>§DrawArm: Option<unsafe extern "C" fn(entity: *mut Entity)>§maxScale: f32§shadowScale: f32§maxVertices: c_int§next: *mut Model

Trait Implementations§

source§

impl Clone for Model

source§

fn clone(&self) -> Model

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Model

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Model

source§

fn eq(&self, other: &Model) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Model

source§

impl StructuralPartialEq for Model

Auto Trait Implementations§

§

impl Freeze for Model

§

impl RefUnwindSafe for Model

§

impl !Send for Model

§

impl !Sync for Model

§

impl Unpin for Model

§

impl UnwindSafe for Model

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.