121 const Rect &src_rect,
129 const Rect &src_rect,
void set_subimage(GraphicContext &context, TextureCubeDirection cube_direction, int x, int y, const PixelBuffer &image, const Rect &src_rect, int level=0)
Upload image to sub texture.
Texture object class.
Definition: texture.h:103
Pixel data container.
Definition: pixel_buffer.h:68
Definition: texture_cube.h:44
Size get_size() const
Get the texture size.
Definition: texture_cube.h:48
Definition: texture_cube.h:45
TextureCubeDirection
Texture cube directions.
Definition: texture_cube.h:41
Definition: texture_cube.h:47
2D texture cube object class.
Definition: texture_cube.h:52
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:470
Definition: texture_cube.h:43
TextureCube(const std::shared_ptr< Texture_Impl > &impl)
Constructs a texture from an implementation.
Definition: texture_cube.h:63
int get_width() const
Get the texture width.
std::shared_ptr< Texture_Impl > impl
Definition: texture.h:271
TextureFormat
Texture format.
Definition: texture_format.h:40
Interface to drawing graphics.
Definition: graphic_context.h:257
2D (x,y) point structure - Integer
Definition: point.h:62
int get_height() const
Get the texture height.
2D (width,height) size structure - Integer
Definition: size.h:156
Definition: texture_cube.h:46
TextureCube()
Constructs a null instance.
Definition: texture_format.h:43
void set_image(GraphicContext &context, TextureCubeDirection cube_direction, PixelBuffer &image, int level=0)
Upload image to texture.