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