Struct dae_parser::Sampler
source · pub struct Sampler {
pub id: Option<String>,
pub inputs: Vec<Input>,
pub interpolation: usize,
}
Expand description
Declares an interpolation sampling function for an animation.
Fields§
§id: Option<String>
A text string containing the unique identifier of the element.
inputs: Vec<Input>
Assigns semantics to each Source
. See the COLLADA spec for details.
interpolation: usize
The index into inputs
for the Semantic::Interpolation
input (which must exist).
Implementations§
source§impl Sampler
impl Sampler
sourcepub fn new(inputs: Vec<Input>) -> Self
pub fn new(inputs: Vec<Input>) -> Self
Construct a new Sampler
from a list of inputs.
One of the inputs must have Semantic::Interpolation
.
source§impl Sampler
impl Sampler
sourcepub fn interpolation_input(&self) -> &Input
pub fn interpolation_input(&self) -> &Input
The input with Semantic::Interpolation
.