Home
last modified time | relevance | path

Searched refs:activeParticles (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_render_particle_system.cpp49 …cleSystem::Emit(int64_t deltaTime, std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles, in Emit() argument
56 activeParticles.insert(activeParticles.end(), particles.begin(), particles.end()); in Emit()
63 int64_t deltaTime, std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles) in UpdateParticle() argument
65 if (activeParticles.empty()) { in UpdateParticle()
68 for (auto it = activeParticles.begin(); it != activeParticles.end();) { in UpdateParticle()
71 it = activeParticles.erase(it); in UpdateParticle()
79 …nderParticleSystem::IsFinish(const std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles) in IsFinish() argument
82 if (!activeParticles.empty()) { in IsFinish()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_render_particle_system.h30 void Emit(int64_t deltaTime, std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles,
32 …UpdateParticle(int64_t deltaTime, std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles);
33 bool IsFinish(const std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_render_particle_animation_test.cpp117 std::vector<std::shared_ptr<RSRenderParticle>> activeParticles; variable
119 particleSystem_->Emit(NS_TO_S, activeParticles, imageVector);
120 particleSystem_->UpdateParticle(NS_TO_S, activeParticles);
121 bool finish = particleSystem_->IsFinish(activeParticles);
165 std::vector<std::shared_ptr<RSRenderParticle>> activeParticles; variable
167 activeParticles.push_back(particle);
168 particleSystem->UpdateParticle(NS_TO_S, activeParticles);