unsigned depth = static_cast<const Texture3D *>(this)->depth;
unsigned levels = static_cast<const Texture3D *>(this)->levels;
+ if(!id)
+ create();
+
GLenum gl_fmt = get_gl_pixelformat(storage_fmt);
if(ARB_texture_storage)
{
return target==GL_TEXTURE_2D_ARRAY;
}
+size_t OpenGLTexture3D::get_data_size() const
+{
+ unsigned width = static_cast<const Texture3D *>(this)->width;
+ unsigned height = static_cast<const Texture3D *>(this)->height;
+ unsigned depth = static_cast<const Texture3D *>(this)->depth;
+ return id ? width*height*depth*get_pixel_size(storage_fmt) : 0;
+}
+
} // namespace GL
} // namespace Msp