• Home
  • Raw
  • Download

Lines Matching +full:ship +full:- +full:to

4  * Use of this source code is governed by a BSD-style license that can be
30 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, sampling, in draw_atlas()
41 canvas->save(); in draw_atlas_sim()
42 canvas->concat(matrix); in draw_atlas_sim()
43 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), in draw_atlas_sim()
45 canvas->restore(); in draw_atlas_sim()
58 fAtlas = ToolUtils::GetResourceAsImage("images/ship.png"); in load()
60 SkDebugf("\nCould not decode file ship.png. Falling back to penguin mode.\n"); in load()
64 " to set the resourcePath?\n"); in load()
69 SkScalar anchorX = fAtlas->width()*0.5f; in load()
70 SkScalar anchorY = fAtlas->height()*0.5f; in load()
74 float xPos = (x / (kGrid - 1.0f)) * kWidth; in load()
75 float yPos = (y / (kGrid - 1.0f)) * kWidth; in load()
78 SkIntToScalar(fAtlas->width()), in load()
79 SkIntToScalar(fAtlas->height())); in load()
86 SkIntToScalar(fAtlas->width()), in load()
87 SkIntToScalar(fAtlas->height())); in load()
107 SkScalar anchorX = fAtlas->width()*0.5f; in draw()
108 SkScalar anchorY = fAtlas->height()*0.5f; in draw()
113 SkScalar dx = c*anchorX - s*anchorY; in draw()
116 fXform[i].fSCos = kCosDiff*c - kSinDiff*s; in draw()
119 dx -= fXform[i].fSCos*anchorX - fXform[i].fSSin*anchorY; in draw()
120 dy -= fXform[i].fSSin*anchorX + fXform[i].fSCos*anchorY; in draw()
131 //SkScalar angle = SkDoubleToScalar(fmod(1e-9 * nanos * 360 / 24, 360)); in animate()
132 //fAnimatingDrawable->setSweep(angle); in animate()