Lines Matching +full:ship +full:- +full:to
4 * Use of this source code is governed by a BSD-style license that can be
29 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, sampling, in draw_atlas()
40 canvas->save(); in draw_atlas_sim()
41 canvas->concat(matrix); in draw_atlas_sim()
42 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), in draw_atlas_sim()
44 canvas->restore(); in draw_atlas_sim()
52 fAtlas = GetResourceAsImage("images/ship.png"); in DrawShipView()
54 SkDebugf("\nCould not decode file ship.png. Falling back to penguin mode.\n"); in DrawShipView()
58 " to set the resourcePath?\n"); in DrawShipView()
63 SkScalar anchorX = fAtlas->width()*0.5f; in DrawShipView()
64 SkScalar anchorY = fAtlas->height()*0.5f; in DrawShipView()
68 float xPos = (x / (kGrid - 1.0f)) * kWidth; in DrawShipView()
69 float yPos = (y / (kGrid - 1.0f)) * kWidth; in DrawShipView()
72 SkIntToScalar(fAtlas->width()), in DrawShipView()
73 SkIntToScalar(fAtlas->height())); in DrawShipView()
80 SkIntToScalar(fAtlas->width()), in DrawShipView()
81 SkIntToScalar(fAtlas->height())); in DrawShipView()
103 SkScalar anchorX = fAtlas->width()*0.5f; in onDrawContent()
104 SkScalar anchorY = fAtlas->height()*0.5f; in onDrawContent()
109 SkScalar dx = c*anchorX - s*anchorY; in onDrawContent()
112 fXform[i].fSCos = kCosDiff*c - kSinDiff*s; in onDrawContent()
115 dx -= fXform[i].fSCos*anchorX - fXform[i].fSSin*anchorY; in onDrawContent()
116 dy -= fXform[i].fSSin*anchorX + fXform[i].fSCos*anchorY; in onDrawContent()
127 //SkScalar angle = SkDoubleToScalar(fmod(1e-9 * nanos * 360 / 24, 360)); in onAnimate()
128 //fAnimatingDrawable->setSweep(angle); in onAnimate()