| 229 | } |
| 230 | |
| 231 | XYPathPtr XYPath::NewCatmullRomPath(u16 width, u16 height, |
| 232 | const fl::shared_ptr<CatmullRomParams> ¶ms) { |
| 233 | CatmullRomPathPtr path = fl::make_shared<CatmullRomPath>(params); |
| 234 | XYPathPtr out = fl::make_shared<XYPath>(path); |
| 235 | if (width > 0 && height > 0) { |
| 236 | out->setDrawBounds(width, height); |
| 237 | } |
| 238 | return out; |
| 239 | } |
| 240 | |
| 241 | XYPathPtr XYPath::NewCustomPath(const fl::function<vec2f(float)> &f, |
| 242 | const rect<i16> &drawbounds, |
nothing calls this directly
no test coverage detected