| 532 | } |
| 533 | |
| 534 | ImageConstPtr Assets::tryImage(AssetPath const& path) const { |
| 535 | validatePath(path, true, true); |
| 536 | |
| 537 | if (auto imageData = as<ImageData>(tryAsset(AssetId{AssetType::Image, path}))) |
| 538 | return imageData->image; |
| 539 | else |
| 540 | return {}; |
| 541 | } |
| 542 | |
| 543 | FramesSpecificationConstPtr Assets::imageFrames(String const& path) const { |
| 544 | auto components = AssetPath::split(path); |
no test coverage detected