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

    createParticleDisplay(bone, decoDisplay);
}
Esempio n. 2
0
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);
}