/*!**************************************************************************** @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 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; }