void COLLADA_Viewer::onShutdown() { FWGLApplication::onShutdown(); _CrtRender.Destroy(); cellDbgFontConsoleClose(mDbgFontID); cellDbgFontExit(); }
//----------------------------------------------------------------------------- // Purpose: Shutdown the game engine //----------------------------------------------------------------------------- void CGameEnginePS3::Shutdown() { // Flag that we are shutting down so the frame loop will stop running m_bShuttingDown = true; // Shutdown dbg font library if ( m_DbgFontConsoleID >= 0 ) { cellDbgFontConsoleClose( m_DbgFontConsoleID ); cellDbgFontExit(); } // Should be safe to call even if we didn't actually init. cellPadEnd(); // PS3 docs say it's best not to call this and allow the os/vshell to handle it instead to avoid brief noise // in the video display if ( m_rgflPointsData ) { delete[] m_rgflPointsData; m_rgflPointsData = NULL; } if ( m_rgflPointsColorData ) { delete[] m_rgflPointsColorData; m_rgflPointsColorData = NULL; } if ( m_rgflLinesData ) { delete[] m_rgflLinesData; m_rgflLinesData = NULL; } if ( m_rgflLinesColorData ) { delete[] m_rgflLinesColorData; m_rgflLinesColorData = NULL; } if ( m_rgflQuadsData ) { delete[] m_rgflQuadsData; m_rgflQuadsData = NULL; } if ( m_rgflQuadsColorData ) { delete[] m_rgflQuadsColorData; m_rgflQuadsColorData = NULL; } if ( m_rgflQuadsTextureData ) { delete[] m_rgflQuadsTextureData; m_rgflQuadsTextureData = NULL; } m_dwLinesToFlush = 0; m_dwPointsToFlush = 0; m_dwQuadsToFlush = 0; /* // PS3 docs say it's best not to call this and allow the os/vshell to handle it instead to avoid brief noise // in the video display. Should we not do this then? // // bugbug jmccaskey - don't do this? if ( m_pPSGLDevice ) { psglMakeCurrent( NULL, m_pPSGLDevice ); if ( m_pPSGLContext ) { psglDestroyContext( m_pPSGLContext ); m_pPSGLContext = NULL; } psglDestroyDevice( m_pPSGLDevice ); m_pPSGLDevice = NULL; } psglExit(); */ }
void Console::close() { cellDbgFontConsoleClose(consoleId); }