+#include <msp/gl/extensions/msp_texture1d.h>
#include "bindable.h"
#include "error.h"
#include "texture1d.h"
Texture1D::Texture1D():
Texture(GL_TEXTURE_1D),
+ ifmt(RGB),
width(0),
allocated(0)
-{ }
+{
+ static Require _req(MSP_texture1D);
+}
void Texture1D::storage(PixelFormat fmt, unsigned wd)
{
return width>>level;
}
+UInt64 Texture1D::get_data_size() const
+{
+ return id ? width*get_pixel_size(ifmt) : 0;
+}
+
} // namespace GL
} // namespace Msp