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§
source§impl 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
.
source§impl 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
.