MeshStreams

Engine/source/ts/collada/colladaAppMesh.cpp

More...

Public Types

enum
eSourceType {
  Points 
  Normals 
  Colors 
  UVs 
  UV2s 
  Joints 
  Weights 
  InvBindMatrices 
  NumStreams 
}

Public Functions

bool
readInputs(const daeTArray< T > & inputs)

Read a set of inputs into the named sources.

Clear the mesh streams.

Private Static Functions

selectInput(T input, T sortedInputs, S32 start, S32 end)

Classify a single input.

Private Functions

bool
initSourceReader(T input, eSourceType type, _SourceReader & reader, const char * params)

Attempt to initialise a _SourceReader.

Public Static Functions

classifyInputs(const daeTArray< T > & inputs, T sortedInputs, U32 * maxOffset)

Classify a set of inputs by type and set number (needs to be a template because Collada has two forms of input arrays that may be accessed in an identical fashion, but the classes are unrelated.

Detailed Description

Public Types

eSourceType

Enumerator

Points
Normals
Colors
UVs
UV2s
Joints
Weights
InvBindMatrices
NumStreams

Public Attributes

_SourceReader colors 
_SourceReader invBindMatrices 
_SourceReader joints 
_SourceReader normals 
_SourceReader points 
_SourceReader uv2s 
_SourceReader uvs 
_SourceReader weights 

Public Functions

readInputs(const daeTArray< T > & inputs)

Read a set of inputs into the named sources.

There may be multiple 'sets' of COLOR or TEXCOORD (uvs) streams, but we are only interested in the first COLOR set (ie. smallest set value), and the first 2 TEXCOORDS sets.

reset()

Clear the mesh streams.

SourceTypeToSemantic(eSourceType type)

Private Static Functions

selectInput(T input, T sortedInputs, S32 start, S32 end)

Classify a single input.

Private Functions

initSourceReader(T input, eSourceType type, _SourceReader & reader, const char * params)

Attempt to initialise a _SourceReader.

Public Static Functions

classifyInputs(const daeTArray< T > & inputs, T sortedInputs, U32 * maxOffset)

Classify a set of inputs by type and set number (needs to be a template because Collada has two forms of input arrays that may be accessed in an identical fashion, but the classes are unrelated.

Sigh.