void DisplayFactory::addParticleDisplay(Bone *bone, DecorativeDisplay *decoDisplay, DisplayData *displayData) { ParticleDisplayData *adp = ParticleDisplayData::create(); adp->copy((ParticleDisplayData *)displayData); decoDisplay->setDisplayData(adp); createParticleDisplay(bone, decoDisplay); }
void CS_DISPLAY_PARTICLE_ADD(Bone *bone, DecorativeDisplay *decoDisplay, DisplayData *displayData) { ParticleDisplayData *adp = ParticleDisplayData::create(); ; adp->copy((ParticleDisplayData*)displayData); decoDisplay->setDisplayData(adp); CS_DISPLAY_PARTICLE_CREATE(bone, decoDisplay); }