/******************************************************************************* * Function Name : QuitApplication * Returns : true if no error occured * Description : Code in QuitApplication() will be called by the Shell ONCE per * run, just before exiting the program. *******************************************************************************/ bool OGLESOptimizeMesh::QuitApplication() { m_Model.Destroy(); m_ModelOpt.Destroy(); delete[] m_puiVbo; delete[] m_puiIndexVbo; return true; }
/******************************************************************************* * Function Name : QuitApplication * Returns : true if no error occured * Description : Code in QuitApplication() will be called by the Shell ONCE per * run, just before exiting the program. *******************************************************************************/ bool OGLESOptimizeMesh::QuitApplication() { m_Model.Destroy(); m_ModelOpt.Destroy(); delete[] m_puiVbo; delete[] m_puiIndexVbo; #ifdef ENABLE_LOAD_TIME_STRIP free(m_pNewIdx); #endif return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occurred @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLES2Glass::QuitApplication() { // Free the memory allocated for the scene m_Ball.Destroy(); m_Balloon.Destroy(); delete [] m_puiVbo; delete [] m_puiIndexVbo; delete [] m_puiBalloonVbo; delete [] m_puiBalloonIndexVbo; return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occured @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLES2ParticleSystem::QuitApplication() { if (m_pParticleSystem) delete m_pParticleSystem; m_Scene.Destroy(); return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occurred @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLESPVRScopeRemote::QuitApplication() { if (m_psSPSCommsData) { m_bCommsError |= !pplSendProcessingBegin(m_psSPSCommsData, __FUNCTION__, static_cast<unsigned int>(strlen(__FUNCTION__)), m_i32FrameCounter); } // Free the memory allocated for the scene m_Scene.Destroy(); delete [] m_puiVbo; delete [] m_puiIndexVbo; // Close the data connection to PVRPerfServer if(m_psSPSCommsData) { for(unsigned int i = 0; i < 40; ++i) { char buf[128]; const int nLen = sprintf(buf, "test %u", i); m_bCommsError |= !pplSendMark(m_psSPSCommsData, buf, nLen); } m_bCommsError |= !pplSendProcessingEnd(m_psSPSCommsData); pplShutdown(m_psSPSCommsData); } return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occurred @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLES3Skybox2::QuitApplication() { // Frees the memory allocated for the scene m_Scene.Destroy(); return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occured @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLESIntroducingPFX::QuitApplication() { // Frees the memory allocated for the scene m_Scene.Destroy(); return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occured @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLES2MaximumIntensityBlend::QuitApplication() { // Frees the memory allocated for the scene m_Scene.Destroy(); return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occured @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLESFur::QuitApplication() { // Frees the memory allocated for the scene m_Scene.Destroy(); delete[] m_puiVbo; delete[] m_puiIndexVbo; return true; }
/******************************************************************************* * Function Name : QuitApplication * Returns : true if no error occured * Description : Code in QuitApplication() will be called by the Shell ONCE per * run, just before exiting the program. *******************************************************************************/ bool OGLESSkinning::QuitApplication() { // Destroy the scene m_Scene.Destroy(); delete[] m_puiVbo; delete[] m_puiIndexVbo; return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occured @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called.x ******************************************************************************/ bool OGLES2AnisotropicLighting::QuitApplication() { // Free the memory allocated for the scene m_Scene.Destroy(); delete [] m_puiVbo; delete [] m_puiIndexVbo; return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occured @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLES3EdgeDetection::QuitApplication() { // Frees the memory allocated for the scene m_Scene.Destroy(); // Deletes the vertex buffer object delete[] m_puiVbo; delete[] m_puiIndexVbo; return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occurred @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLES3MagicLantern::QuitApplication() { // Free the memory allocated for the scene. m_Scene.Destroy(); if(m_puiMaterialEffectID) delete[] m_puiMaterialEffectID; if(m_puiVbo) delete[] m_puiVbo; if(m_puiIndexVbo) delete[] m_puiIndexVbo; return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occured @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLESFur::QuitApplication() { // Release any memory or instances allocated in InitApplication() m_Print3D.DeleteAllWindows(); // Frees the memory allocated for the scene m_Scene.Destroy(); delete[] m_puiVbo; delete[] m_puiIndexVbo; return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occured @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLESEvilSkull::QuitApplication() { // Free the memory allocated for the scene m_Scene.Destroy(); delete[] m_puiVbo; delete[] m_puiIndexVbo; delete[] m_pMorphedVertices; delete[] m_pAVGVertices; for(unsigned int i = 0; i < g_ui32NoOfMorphTargets; ++i) delete[] m_pDiffVertices[i]; return true; }
/*!**************************************************************************** @Function QuitApplication @Return bool true if no error occured @Description Code in QuitApplication() will be called by PVRShell once per run, just before exiting the program. If the rendering context is lost, QuitApplication() will not be called. ******************************************************************************/ bool OGLES2PVRScopeRemote::QuitApplication() { // Free the memory allocated for the scene m_Scene.Destroy(); delete [] m_puiVbo; delete [] m_puiIndexVbo; // Close the data connection to PVRPerfServer for(unsigned int i = 0; i < 40; ++i) { char buf[128]; const int nLen = sprintf(buf, "test %u", i); pplSendMark(*m_psSPSCommsData, buf, nLen); } pplShutdown(m_psSPSCommsData); return true; }
// --------------------------------------------------------------- bool MyPVRDemo::QuitApplication() { m_Model.Destroy(); return true; }