Module dae_parser::source
source · [−]Expand description
Contains functions for reading data out of a Source
.
Structs
The output of
SourceReader::map
.A marker type for inputs with
name="S"
, "T"
.
Collada uses S
and T
to denote texture coordinates (usually called “UV”),
because "U"
and "V"
are used for generic parameters.A reader which accesses fields with
name="S"
, "T"
in the source array.
Collada uses S
and T
to denote texture coordinates (usually called “UV”),
because "U"
and "V"
are used for generic parameters.A
SourceReader
is responsible for preparing a Source
for reading, by doing some up front
calulation in Source::reader
to determine how the data will be sliced. Once it is ready,
SourceReader::get
is used to access values from the array.
SourceReader
also implements Iterator
, so it can be used in for loops.A marker type for inputs with
name="X"
, "Y"
, "Z"
.
This is used in Collada to store vertex position data, and normal data.A reader which accesses fields with
name="X"
, "Y"
, "Z"
in the source array.
This is used in Collada to store vertex position data, and normal data.Traits
A trait for
Source
readers, which are used via the SourceReader
type returned from Source::reader
. Users can implement this trait
on their own type to customize reading, or use XYZ
and ST
for the common cases.