Struct three::template::BoneTemplate
source · pub struct BoneTemplate {
pub object: usize,
pub index: usize,
pub inverse_bind_matrix: InverseBindMatrix,
pub skeleton: usize,
}
Expand description
A template for a Bone
object.
For more information about creating a Bone
, see Factory::bone
.
Fields
object: usize
index: usize
The index of the bone within its skeleton.
inverse_bind_matrix: InverseBindMatrix
The inverse bind matrix used to bind vertices of the mesh to the bone.
skeleton: usize
The skeleton that this bone is a part of, given as an index into the skeletons
array of the parent Template
.
Trait Implementations
sourceimpl Clone for BoneTemplate
impl Clone for BoneTemplate
sourcefn clone(&self) -> BoneTemplate
fn clone(&self) -> BoneTemplate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for BoneTemplate
impl Send for BoneTemplate
impl Sync for BoneTemplate
impl Unpin for BoneTemplate
impl UnwindSafe for BoneTemplate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.