-------------------------------------------------------------------------------------- Description: Returns vertex declaration elements for a given mesh in geometry resource. Arguments: geometryRes - Geometry resource meshIndex - Mesh index in geometry resource elements - (out) Resulting array of vertex declaration elements; caller must allocate enough space for it count - (out) Number of elements
| 445 | // false Otherwise |
| 446 | // -------------------------------------------------------------------------------------- |
| 447 | static bool GetMeshVertexDeclaration( TriGeometryRes* geometryRes, int meshIndex, Tr2VertexDefinition& vd ) |
| 448 | { |
| 449 | if( geometryRes == nullptr || !geometryRes->IsGood() ) |
| 450 | { |
| 451 | return false; |
| 452 | } |
| 453 | TriGeometryResMeshData* meshData = geometryRes->GetMeshData( meshIndex ); |
| 454 | if( meshData == nullptr ) |
| 455 | { |
| 456 | return false; |
| 457 | } |
| 458 | return Tr2EffectStateManager::GetVertexDeclarationElements( meshData->m_vertexDeclarationHandle, vd ); |
| 459 | } |
| 460 | |
| 461 | // -------------------------------------------------------------------------------------- |
| 462 | // Description: |
no test coverage detected