ParticleSystem::ParticleSystem(const ParticleSystem& ps) : m_anim_recorder(NULL) , m_inv_record(NULL) { s2::Particle3d::Instance(); InitEmitter(ps.m_et->GetEmitterCfg()); }
ParticleSystem::ParticleSystem(const std::shared_ptr<s2::P3dEmitterCfg>& cfg, bool record) : m_anim_recorder(NULL) , m_inv_record(NULL) { s2::Particle3d::Instance(); if (record) { m_anim_recorder = new AnimRecorder(4096); m_inv_record = new InvertRecord; } InitEmitter(cfg); }
SplitterSystem::SplitterSystem(Common &common, float screenH, float screenW) { InitParams(common); //16 size of image(spark). InitEmitter(16 / 1.f, screenH, screenW); }
/*------------------------------------------------------------------------ ---------------------------- initialize peTex . . . ---------------------- ------------------------------------------------------------------------*/ static int InitializeECLUT(floDefPtr flo, peDefPtr ped) { return InitReceptors(flo,ped,NO_DATAMAP,1) && InitEmitter(flo,ped,NO_DATAMAP,NO_INPLACE); } /* end InitializeECLUT */