Module source

Source
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 uses S and T 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 uses S and T to denote texture coordinates (usually called “UV”), because "U" and "V" are used for generic parameters.
SourceReader
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.
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§

InputKind
A trait implemented on marker types like XYZ to allow for strict typing of input kinds.
SourceRead
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.