| 956 | } |
| 957 | |
| 958 | bool Image::LoadArrayFromMemory(const void* data, std::size_t size, const ImageParams& imageParams, const Vector2ui& atlasSize) |
| 959 | { |
| 960 | Image image; |
| 961 | if (!image.LoadFromMemory(data, size, imageParams)) |
| 962 | { |
| 963 | NazaraError("Failed to load image"); |
| 964 | return false; |
| 965 | } |
| 966 | |
| 967 | return LoadArrayFromImage(image, atlasSize); |
| 968 | } |
| 969 | |
| 970 | bool Image::LoadArrayFromStream(Stream& stream, const ImageParams& imageParams, const Vector2ui& atlasSize) |
| 971 | { |
nothing calls this directly
no test coverage detected