X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2d.cpp;fp=source%2Ftexture2d.cpp;h=72c84428ab6115ec4823a62d0264e0e21e989886;hp=abdfe0d1569ca50d7f06e15531e5e01997cb47bc;hb=fb5ca4dbba257d3eb7fa15800d9663b774e41e7e;hpb=47f817343df1d06d91a4f7c4d5b47df40b24366c diff --git a/source/texture2d.cpp b/source/texture2d.cpp index abdfe0d1..72c84428 100644 --- a/source/texture2d.cpp +++ b/source/texture2d.cpp @@ -210,6 +210,7 @@ void Texture2D::Loader::init() { add("raw_data", &Loader::raw_data); add("storage", &Loader::storage); + add("storage", &Loader::storage_levels); } void Texture2D::Loader::raw_data(const string &data) @@ -222,6 +223,11 @@ void Texture2D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h) obj.storage(fmt, w, h); } +void Texture2D::Loader::storage_levels(PixelFormat fmt, unsigned w, unsigned h, unsigned l) +{ + obj.storage(fmt, w, h, l); +} + Texture2D::AsyncLoader::AsyncLoader(Texture2D &t, IO::Seekable &i): texture(t),