Destructor
| 105 | |
| 106 | // Destructor |
| 107 | SceneDemo::~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 |
| 131 | void SceneDemo::update() { |