Exemple #1
0
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();
}
Exemple #2
0
TerrainDemo::~TerrainDemo()
{
	delete mGfxStats;
	delete mTerrain;

	DestroyAllVertexDeclarations();
}
Exemple #3
0
void D3DApp::shutdownComponents()
{
	SkinManager::Shutdown();
	ModelManager::Shutdown();
	DestroyAllVertexDeclarations();
	mNetClient->End();
}
Exemple #4
0
SprinklerDemo::~SprinklerDemo()
{
	delete mGfxStats;
	delete mTerrain;
	delete mPSys;

	DestroyAllVertexDeclarations();
}
Exemple #5
0
FireRingDemo::~FireRingDemo()
{
	delete mGfxStats;
	delete mTerrain;
	delete mPSys;

	DestroyAllVertexDeclarations();
}
AmbientDiffuseDemo::~AmbientDiffuseDemo()
{
	delete mGfxStats;
	ReleaseCOM(mTeapot);
	ReleaseCOM(mFX);

	DestroyAllVertexDeclarations();
}
Exemple #7
0
DiffusePyramidDemo::~DiffusePyramidDemo()
{
	delete mGfxStats;
	ReleaseCOM(mVB);
	ReleaseCOM(mFX);

	DestroyAllVertexDeclarations();
}
Exemple #8
0
CubeDemo::~CubeDemo()
{
	SafeDelete(mGfxStats);

	SafeRelease(mVB);
	SafeRelease(mIB);

	DestroyAllVertexDeclarations();
}
AmbientDiffuseDemo::~AmbientDiffuseDemo()
{
    SafeDelete(mGfxStats);

    SafeRelease(mTeapot);
    SafeRelease(mFX);

    DestroyAllVertexDeclarations();
}
Exemple #10
0
TiledGroundDemo::~TiledGroundDemo()
{
	delete mGfxStats;
	ReleaseCOM(mGridVB);
	ReleaseCOM(mGridIB);
	ReleaseCOM(mGroundTex);
	ReleaseCOM(mFX);

	DestroyAllVertexDeclarations();
}
Exemple #11
0
SpotlightDemo::~SpotlightDemo()
{
	delete mGfxStats;
	ReleaseCOM(mVB);
	ReleaseCOM(mIB);
	ReleaseCOM(mFX);
	ReleaseCOM(mCylinder);
	ReleaseCOM(mSphere);

	DestroyAllVertexDeclarations();
}
Exemple #12
0
PropsDemo::~PropsDemo()
{
	delete mGfxStats;
	delete mTerrain;
	delete mWater;
	ReleaseCOM(mWhiteTex);
	ReleaseCOM(mFX);
	ReleaseCOM(mGrassMesh);
	ReleaseCOM(mGrassTex);
	ReleaseCOM(mGrassFX);

	DestroyAllVertexDeclarations();
}
Exemple #13
0
MultiTexDemo::~MultiTexDemo()
{
	delete mGfxStats;
	ReleaseCOM(mGridVB);
	ReleaseCOM(mGridIB);
	ReleaseCOM(mTex0);
	ReleaseCOM(mTex1);
	ReleaseCOM(mTex2);
	ReleaseCOM(mBlendMap);
	ReleaseCOM(mFX);

	DestroyAllVertexDeclarations();
}
Exemple #14
0
MirrorDemo::~MirrorDemo()
{
	delete mGfxStats;
	ReleaseCOM(mRoomVB);
	ReleaseCOM(mTeapot);
	ReleaseCOM(mFloorTex);
	ReleaseCOM(mWallTex);
	ReleaseCOM(mMirrorTex);
	ReleaseCOM(mTeapotTex);
	ReleaseCOM(mFX);

	DestroyAllVertexDeclarations();
}
Exemple #15
0
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();
}
Exemple #16
0
Game::~Game()
{
	gMyGameWorld->Release();
	delete gMyGameWorld;

	ReleaseCOM(mFX);
	ReleaseCOM(mFont);

	DestroyAllVertexDeclarations();

	delete DXPI;
	delete DXCI;
}
Exemple #17
0
SphereCylDemo::~SphereCylDemo()
{
	delete mGfxStats;
	ReleaseCOM(mVB);
	ReleaseCOM(mIB);
	ReleaseCOM(mFX);
	ReleaseCOM(mCylinder);
	ReleaseCOM(mSphere);
	ReleaseCOM(mSphereTex);
	ReleaseCOM(mCylTex);
	ReleaseCOM(mGridTex);

	DestroyAllVertexDeclarations();
}
Exemple #18
0
StencilMirrorDemo::~StencilMirrorDemo()
{
	SafeDelete(mGfxStats);

	SafeRelease(mRoomVB);
	SafeRelease(mTeapot);
	SafeRelease(mFloorTex);
	SafeRelease(mWallTex);
	SafeRelease(mMirrorTex);
	SafeRelease(mTeapotTex);
	SafeRelease(mFX);

	DestroyAllVertexDeclarations();
}
Exemple #19
0
RobotArmDemo::~RobotArmDemo()
{
	delete mGfxStats;
	
	ReleaseCOM(mFX);

	ReleaseCOM(mBoneMesh);
	for(int i = 0; i < mTex.size(); ++i)
		ReleaseCOM(mTex[i]);

	ReleaseCOM(mWhiteTex);

	DestroyAllVertexDeclarations();
}
Exemple #20
0
SolarSysDemo::~SolarSysDemo()
{
	delete mGfxStats;
	
	ReleaseCOM(mFX);
	ReleaseCOM(mSphere);
	ReleaseCOM(mSunTex);
	ReleaseCOM(mPlanet1Tex);
	ReleaseCOM(mPlanet2Tex);
	ReleaseCOM(mPlanet3Tex);
	ReleaseCOM(mMoonTex);

	DestroyAllVertexDeclarations();
}
Exemple #21
0
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();
}
Exemple #22
0
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();
}
Exemple #25
0
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();
}