virtual int size() const =0
Get the texture width.
static std::shared_ptr< Texture1D > create(const GraphicContextPtr &context, int size, TextureFormat texture_format=tf_rgba8, int levels=1)
Constructs a 1D texture.
virtual void set_image(const GraphicContextPtr &context, const PixelBufferPtr &image, int level=0)=0
Upload image to texture.
1D texture object class.
Definition: texture_1d.h:37
virtual TextureWrapMode wrap_mode_s() const =0
Get the texture wrap mode for the s coordinate.
virtual void set_subimage(const GraphicContextPtr &context, int x, const PixelBufferPtr &image, const int src_x, const int src_width, int level=0)=0
Upload image to sub texture.
virtual void set_wrap_mode(TextureWrapMode wrap_s)=0