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