#[repr(C)]pub struct Model {
pub transform: Matrix,
pub meshCount: c_int,
pub materialCount: c_int,
pub meshes: *mut Mesh,
pub materials: *mut Material,
pub meshMaterial: *mut c_int,
pub boneCount: c_int,
pub bones: *mut BoneInfo,
pub bindPose: *mut Transform,
}
Expand description
Model, meshes, materials and animation data
Fields§
§transform: Matrix
Local transform matrix
meshCount: c_int
Number of meshes
materialCount: c_int
Number of materials
meshes: *mut Mesh
Meshes array
materials: *mut Material
Materials array
meshMaterial: *mut c_int
Mesh material number
boneCount: c_int
Number of bones
bones: *mut BoneInfo
Bones information (skeleton)
bindPose: *mut Transform
Bones base transformation (pose)
Trait Implementations§
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