Lines Matching refs:fState
225 fState.fAge = -1.0f; in SkParticleEffect()
273 fState.fAge = 0.0f; in start()
278 fState.fLifetime = 1.0f; in start()
279 fState.fLoopCount = 0; in start()
280 fState.fRate = 0.0f; in start()
281 fState.fBurst = 0; in start()
283 fState.fPosition = position; in start()
284 fState.fHeading = heading; in start()
285 fState.fScale = scale; in start()
286 fState.fVelocity = velocity; in start()
287 fState.fSpin = spin; in start()
288 fState.fColor = color; in start()
289 fState.fFrame = frame; in start()
290 fState.fRandom = seed; in start()
319 args[i + 2] = SkTAddOffset<void>(&fState, i * sizeof(int)); in runEffectScript()
322 memcpy(&fUniforms[1], &fState.fAge, sizeof(EffectState)); in runEffectScript()
346 memcpy(&fUniforms[1], &fState.fAge, sizeof(EffectState)); in runParticleScript()
369 if (fState.fAge == 0.0f && fState.fLoopCount == 0) { in advanceTime()
373 fState.fAge += deltaTime / fState.fLifetime; in advanceTime()
374 if (fState.fAge > 1) { in advanceTime()
377 fState.fLoopCount += sk_float_floor2int(fState.fAge); in advanceTime()
378 fState.fAge = fmodf(fState.fAge, 1.0f); in advanceTime()
406 fState.fPosition += fState.fVelocity * deltaTime; in advanceTime()
407 float s = sk_float_sin(fState.fSpin * deltaTime), in advanceTime()
408 c = sk_float_cos(fState.fSpin * deltaTime); in advanceTime()
410 fState.fHeading.setNormalize(fState.fHeading.fX * c - fState.fHeading.fY * s, in advanceTime()
411 fState.fHeading.fX * s + fState.fHeading.fY * c); in advanceTime()
415 float desired = fState.fRate * deltaTime + fSpawnRemainder + fState.fBurst; in advanceTime()
416 fState.fBurst = 0; in advanceTime()
425 fState.fRandom = advance_seed(fState.fRandom); in advanceTime()
428 fParticles.fData[SkParticles::kPositionX ][fCount] = fState.fPosition.fX; in advanceTime()
429 fParticles.fData[SkParticles::kPositionY ][fCount] = fState.fPosition.fY; in advanceTime()
430 fParticles.fData[SkParticles::kHeadingX ][fCount] = fState.fHeading.fX; in advanceTime()
431 fParticles.fData[SkParticles::kHeadingY ][fCount] = fState.fHeading.fY; in advanceTime()
432 fParticles.fData[SkParticles::kScale ][fCount] = fState.fScale; in advanceTime()
433 fParticles.fData[SkParticles::kVelocityX ][fCount] = fState.fVelocity.fX; in advanceTime()
434 fParticles.fData[SkParticles::kVelocityY ][fCount] = fState.fVelocity.fY; in advanceTime()
435 fParticles.fData[SkParticles::kVelocityAngular][fCount] = fState.fSpin; in advanceTime()
436 fParticles.fData[SkParticles::kColorR ][fCount] = fState.fColor.fR; in advanceTime()
437 fParticles.fData[SkParticles::kColorG ][fCount] = fState.fColor.fG; in advanceTime()
438 fParticles.fData[SkParticles::kColorB ][fCount] = fState.fColor.fB; in advanceTime()
439 fParticles.fData[SkParticles::kColorA ][fCount] = fState.fColor.fA; in advanceTime()
440 fParticles.fData[SkParticles::kSpriteFrame ][fCount] = fState.fFrame; in advanceTime()
441 fParticles.fData[SkParticles::kRandom ][fCount] = fState.fRandom; in advanceTime()