unsigned size = static_cast<const TextureCube *>(this)->size;
unsigned levels = static_cast<const TextureCube *>(this)->levels;
+ if(!id)
+ create();
+
GLenum gl_fmt = get_gl_pixelformat(storage_fmt);
if(ARB_texture_storage)
{
}
}
+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))