MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / ~SceneDemo

Method ~SceneDemo

testbed/src/SceneDemo.cpp:107–128  ·  view source on GitHub ↗

Destructor

Source from the content-addressed store, hash-verified

105
106// Destructor
107SceneDemo::~SceneDemo() {
108
109 for (int i = 0; i < NB_SHADOW_MAPS; i++) {
110 mShadowMapTexture[i].destroy();
111 mFBOShadowMap[i].destroy();
112 }
113
114 mVBOQuad.destroy();
115
116 mDepthShader.destroy();
117 mPhongShader.destroy();
118 mQuadShader.destroy();
119 mColorShader.destroy();
120
121 // Destroy the contact points
122 removeAllVisualContactPoints();
123
124 // Destroy rendering data for the AABB
125 AABB::destroy();
126
127 VisualContactPoint::destroyStaticData();
128}
129
130// Update the scene
131void SceneDemo::update() {

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected