Lines Matching refs:fState
222 fState.fAge = -1.0f; in SkParticleEffect()
270 fState.fAge = 0.0f; in start()
275 fState.fLifetime = 1.0f; in start()
276 fState.fLoopCount = 0; in start()
277 fState.fRate = 0.0f; in start()
278 fState.fBurst = 0; in start()
280 fState.fPosition = position; in start()
281 fState.fHeading = heading; in start()
282 fState.fScale = scale; in start()
283 fState.fVelocity = velocity; in start()
284 fState.fSpin = spin; in start()
285 fState.fColor = color; in start()
286 fState.fFrame = frame; in start()
287 fState.fRandom = seed; in start()
316 args[i + 2] = SkTAddOffset<void>(&fState, i * sizeof(int)); in runEffectScript()
319 memcpy(&fUniforms[1], &fState.fAge, sizeof(EffectState)); in runEffectScript()
343 memcpy(&fUniforms[1], &fState.fAge, sizeof(EffectState)); in runParticleScript()
366 if (fState.fAge == 0.0f && fState.fLoopCount == 0) { in advanceTime()
370 fState.fAge += deltaTime / fState.fLifetime; in advanceTime()
371 if (fState.fAge > 1) { in advanceTime()
374 fState.fLoopCount += sk_float_floor2int(fState.fAge); in advanceTime()
375 fState.fAge = fmodf(fState.fAge, 1.0f); in advanceTime()
403 fState.fPosition += fState.fVelocity * deltaTime; in advanceTime()
404 float s = sk_float_sin(fState.fSpin * deltaTime), in advanceTime()
405 c = sk_float_cos(fState.fSpin * deltaTime); in advanceTime()
407 fState.fHeading.setNormalize(fState.fHeading.fX * c - fState.fHeading.fY * s, in advanceTime()
408 fState.fHeading.fX * s + fState.fHeading.fY * c); in advanceTime()
412 float desired = fState.fRate * deltaTime + fSpawnRemainder + fState.fBurst; in advanceTime()
413 fState.fBurst = 0; in advanceTime()
422 fState.fRandom = advance_seed(fState.fRandom); in advanceTime()
425 fParticles.fData[SkParticles::kPositionX ][fCount] = fState.fPosition.fX; in advanceTime()
426 fParticles.fData[SkParticles::kPositionY ][fCount] = fState.fPosition.fY; in advanceTime()
427 fParticles.fData[SkParticles::kHeadingX ][fCount] = fState.fHeading.fX; in advanceTime()
428 fParticles.fData[SkParticles::kHeadingY ][fCount] = fState.fHeading.fY; in advanceTime()
429 fParticles.fData[SkParticles::kScale ][fCount] = fState.fScale; in advanceTime()
430 fParticles.fData[SkParticles::kVelocityX ][fCount] = fState.fVelocity.fX; in advanceTime()
431 fParticles.fData[SkParticles::kVelocityY ][fCount] = fState.fVelocity.fY; in advanceTime()
432 fParticles.fData[SkParticles::kVelocityAngular][fCount] = fState.fSpin; in advanceTime()
433 fParticles.fData[SkParticles::kColorR ][fCount] = fState.fColor.fR; in advanceTime()
434 fParticles.fData[SkParticles::kColorG ][fCount] = fState.fColor.fG; in advanceTime()
435 fParticles.fData[SkParticles::kColorB ][fCount] = fState.fColor.fB; in advanceTime()
436 fParticles.fData[SkParticles::kColorA ][fCount] = fState.fColor.fA; in advanceTime()
437 fParticles.fData[SkParticles::kSpriteFrame ][fCount] = fState.fFrame; in advanceTime()
438 fParticles.fData[SkParticles::kRandom ][fCount] = fState.fRandom; in advanceTime()