Engine::~Engine() { //SDL_DestroyWindow(window); //window = nullptr; // //SDL_DestroyRenderer(renderer); //renderer = nullptr; // //delete input; //input = nullptr; // //delete timer; //timer = nullptr; // //textures = nullptr; //musics = nullptr; //sounds = nullptr; //fonts = nullptr; // //SDL_Quit(); // Clearing the Sound Engine soundEngine->drop(); soundEngine = nullptr; delete camera; camera = nullptr; DestroyAllVertexDeclarations(); }
TerrainDemo::~TerrainDemo() { delete mGfxStats; delete mTerrain; DestroyAllVertexDeclarations(); }
void D3DApp::shutdownComponents() { SkinManager::Shutdown(); ModelManager::Shutdown(); DestroyAllVertexDeclarations(); mNetClient->End(); }
SprinklerDemo::~SprinklerDemo() { delete mGfxStats; delete mTerrain; delete mPSys; DestroyAllVertexDeclarations(); }
FireRingDemo::~FireRingDemo() { delete mGfxStats; delete mTerrain; delete mPSys; DestroyAllVertexDeclarations(); }
AmbientDiffuseDemo::~AmbientDiffuseDemo() { delete mGfxStats; ReleaseCOM(mTeapot); ReleaseCOM(mFX); DestroyAllVertexDeclarations(); }
DiffusePyramidDemo::~DiffusePyramidDemo() { delete mGfxStats; ReleaseCOM(mVB); ReleaseCOM(mFX); DestroyAllVertexDeclarations(); }
CubeDemo::~CubeDemo() { SafeDelete(mGfxStats); SafeRelease(mVB); SafeRelease(mIB); DestroyAllVertexDeclarations(); }
AmbientDiffuseDemo::~AmbientDiffuseDemo() { SafeDelete(mGfxStats); SafeRelease(mTeapot); SafeRelease(mFX); DestroyAllVertexDeclarations(); }
TiledGroundDemo::~TiledGroundDemo() { delete mGfxStats; ReleaseCOM(mGridVB); ReleaseCOM(mGridIB); ReleaseCOM(mGroundTex); ReleaseCOM(mFX); DestroyAllVertexDeclarations(); }
SpotlightDemo::~SpotlightDemo() { delete mGfxStats; ReleaseCOM(mVB); ReleaseCOM(mIB); ReleaseCOM(mFX); ReleaseCOM(mCylinder); ReleaseCOM(mSphere); DestroyAllVertexDeclarations(); }
PropsDemo::~PropsDemo() { delete mGfxStats; delete mTerrain; delete mWater; ReleaseCOM(mWhiteTex); ReleaseCOM(mFX); ReleaseCOM(mGrassMesh); ReleaseCOM(mGrassTex); ReleaseCOM(mGrassFX); DestroyAllVertexDeclarations(); }
MultiTexDemo::~MultiTexDemo() { delete mGfxStats; ReleaseCOM(mGridVB); ReleaseCOM(mGridIB); ReleaseCOM(mTex0); ReleaseCOM(mTex1); ReleaseCOM(mTex2); ReleaseCOM(mBlendMap); ReleaseCOM(mFX); DestroyAllVertexDeclarations(); }
MirrorDemo::~MirrorDemo() { delete mGfxStats; ReleaseCOM(mRoomVB); ReleaseCOM(mTeapot); ReleaseCOM(mFloorTex); ReleaseCOM(mWallTex); ReleaseCOM(mMirrorTex); ReleaseCOM(mTeapotTex); ReleaseCOM(mFX); DestroyAllVertexDeclarations(); }
SkeletonClass::~SkeletonClass() { GfxStats::DeleteInstance(); for ( unsigned int obj=0 ; obj<m_Objects.size() ; obj++ ) delete m_Objects[obj]; m_Objects.clear(); delete skyBox; skyBox = NULL; DestroyAllVertexDeclarations(); }
Game::~Game() { gMyGameWorld->Release(); delete gMyGameWorld; ReleaseCOM(mFX); ReleaseCOM(mFont); DestroyAllVertexDeclarations(); delete DXPI; delete DXCI; }
SphereCylDemo::~SphereCylDemo() { delete mGfxStats; ReleaseCOM(mVB); ReleaseCOM(mIB); ReleaseCOM(mFX); ReleaseCOM(mCylinder); ReleaseCOM(mSphere); ReleaseCOM(mSphereTex); ReleaseCOM(mCylTex); ReleaseCOM(mGridTex); DestroyAllVertexDeclarations(); }
StencilMirrorDemo::~StencilMirrorDemo() { SafeDelete(mGfxStats); SafeRelease(mRoomVB); SafeRelease(mTeapot); SafeRelease(mFloorTex); SafeRelease(mWallTex); SafeRelease(mMirrorTex); SafeRelease(mTeapotTex); SafeRelease(mFX); DestroyAllVertexDeclarations(); }
RobotArmDemo::~RobotArmDemo() { delete mGfxStats; ReleaseCOM(mFX); ReleaseCOM(mBoneMesh); for(int i = 0; i < mTex.size(); ++i) ReleaseCOM(mTex[i]); ReleaseCOM(mWhiteTex); DestroyAllVertexDeclarations(); }
SolarSysDemo::~SolarSysDemo() { delete mGfxStats; ReleaseCOM(mFX); ReleaseCOM(mSphere); ReleaseCOM(mSunTex); ReleaseCOM(mPlanet1Tex); ReleaseCOM(mPlanet2Tex); ReleaseCOM(mPlanet3Tex); ReleaseCOM(mMoonTex); DestroyAllVertexDeclarations(); }
ProjTexDemo::~ProjTexDemo() { delete mGfxStats; delete mSky; ReleaseCOM(mFX); ReleaseCOM(mWhiteTex); ReleaseCOM(mSkullTex); ReleaseCOM(mSceneMesh); for(UINT i = 0; i < mSceneTextures.size(); ++i) ReleaseCOM(mSceneTextures[i]); DestroyAllVertexDeclarations(); }
XFileDemo::~XFileDemo() { SafeDelete(mGfxStats); SafeRelease(mFX); for (int i = 0; i < mTex.size(); ++i) { SafeRelease(mTex[i]); } SafeRelease(mWhiteTex); SafeRelease(mMesh); DestroyAllVertexDeclarations(); }
EngineMain::~EngineMain() { delete m_GfxStats; delete(skull); delete(dwarf); delete(tiny); ReleaseCOM(mGridVB); ReleaseCOM(mGridIB); ReleaseCOM(mGroundTex); ReleaseCOM(mFX); DestroyAllVertexDeclarations(); Shaders::DestroyAll(); }
Evolution::~Evolution() { delete mGfxStats; ReleaseCOM(mEFVB); ReleaseCOM(mEFIB); ReleaseCOM(mLVB); ReleaseCOM(mLIB); ReleaseCOM(mFX); ReleaseCOM(mFont); ReleaseCOM(mFoodTex); ReleaseCOM(mLifeformTex); ReleaseCOM(mCarnTex); ReleaseCOM(mSightTex); ReleaseCOM(mEggTex); DestroyAllVertexDeclarations(); }
WaterDemo::~WaterDemo() { delete mGfxStats; delete mSky; delete mWater; ReleaseCOM(mFX); ReleaseCOM(mSceneMesh); for(UINT i = 0; i < mSceneTextures.size(); ++i) ReleaseCOM(mSceneTextures[i]); ReleaseCOM(mWhiteTex); ReleaseCOM(mSceneNormalMaps[0]); ReleaseCOM(mSceneNormalMaps[1]); DestroyAllVertexDeclarations(); }