| 122 | }; |
| 123 | |
| 124 | MorphToBaseData 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 | |
| 135 | float SquaredDistMorphToBase( int index, bool dataIsDeltas, uint8_t* pVertices, MorphToBaseData baseData, uint8_t* pMorphSrc, MorphToBaseData morphData ) |
| 136 | { |
no test coverage detected