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_charvertices: *mut ModelVertexdefaultTex: *mut ModelTexMakeParts: 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_intarmX: cc_uint8armY: cc_uint8inited: cc_boolbobbing: cc_boolusesSkin: cc_boolcalcHumanAnims: cc_boolusesHumanSkin: cc_boolpushes: cc_boolgravity: f32drag: Vec3groundFriction: Vec3GetTransform: Option<unsafe extern "C" fn(entity: *mut Entity, pos: Vec3, m: *mut Matrix)>DrawArm: Option<unsafe extern "C" fn(entity: *mut Entity)>maxScale: f32shadowScale: f32nameScale: f32next: *mut ModelTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Model
impl UnwindSafe for Model
Blanket Implementations
Mutably borrows from an owned value. Read more
