示例#1
0
/*******************************************************************************
 * Function Name  : ReleaseView
 * Returns        : Nothing
 * Description    : Code in ReleaseView() will be called by the Shell before
 *					changing to a new rendering context.
 *******************************************************************************/
bool OGLESOptimizeMesh::ReleaseView()
{
	// Release all Textures
	glDeleteTextures(1, &m_Texture);

	// Release the Print3D textures and windows
	m_Print3D.DeleteAllWindows();
	m_Print3D.ReleaseTextures();
	return true;
}
示例#2
0
/*!****************************************************************************
 @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;
}