123 const Rect &src_rect,
3D texture object class.
Definition: texture_3d.h:41
TextureWrapMode
Texture coordinate wrapping modes.
Definition: texture.h:65
Texture object class.
Definition: texture.h:103
Pixel data container.
Definition: pixel_buffer.h:68
void set_image(GraphicContext &context, PixelBuffer &image, int depth, int level=0)
Upload image to texture.
Vec3i get_size() const
Get the texture size.
void set_subimage(GraphicContext &context, int x, int y, int z, const PixelBuffer &image, const Rect &src_rect, int level=0)
Upload image to sub texture.
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:470
void set_wrap_mode(TextureWrapMode wrap_s, TextureWrapMode wrap_t, TextureWrapMode wrap_r)
Set the texture wrapping mode.
std::shared_ptr< Texture_Impl > impl
Definition: texture.h:271
Texture3D(const std::shared_ptr< Texture_Impl > &impl)
Constructs a texture from an implementation.
Definition: texture_3d.h:52
TextureFormat
Texture format.
Definition: texture_format.h:40
Interface to drawing graphics.
Definition: graphic_context.h:257
int get_depth() const
Get the texture depth.
int get_height() const
Get the texture height.
int get_width() const
Get the texture width.
TextureWrapMode get_wrap_mode_t() const
Get the texture wrap mode for the t coordinate.
TextureWrapMode get_wrap_mode_s() const
Get the texture wrap mode for the s coordinate.
Texture3D()
Constructs a null instance.
Definition: texture_format.h:43
TextureWrapMode get_wrap_mode_r() const
Get the texture wrap mode for the r coordinate.