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 usesS
andT
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 usesS
andT
to denote texture coordinates (usually called “UV”), because"U"
and"V"
are used for generic parameters. - A
SourceReader
is responsible for preparing aSource
for reading, by doing some up front calulation inSource::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 implementsIterator
, 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 implemented on marker types like
XYZ
to allow for strict typing of input kinds. - A trait for
Source
readers, which are used via theSourceReader
type returned fromSource::reader
. Users can implement this trait on their own type to customize reading, or useXYZ
andST
for the common cases.