Lines Matching refs:fState
185 fState.fAge = -1.0f; in SkParticleEffect()
197 fState.fAge = 0.0f; in start()
202 fState.fLifetime = 1.0f; in start()
203 fState.fLoopCount = 0; in start()
204 fState.fRate = 0.0f; in start()
205 fState.fBurst = 0; in start()
207 fState.fPosition = position; in start()
208 fState.fHeading = heading; in start()
209 fState.fScale = scale; in start()
210 fState.fVelocity = velocity; in start()
211 fState.fSpin = spin; in start()
212 fState.fColor = color; in start()
213 fState.fFrame = frame; in start()
214 fState.fFlags = flags; in start()
227 newEffect->start(now, spawnReq.fLoop, fState.fPosition, fState.fHeading, fState.fScale, in processEffectSpawnRequests()
228 fState.fVelocity, fState.fSpin, fState.fColor, fState.fFrame, in processEffectSpawnRequests()
229 fState.fFlags); in processEffectSpawnRequests()
249 args[i] = &fState.fAge + i; in runEffectScript()
298 memcpy(&fParticleUniforms[1], &fState.fAge, sizeof(EffectState)); in runParticleScript()
343 if (fState.fAge == 0.0f && fState.fLoopCount == 0) { in advanceTime()
347 fState.fAge += deltaTime / fState.fLifetime; in advanceTime()
348 if (fState.fAge > 1) { in advanceTime()
354 fState.fLoopCount += sk_float_floor2int(fState.fAge); in advanceTime()
355 fState.fAge = fmodf(fState.fAge, 1.0f); in advanceTime()
388 fState.fPosition += fState.fVelocity * deltaTime; in advanceTime()
389 float s = sk_float_sin(fState.fSpin * deltaTime), in advanceTime()
390 c = sk_float_cos(fState.fSpin * deltaTime); in advanceTime()
392 fState.fHeading.setNormalize(fState.fHeading.fX * c - fState.fHeading.fY * s, in advanceTime()
393 fState.fHeading.fX * s + fState.fHeading.fY * c); in advanceTime()
397 float desired = fState.fRate * deltaTime + fSpawnRemainder + fState.fBurst; in advanceTime()
398 fState.fBurst = 0; in advanceTime()
410 fParticles.fData[SkParticles::kPositionX ][fCount] = fState.fPosition.fX; in advanceTime()
411 fParticles.fData[SkParticles::kPositionY ][fCount] = fState.fPosition.fY; in advanceTime()
412 fParticles.fData[SkParticles::kHeadingX ][fCount] = fState.fHeading.fX; in advanceTime()
413 fParticles.fData[SkParticles::kHeadingY ][fCount] = fState.fHeading.fY; in advanceTime()
414 fParticles.fData[SkParticles::kScale ][fCount] = fState.fScale; in advanceTime()
415 fParticles.fData[SkParticles::kVelocityX ][fCount] = fState.fVelocity.fX; in advanceTime()
416 fParticles.fData[SkParticles::kVelocityY ][fCount] = fState.fVelocity.fY; in advanceTime()
417 fParticles.fData[SkParticles::kVelocityAngular][fCount] = fState.fSpin; in advanceTime()
418 fParticles.fData[SkParticles::kColorR ][fCount] = fState.fColor.fR; in advanceTime()
419 fParticles.fData[SkParticles::kColorG ][fCount] = fState.fColor.fG; in advanceTime()
420 fParticles.fData[SkParticles::kColorB ][fCount] = fState.fColor.fB; in advanceTime()
421 fParticles.fData[SkParticles::kColorA ][fCount] = fState.fColor.fA; in advanceTime()
422 fParticles.fData[SkParticles::kSpriteFrame ][fCount] = fState.fFrame; in advanceTime()
423 fParticles.fData[SkParticles::kFlags ][fCount] = bits_to_float(fState.fFlags); in advanceTime()