Destroy the mesh
| 42 | |
| 43 | // Destroy the mesh |
| 44 | void Mesh::destroy() { |
| 45 | |
| 46 | mVertices.clear(); |
| 47 | mNormals.clear(); |
| 48 | mTangents.clear(); |
| 49 | mIndices.clear(); |
| 50 | mColors.clear(); |
| 51 | mUVs.clear(); |
| 52 | mTextures.clear(); |
| 53 | } |
| 54 | |
| 55 | // Compute the normals of the mesh |
| 56 | void Mesh::calculateNormals() { |