本文整理汇总了C++中CPVRTModelPOD::Destroy方法的典型用法代码示例。如果您正苦于以下问题:C++ CPVRTModelPOD::Destroy方法的具体用法?C++ CPVRTModelPOD::Destroy怎么用?C++ CPVRTModelPOD::Destroy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPVRTModelPOD
的用法示例。
在下文中一共展示了CPVRTModelPOD::Destroy方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QuitApplication
/*******************************************************************************
* 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;
}
示例2: QuitApplication
/*!****************************************************************************
@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;
}
示例3: QuitApplication
/*!****************************************************************************
@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;
}
示例4: QuitApplication
/*!****************************************************************************
@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;
}
示例5: QuitApplication
/*!****************************************************************************
@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;
}
示例6: QuitApplication
/*******************************************************************************
* 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;
}
示例7: QuitApplication
/*!****************************************************************************
@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;
}
示例8: QuitApplication
/*!****************************************************************************
@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;
}
示例9: QuitApplication
/*!****************************************************************************
@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;
}
示例10: QuitApplication
// ---------------------------------------------------------------
bool MyPVRDemo::QuitApplication()
{
m_Model.Destroy();
return true;
}