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 PartialEq for Model
impl PartialEq for Model
impl Copy for Model
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> 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
)