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