Destroy the mesh for the contact points
| 76 | |
| 77 | // Destroy the mesh for the contact points |
| 78 | void VisualContactPoint::destroyStaticData() { |
| 79 | |
| 80 | if (!mStaticDataCreated) return; |
| 81 | |
| 82 | // Destroy the VBOs and VAO |
| 83 | mVBOIndices.destroy(); |
| 84 | mVBOVertices.destroy(); |
| 85 | mVBONormals.destroy(); |
| 86 | mVAO.destroy(); |
| 87 | |
| 88 | mMesh.destroy(); |
| 89 | |
| 90 | mStaticDataCreated = false; |
| 91 | } |
| 92 | |
| 93 | // Render the sphere at the correct position and with the correct orientation |
| 94 | void VisualContactPoint::render(openglframework::Shader& shader, const openglframework::Matrix4& worldToCameraMatrix) { |