| 55 | } |
| 56 | |
| 57 | JPABaseParticle *JPABaseEmitter::createParticle() |
| 58 | { |
| 59 | if (mPtclPool->mNum != 0) { |
| 60 | JPANode<JPABaseParticle>* node = mPtclPool->pop_front(); |
| 61 | mAlivePtclBase.push_front(node); |
| 62 | mResource->getDyn()->calc(mManager->pWd); |
| 63 | node->mData.init_p(mManager->pWd); |
| 64 | return &node->mData; |
| 65 | } |
| 66 | else { |
| 67 | // Line 128 in TP Debug |
| 68 | #line 125 |
| 69 | JUT_WARNING_F2("%s", "JPA : Can NOT create particle more\n"); |
| 70 | } |
| 71 | |
| 72 | return nullptr; |
| 73 | } |
| 74 | |
| 75 | JPABaseParticle *JPABaseEmitter::createChild(JPABaseParticle *parent) |
| 76 | { |