#[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 Model

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.