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 inited: cc_bool,
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 nameScale: f32,
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
inited: cc_bool
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
nameScale: f32
next: *mut Model
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Model
impl UnwindSafe for Model
Blanket Implementations
Mutably borrows from an owned value. Read more