| 1340 | } |
| 1341 | |
| 1342 | void MeshFactory::ReverseTriangleOrder(IndexBuffer* ibuffer) |
| 1343 | { |
| 1344 | uint32_t const numTriangles = ibuffer->GetNumPrimitives(); |
| 1345 | for (uint32_t t = 0; t < numTriangles; ++t) |
| 1346 | { |
| 1347 | uint32_t v0, v1, v2; |
| 1348 | ibuffer->GetTriangle(t, v0, v1, v2); |
| 1349 | ibuffer->SetTriangle(t, v0, v2, v1); |
| 1350 | } |
| 1351 | } |
| 1352 | |
| 1353 |
nothing calls this directly
no test coverage detected