MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / destroyStaticData

Method destroyStaticData

testbed/common/VisualContactPoint.cpp:78–91  ·  view source on GitHub ↗

Destroy the mesh for the contact points

Source from the content-addressed store, hash-verified

76
77// Destroy the mesh for the contact points
78void 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
94void VisualContactPoint::render(openglframework::Shader& shader, const openglframework::Matrix4& worldToCameraMatrix) {

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected