X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture1d.h;fp=source%2Ftexture1d.h;h=b0a9c681e2c4917d05d3a108289d9515a308515b;hp=eb16696f988811ca237d7c0bebd2e158622c6cbb;hb=9087cc0a372b9c739f15398c7a22c0a6eb5041bb;hpb=a8a04ddd95e57a8f103c04dba317addc32866689 diff --git a/source/texture1d.h b/source/texture1d.h index eb16696f..b0a9c681 100644 --- a/source/texture1d.h +++ b/source/texture1d.h @@ -31,9 +31,13 @@ public: Texture1D(); void storage(PixelFormat, unsigned, unsigned = 0); + + DEPRECATED void storage(PixelComponents c, unsigned w, unsigned l = 0) + { storage(make_pixelformat(c, UNSIGNED_BYTE), w, l); } + void allocate(unsigned); - void image(unsigned, PixelFormat, DataType, const void *); - void sub_image(unsigned, int, unsigned, PixelFormat, DataType, const void *); + void image(unsigned, PixelComponents, DataType, const void *); + void sub_image(unsigned, int, unsigned, PixelComponents, DataType, const void *); virtual void image(const Graphics::Image &, unsigned, bool = false); using Texture::image; unsigned get_width() const { return width; }