| 24 | } |
| 25 | |
| 26 | void MeshData::EnsureCapacity(int32 vertices, int32 indices, bool preserveContents, bool withColors, bool withSkin, int32 texcoords) |
| 27 | { |
| 28 | Positions.EnsureCapacity(vertices, preserveContents); |
| 29 | Indices.EnsureCapacity(indices, preserveContents); |
| 30 | UVs.Resize(texcoords); |
| 31 | for (auto& channel : UVs) |
| 32 | channel.EnsureCapacity(vertices, preserveContents); |
| 33 | Normals.EnsureCapacity(vertices, preserveContents); |
| 34 | Tangents.EnsureCapacity(vertices, preserveContents); |
| 35 | Colors.EnsureCapacity(withColors ? vertices : 0, preserveContents); |
| 36 | BlendIndices.EnsureCapacity(withSkin ? vertices : 0, preserveContents); |
| 37 | BlendWeights.EnsureCapacity(withSkin ? vertices : 0, preserveContents); |
| 38 | } |
| 39 | |
| 40 | void MeshData::SwapBuffers(MeshData& other) |
| 41 | { |
no test coverage detected