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);
32 void storage(PixelFormat, unsigned);
33 void allocate(unsigned);
34 void image(unsigned, PixelFormat, DataType, const void *);
35 void sub_image(unsigned, int, unsigned, PixelFormat, DataType, const void *);
36 virtual void image(const Graphics::Image &, bool = false);
37 unsigned get_width() const { return width; }
40 unsigned get_level_size(unsigned);
43 virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }
44 virtual UInt64 get_data_size() const;
45 virtual void unload() { }