Exemplo n.º 1
0
CGameApp::~CGameApp()
{
	SAFE_DELETE(m_pVeicleMgr);
	SAFE_DELETE(m_pHall);
	SAFE_DELETE(m_pLJ);
	SAFE_DELETE(m_pScene);
	SAFE_DELETE(m_pSkyBox);
	SAFE_DELETE(m_pCamera);
	SAFE_DELETE(m_pSmallCamera);

	SAFE_DELETE(m_pBackMp3);
	SAFE_DELETE(m_pAsideMp3);
	SAFE_DELETE( m_pStopWatch );

	SAFE_RELEASE( m_pUIBikeVB );
	SAFE_RELEASE( m_pUICountPicVB );

	SAFE_RELEASE( m_pUIWin );
	SAFE_RELEASE( m_pUILose );
	SAFE_RELEASE( m_pUIBike );
	for (int i=0; i<4; i++)
	{
		SAFE_RELEASE( m_pUICountPic[i] );
	}

	SAFE_RELEASE(m_pDInputKB);
	SAFE_RELEASE(m_pDInputMouse);
	SAFE_RELEASE(m_pDInput);
	SAFE_RELEASE(m_pFont);

	SAFE_DELETE(m_pPlayer);
	SAFE_DELETE(m_pTourist);

	ClearD3D();

}
Exemplo n.º 2
0
CD3DDisplay::~CD3DDisplay()
{
	ClearD3D();	
}