1 #ifndef MSP_GL_TEXTURE1D_H_
2 #define MSP_GL_TEXTURE1D_H_
9 class Texture1D: public Texture
12 class Loader: public DataFile::DerivedObjectLoader<Texture1D, Texture::Loader>
16 Loader(Texture1D &, Collection &);
20 void raw_data(const std::string &);
21 void storage(PixelFormat, unsigned);
22 void storage_levels(PixelFormat, unsigned, unsigned);
33 void storage(PixelFormat, unsigned, unsigned = 0);
35 DEPRECATED void storage(PixelComponents c, unsigned w, unsigned l = 0)
36 { storage(make_pixelformat(c, UNSIGNED_BYTE), w, l); }
38 void allocate(unsigned);
39 void image(unsigned, const void *);
40 DEPRECATED void image(unsigned, PixelComponents, DataType, const void *);
41 void sub_image(unsigned, int, unsigned, const void *);
42 DEPRECATED void sub_image(unsigned, int, unsigned, PixelComponents, DataType, const void *);
43 virtual void image(const Graphics::Image &, unsigned = 0);
45 unsigned get_width() const { return width; }
48 unsigned get_n_levels() const;
49 unsigned get_level_size(unsigned) const;
52 virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
53 virtual UInt64 get_data_size() const;
54 virtual void unload() { }