#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-void Texture::Loader::external_image(const string &fn)
+void Texture::Loader::load_external_image(Graphics::Image &img, const std::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);
+}
+void Texture::Loader::external_image(const string &fn)
+{
+ Graphics::Image img;
+ load_external_image(img, fn);
obj.image(img, get_levels(), srgb);
}