Struct dae_parser::Targets
source · [−]pub struct Targets {
pub inputs: Vec<Input>,
pub morph_target: usize,
pub morph_weight: usize,
pub extra: Vec<Extra>,
}
Expand description
Declares morph targets, their weights, and any user-defined attributes associated with them.
Fields
inputs: Vec<Input>
The interpretation of the Source
s.
morph_target: usize
The index into inputs
for the Semantic::MorphTarget
input (which must exist).
morph_weight: usize
The index into inputs
for the Semantic::MorphWeight
input (which must exist).
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations
sourceimpl Targets
impl Targets
sourcepub fn new(inputs: Vec<Input>) -> Self
pub fn new(inputs: Vec<Input>) -> Self
Construct a new Targets
from a list of inputs.
One of the inputs must have Semantic::MorphTarget
, and
one of the inputs must have Semantic::MorphWeight
.
sourceimpl Targets
impl Targets
sourcepub fn morph_target_input(&self) -> &Input
pub fn morph_target_input(&self) -> &Input
The input with Semantic::MorphTarget
.
sourcepub fn morph_weight_input(&self) -> &Input
pub fn morph_weight_input(&self) -> &Input
The input with Semantic::MorphWeight
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Targets
impl Send for Targets
impl Sync for Targets
impl Unpin for Targets
impl UnwindSafe for Targets
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