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