void Texture2DArray::Loader::external_image(unsigned z, const string &fn)
{
Graphics::Image img;
- RefPtr<IO::Seekable> io = get_collection().open_raw(fn);
- if(!io)
- throw IO::file_not_found(fn);
- img.load_io(*io);
-
+ load_external_image(img, fn);
obj.layer_image(0, z, img);
}