Skia
2DGraphicsLibrary
|
Public Member Functions | |
SkPaint * | addLayer (const LayerInfo &) |
Call for each layer you want to add (from top to bottom). More... | |
void | addLayer (SkScalar dx, SkScalar dy) |
This layer will draw with the original paint, at the specified offset. | |
void | addLayer () |
This layer will with the original paint and no offset. | |
SkPaint * | addLayerOnTop (const LayerInfo &) |
Similar to addLayer, but adds a layer to the top. | |
sk_sp< SkDrawLooper > | detach () |
Pass list of layers on to newly built looper and return it. More... | |
Private Attributes | |
Rec * | fRecs |
Rec * | fTopRec |
int | fCount |
Call for each layer you want to add (from top to bottom).
This returns a paint you can modify, but that ptr is only valid until the next call made to addLayer().
sk_sp<SkDrawLooper> SkLayerDrawLooper::Builder::detach | ( | ) |
Pass list of layers on to newly built looper and return it.
This will also reset the builder, so it can be used to build another looper.