52 virtual int width()
const = 0;
55 virtual int height()
const = 0;
58 virtual int depth()
const = 0;
virtual void set_wrap_mode(TextureWrapMode wrap_s, TextureWrapMode wrap_t, TextureWrapMode wrap_r)=0
Set the texture wrapping mode.
Texture object class.
Definition: texture.h:94
static std::shared_ptr< Texture3D > create(const GraphicContextPtr &context, int width, int height, int depth, TextureFormat texture_format=tf_rgba8, int levels=1)
Constructs a 3D texture.
Vec3< int > Vec3i
Definition: vec3.h:409
virtual TextureWrapMode wrap_mode_r() const =0
Get the texture wrap mode for the r coordinate.
virtual TextureWrapMode wrap_mode_t() const =0
Get the texture wrap mode for the t coordinate.
virtual TextureWrapMode wrap_mode_s() const =0
Get the texture wrap mode for the s coordinate.
virtual int width() const =0
Get the texture width.
TextureFormat
Texture format.
Definition: texture_format.h:35
Definition: texture_format.h:38
3D texture object class.
Definition: texture_3d.h:37
virtual int depth() const =0
Get the texture depth.
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:491
virtual void set_image(const GraphicContextPtr &context, const PixelBufferPtr &image, int depth, int level=0)=0
Upload image to texture.
std::shared_ptr< PixelBuffer > PixelBufferPtr
Definition: d3d_target.h:39
std::shared_ptr< GraphicContext > GraphicContextPtr
Definition: d3d_target.h:49
virtual void set_subimage(const GraphicContextPtr &context, int x, int y, int z, const PixelBufferPtr &image, const Rect &src_rect, int level=0)=0
Upload image to sub texture.
TextureWrapMode
Texture coordinate wrapping modes.
Definition: texture.h:56
virtual int height() const =0
Get the texture height.
Definition: Application/application.h:35
Vec3i size() const
Get the texture size.
Definition: texture_3d.h:61