• 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
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()
53 fAtlas = GetResourceAsImage("images/ship.png"); in DrawShipSlide()
55 SkDebugf("\nCould not decode file ship.png. Falling back to penguin mode.\n"); in DrawShipSlide()
59 " to set the resourcePath?\n"); in DrawShipSlide()
64 SkScalar anchorX = fAtlas->width()*0.5f; in DrawShipSlide()
65 SkScalar anchorY = fAtlas->height()*0.5f; in DrawShipSlide()
69 float xPos = (x / (kGrid - 1.0f)) * kWidth; in DrawShipSlide()
70 float yPos = (y / (kGrid - 1.0f)) * kWidth; in DrawShipSlide()
73 SkIntToScalar(fAtlas->width()), in DrawShipSlide()
74 SkIntToScalar(fAtlas->height())); in DrawShipSlide()
81 SkIntToScalar(fAtlas->width()), in DrawShipSlide()
82 SkIntToScalar(fAtlas->height())); in DrawShipSlide()
98 SkScalar anchorX = fAtlas->width()*0.5f; in draw()
99 SkScalar anchorY = fAtlas->height()*0.5f; in draw()
104 SkScalar dx = c*anchorX - s*anchorY; in draw()
107 fXform[i].fSCos = kCosDiff*c - kSinDiff*s; in draw()
110 dx -= fXform[i].fSCos*anchorX - fXform[i].fSSin*anchorY; in draw()
111 dy -= fXform[i].fSSin*anchorX + fXform[i].fSCos*anchorY; in draw()
122 //SkScalar angle = SkDoubleToScalar(fmod(1e-9 * nanos * 360 / 24, 360)); in animate()
123 //fAnimatingDrawable->setSweep(angle); in animate()