| 36 | } |
| 37 | |
| 38 | void Blend2d::add(Fx2dPtr layer, const Params &p) { |
| 39 | if (!layer->getXYMap().isRectangularGrid()) { |
| 40 | if (!getXYMap().isRectangularGrid()) { |
| 41 | FL_WARN("Blend2d has a xymap, but so does the Sub layer " << layer->fxName() << ", the sub layer will have it's map replaced with a rectangular map, to avoid double transformation."); |
| 42 | layer->setXYMap(XYMap::constructRectangularGrid(layer->getWidth(), layer->getHeight())); |
| 43 | } |
| 44 | } |
| 45 | u8 blurAmount = p.blur_amount; |
| 46 | u8 blurPasses = p.blur_passes; |
| 47 | Entry entry(layer, blurAmount, blurPasses); |
| 48 | mLayers.push_back(entry); |
| 49 | } |
| 50 | |
| 51 | void Blend2d::add(Fx2d &layer, const Params &p) { |
| 52 | Fx2dPtr fx = fl::make_shared_no_tracking(layer); |
nothing calls this directly
no test coverage detected