Go to the source code of this file.
|
static void | draw_atlas (SkCanvas *canvas, SkImage *atlas, const SkRSXform xform[], const SkRect tex[], const SkColor colors[], int count, const SkRect *cull, const SkSamplingOptions &sampling, const SkPaint *paint) |
|
static void | draw_atlas_sim (SkCanvas *canvas, SkImage *atlas, const SkRSXform xform[], const SkRect tex[], const SkColor colors[], int count, const SkRect *cull, const SkSamplingOptions &sampling, const SkPaint *paint) |
|
◆ DrawAtlasProc
◆ draw_atlas()
Definition at line 27 of file ShipSlide.cpp.
29 {
32}
void drawAtlas(const SkImage *atlas, const SkRSXform xform[], const SkRect tex[], const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions &sampling, const SkRect *cullRect, const SkPaint *paint)
◆ draw_atlas_sim()
Definition at line 34 of file ShipSlide.cpp.
36 {
37 for (
int i = 0; i <
count; ++i) {
39 matrix.setRSXform(xform[i]);
40
43 canvas->
drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].
x(), -tex[i].
y()),
46 }
47}
@ kFast_SrcRectConstraint
sample outside bounds; faster
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
void concat(const SkMatrix &matrix)
unsigned useCenter Optional< SkMatrix > matrix
◆ kGrid
◆ kHeight
◆ kWidth