Interface to drawing graphics.
Definition graphic_context.h:257
void set_image(GraphicContext &context, PixelBuffer &image, int depth, int level=0)
Upload image to texture.
Texture3D()
Constructs a null instance.
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
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.
TextureWrapMode get_wrap_mode_r() const
Get the texture wrap mode for the r coordinate.
Texture3D(GraphicContext &context, const Vec3i &size, TextureFormat texture_format=TextureFormat::rgba8, int levels=1)
Constructs a Texture.
std::shared_ptr< Texture_Impl > impl
Definition texture.h:250
Texture()
Constructs a null instance.