X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexturecube_backend.cpp;h=2b9e09a9c90ecb9a0f27ce48b37e1b9ae747de97;hp=39169612a450b46b1216cdea9f22c1450475e42e;hb=f73e671dcb36c097647cddbf5b1eaaad2ffc9299;hpb=9e63512930bc7dace6dc169c65161961e5dcfcf6 diff --git a/source/backends/opengl/texturecube_backend.cpp b/source/backends/opengl/texturecube_backend.cpp index 39169612..2b9e09a9 100644 --- a/source/backends/opengl/texturecube_backend.cpp +++ b/source/backends/opengl/texturecube_backend.cpp @@ -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(this)->size; + return id ? size*size*6*get_pixel_size(storage_fmt) : 0; +} + + unsigned get_gl_cube_face(unsigned face) { switch(static_cast(face))