Lines Matching refs:effect
181 LoadedEffect effect; in loadEffects() local
182 effect.fName = SkOSPath::Join(dirname, file.c_str()); in loadEffects()
183 effect.fParams.reset(new SkParticleEffectParams()); in loadEffects()
184 if (auto fileData = SkData::MakeFromFileName(effect.fName.c_str())) { in loadEffects()
187 effect.fParams->visitFields(&fromJson); in loadEffects()
188 effect.fParams->prepare(fResourceProvider.get()); in loadEffects()
189 fLoaded.push_back(effect); in loadEffects()
212 LoadedEffect effect; in draw() local
213 effect.fName = SkOSPath::Join(dirname.c_str(), "new.json"); in draw()
214 effect.fParams.reset(new SkParticleEffectParams()); in draw()
215 fLoaded.push_back(effect); in draw()
225 for (const auto& effect : fLoaded) { in draw() local
226 SkFILEWStream fileStream(effect.fName.c_str()); in draw()
231 effect.fParams->visitFields(&toJson); in draw()
236 SkDebugf("Failed to open %s\n", effect.fName.c_str()); in draw()
245 sk_sp<SkParticleEffect> effect(new SkParticleEffect(fLoaded[i].fParams, in draw() local
247 effect->start(fAnimationTime, looped); in draw()
248 fRunning.push_back({ fLoaded[i].fName, effect, false }); in draw()
276 SkParticleEffect* effect = fRunning[i].fEffect.get(); in draw() local
277 ImGui::PushID(effect); in draw()
281 bool remove = ImGui::Button("X") || !effect->isAlive(); in draw()
283 ImGui::Text("%5d %s", effect->getCount(), fRunning[i].fName.c_str()); in draw()
285 effect->setPosition(mousePos); in draw()
341 uniformsGui(effect->effectCode(), effect->effectUniforms()); in draw()
342 uniformsGui(effect->particleCode(), effect->particleUniforms()); in draw()
353 for (const auto& effect : fRunning) { in draw() local
354 effect.fEffect->draw(canvas); in draw()
362 for (const auto& effect : fRunning) { in animate() local
363 effect.fEffect->update(fAnimationTime); in animate()