Go to the source code of this file.
|
| REG_FIDDLE (Canvas_drawAtlas_2, 256, 256, false, 3) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_drawAtlas_2 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file Canvas_drawAtlas_2.cpp.
4 {
6
8 SkRect tex[] = { { 0, 0, 250, 250 }, { 0, 0, 250, 250 } };
15}
16}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
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)
sk_sp< const SkImage > image
PODArray< SkRSXform > xforms
PODArray< SkColor > colors
SkSamplingOptions sampling