+ static_cast<Texture2D &>(obj).image(img);
+}
+
+void Texture2D::Loader::raw_data(const string &data)
+{
+ Texture2D &t2d = static_cast<Texture2D &>(obj);
+ t2d.image(0, t2d.ifmt, UNSIGNED_BYTE, data.data());
+}
+
+void Texture2D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h, unsigned b)
+{
+ static_cast<Texture2D &>(obj).storage(fmt, w, h, b);