X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture3d.cpp;h=496b5f1fbe80370fefda9e169ad428d98464d274;hb=8e58fc4da8443cb67fe4cd70d6f68de2be73011d;hp=0125dd0930a16a8a5dbc6cb5fe3c025cfdaddab9;hpb=4365124bd39bd6edbda6eaef64ec72a1a10565f8;p=libs%2Fgl.git diff --git a/source/core/texture3d.cpp b/source/core/texture3d.cpp index 0125dd09..496b5f1f 100644 --- a/source/core/texture3d.cpp +++ b/source/core/texture3d.cpp @@ -91,11 +91,6 @@ LinAl::Vector Texture3D::get_level_size(unsigned level) const return LinAl::Vector(w, h, d); } -uint64_t Texture3D::get_data_size() const -{ - return id ? width*height*depth*get_pixel_size(storage_fmt) : 0; -} - Texture3D::Loader::Loader(Texture3D &t): DataFile::DerivedObjectLoader(t) @@ -111,16 +106,10 @@ Texture3D::Loader::Loader(Texture3D &t, Collection &c): void Texture3D::Loader::init() { - add("raw_data", &Loader::raw_data); add("storage", &Loader::storage); add("storage", &Loader::storage_levels); } -void Texture3D::Loader::raw_data(const string &data) -{ - obj.image(0, data.data()); -} - void Texture3D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h, unsigned d) { obj.storage(fmt, w, h, d);