本文整理汇总了C++中PUParticleSystem3D::unPrepared方法的典型用法代码示例。如果您正苦于以下问题:C++ PUParticleSystem3D::unPrepared方法的具体用法?C++ PUParticleSystem3D::unPrepared怎么用?C++ PUParticleSystem3D::unPrepared使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PUParticleSystem3D
的用法示例。
在下文中一共展示了PUParticleSystem3D::unPrepared方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
void PUParticleSystem3D::initParticleForExpiration( PUParticle3D* particle, float timeElapsed )
{
if (particle->particleType == PUParticle3D::PT_EMITTER){
PUEmitter *emitter = static_cast<PUEmitter *>(particle->particleEntityPtr);
emitter->unPrepare();
}else if (particle->particleType == PUParticle3D::PT_TECHNIQUE){
PUParticleSystem3D *system = static_cast<PUParticleSystem3D *>(particle->particleEntityPtr);
system->unPrepared();
}
particle->initForExpiration(timeElapsed);
for (auto it : _listeners){
it->particleExpired(this, particle);
}
///** Externs are also called to perform expiration activities. If needed, affectors and emitters may be added, but at the moment
// there is no reason for (and we don´t want to waste cpu resources).
//*/
//if (!mExterns.empty())
//{
// ExternIterator itExtern;
// ExternIterator itExternEnd = mExterns.end();
// for (itExtern = mExterns.begin(); itExtern != itExternEnd; ++itExtern)
// {
// (*itExtern)->_initParticleForExpiration(particle);
// }
//}
}