• Home
  • Raw
  • Download

Lines Matching refs:fParticles

439         fParticles.fData[SkParticles::kAge][i] +=  in update()
440 fParticles.fData[SkParticles::kLifetime][i] * deltaTime; in update()
441 if (fParticles.fData[SkParticles::kAge][i] > 1.0f) { in update()
444 fParticles.fData[j][i] = fParticles.fData[j][fCount - 1]; in update()
480 fParticles.fData[SkParticles::kAge ][fCount] = 0.0f; in update()
481 fParticles.fData[SkParticles::kLifetime ][fCount] = 0.0f; in update()
482 fParticles.fData[SkParticles::kPositionX ][fCount] = 0.0f; in update()
483 fParticles.fData[SkParticles::kPositionY ][fCount] = 0.0f; in update()
484 fParticles.fData[SkParticles::kHeadingX ][fCount] = 0.0f; in update()
485 fParticles.fData[SkParticles::kHeadingY ][fCount] = -1.0f; in update()
486 fParticles.fData[SkParticles::kScale ][fCount] = 1.0f; in update()
487 fParticles.fData[SkParticles::kVelocityX ][fCount] = 0.0f; in update()
488 fParticles.fData[SkParticles::kVelocityY ][fCount] = 0.0f; in update()
489 fParticles.fData[SkParticles::kVelocityAngular][fCount] = 0.0f; in update()
490 fParticles.fData[SkParticles::kColorR ][fCount] = 1.0f; in update()
491 fParticles.fData[SkParticles::kColorG ][fCount] = 1.0f; in update()
492 fParticles.fData[SkParticles::kColorB ][fCount] = 1.0f; in update()
493 fParticles.fData[SkParticles::kColorA ][fCount] = 1.0f; in update()
494 fParticles.fData[SkParticles::kSpriteFrame ][fCount] = 0.0f; in update()
495 fParticles.fRandom[fCount] = fRandom; in update()
500 runProgram(fParams.get(), "spawn", fParticles, updateParams, spawnBase, numToSpawn); in update()
505 fParticles.fData[SkParticles::kLifetime][i] = in update()
506 sk_ieee_float_divide(1.0f, fParticles.fData[SkParticles::kLifetime][i]); in update()
507 fStableRandoms[i] = fParticles.fRandom[i]; in update()
513 fParticles.fRandom[i] = fStableRandoms[i]; in update()
517 runProgram(fParams.get(), "update", fParticles, updateParams, 0, fCount); in update()
521 fParticles.fData[SkParticles::kPositionX][i] += in update()
522 fParticles.fData[SkParticles::kVelocityX][i] * deltaTime; in update()
523 fParticles.fData[SkParticles::kPositionY][i] += in update()
524 fParticles.fData[SkParticles::kVelocityY][i] * deltaTime; in update()
526 SkScalar s = SkScalarSin(fParticles.fData[SkParticles::kVelocityAngular][i] * deltaTime), in update()
527 c = SkScalarCos(fParticles.fData[SkParticles::kVelocityAngular][i] * deltaTime); in update()
528 float oldHeadingX = fParticles.fData[SkParticles::kHeadingX][i], in update()
529 oldHeadingY = fParticles.fData[SkParticles::kHeadingY][i]; in update()
530 fParticles.fData[SkParticles::kHeadingX][i] = oldHeadingX * c - oldHeadingY * s; in update()
531 fParticles.fData[SkParticles::kHeadingY][i] = oldHeadingX * s + oldHeadingY * c; in update()
544 fParams->fDrawable->draw(canvas, fParticles, fCount, &paint); in draw()
550 fParticles.fData[i].realloc(capacity); in setCapacity()
552 fParticles.fRandom.realloc(capacity); in setCapacity()