Home
last modified time | relevance | path

Searched refs:fShip (Results 1 – 2 of 2) sorted by relevance

/external/skia/samplecode/
DSampleLitAtlas.cpp35 fShip.initShip(fBounds, &fDiffTex[kNumAsteroids], &fNormTex[kNumAsteroids]); in DrawLitAtlasDrawable()
57 SkScalar newRot = SkScalarMod(fShip.rot() + (2*SK_ScalarPI - SK_ScalarPI/32.0f), in left()
59 fShip.setRot(newRot); in left()
63 SkScalar newRot = SkScalarMod(fShip.rot() + SK_ScalarPI/32.0f, 2 * SK_ScalarPI); in right()
64 fShip.setRot(newRot); in right()
69 SkScalar s = SkScalarSinCos(fShip.rot(), &c); in thrust()
71 SkVector newVel = fShip.velocity(); in thrust()
80 fShip.setVelocity(newVel); in thrust()
96 fShip.advance(fBounds); in onDraw()
97 xforms[kNumAsteroids] = fShip.asRSXform(); in onDraw()
[all …]
/external/skqp/samplecode/
DSampleLitAtlas.cpp35 fShip.initShip(fBounds, &fDiffTex[kNumAsteroids], &fNormTex[kNumAsteroids]); in DrawLitAtlasDrawable()
57 SkScalar newRot = SkScalarMod(fShip.rot() + (2*SK_ScalarPI - SK_ScalarPI/32.0f), in left()
59 fShip.setRot(newRot); in left()
63 SkScalar newRot = SkScalarMod(fShip.rot() + SK_ScalarPI/32.0f, 2 * SK_ScalarPI); in right()
64 fShip.setRot(newRot); in right()
69 SkScalar s = SkScalarSinCos(fShip.rot(), &c); in thrust()
71 SkVector newVel = fShip.velocity(); in thrust()
80 fShip.setVelocity(newVel); in thrust()
96 fShip.advance(fBounds); in onDraw()
97 xforms[kNumAsteroids] = fShip.asRSXform(); in onDraw()
[all …]