1 #ifndef MSP_GL_TEXTURE1D_H_
2 #define MSP_GL_TEXTURE1D_H_
5 #include "texture1d_backend.h"
10 class Texture1D: public Texture1DBackend
12 friend Texture1DBackend;
15 class Loader: public DataFile::DerivedObjectLoader<Texture1D, Texture::Loader>
19 Loader(Texture1D &, Collection &);
23 void raw_data(const std::string &);
24 void storage(PixelFormat, unsigned);
25 void storage_levels(PixelFormat, unsigned, unsigned);
33 void storage(PixelFormat, unsigned, unsigned = 0);
35 void image(unsigned, const void *);
36 void sub_image(unsigned, int, unsigned, const void *);
37 virtual void image(const Graphics::Image &, unsigned = 0);
39 unsigned get_width() const { return width; }
42 unsigned get_n_levels() const;
43 unsigned get_level_size(unsigned) const;
46 virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
47 virtual std::uint64_t get_data_size() const;
48 virtual void unload() { }