]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/texturecube_backend.cpp
Move the Resource function override of Texture classes into backend
[libs/gl.git] / source / backends / opengl / texturecube_backend.cpp
index 39169612a450b46b1216cdea9f22c1450475e42e..2b9e09a9c90ecb9a0f27ce48b37e1b9ae747de97 100644 (file)
@@ -75,6 +75,13 @@ void OpenGLTextureCube::sub_image(unsigned face, unsigned level, int x, int y, u
        }
 }
 
+size_t OpenGLTextureCube::get_data_size() const
+{
+       unsigned size = static_cast<const TextureCube *>(this)->size;
+       return id ? size*size*6*get_pixel_size(storage_fmt) : 0;
+}
+
+
 unsigned get_gl_cube_face(unsigned face)
 {
        switch(static_cast<TextureCubeFace>(face))