MCPcopy Create free account
hub / github.com/carbonengine/trinity / InitMorphToBaseData

Function InitMorphToBaseData

trinity/Resources/TriGeometryRes.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122};
123
124MorphToBaseData InitMorphToBaseData( Tr2VertexDefinition decl )
125{
126 MorphToBaseData data{};
127 data.bytesPerVertex = decl.m_nextOffset[0];
128 data.foundPosition = decl.Find( Tr2VertexDefinition::POSITION, 0 );
129 CCP_ASSERT_M( data.foundPosition, "InitMorphToBaseData: Couldn't find Tr2VertexDefinition::POSITION." );
130 data.positionByteOffset = data.foundPosition->m_offset;
131 data.declType = data.foundPosition->m_dataType;
132 return data;
133}
134
135float SquaredDistMorphToBase( int index, bool dataIsDeltas, uint8_t* pVertices, MorphToBaseData baseData, uint8_t* pMorphSrc, MorphToBaseData morphData )
136{

Callers 2

IsAreaMorphedMethod · 0.85

Calls 1

FindMethod · 0.80

Tested by

no test coverage detected