Expand description
Contains functions for reading data out of a Source
.
Structs§
- Map
- The output of
SourceReader::map
. - ST
- 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. - STReader
- 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. - Source
Reader - 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. - XYZ
- A marker type for inputs with
name="X"
,"Y"
,"Z"
. This is used in Collada to store vertex position data, and normal data. - XYZReader
- 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§
- Input
Kind - A trait implemented on marker types like
XYZ
to allow for strict typing of input kinds. - Source
Read - 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.