32#include "texture_cube.h"
106 const Rect &src_rect,
115 const Rect &src_rect,
Interface to drawing graphics.
Definition graphic_context.h:257
Pixel data container.
Definition pixel_buffer.h:68
2D (x,y) point structure - Integer
Definition point.h:62
2D (left,top,right,bottom) rectangle structure - Integer
Definition rect.h:446
2D (width,height) size structure - Integer
Definition size.h:176
TextureCubeArray(const std::shared_ptr< Texture_Impl > &impl)
Constructs a texture from an implementation.
Definition texture_cube_array.h:49
TextureCubeArray(GraphicContext &context, int width, int height, int array_size, TextureFormat texture_format=TextureFormat::rgba8, int levels=1)
Constructs a Texture.
void set_image(GraphicContext &context, int array_index, TextureCubeDirection cube_direction, PixelBuffer &image, int level=0)
Upload image to texture.
int get_array_size() const
Get the texture array size.
int get_width() const
Get the texture width.
TextureCubeArray(GraphicContext &context, const Size &size, int array_size, TextureFormat texture_format=TextureFormat::rgba8, int levels=1)
Constructs a Texture.
void set_subimage(GraphicContext &context, int array_index, TextureCubeDirection cube_direction, const Point &point, const PixelBuffer &image, const Rect &src_rect, int level=0)
TextureCubeArray()
Constructs a null instance.
Size get_size() const
Get the texture size.
void set_subimage(GraphicContext &context, int array_index, TextureCubeDirection cube_direction, int x, int y, const PixelBuffer &image, const Rect &src_rect, int level=0)
Upload image to sub texture.
int get_height() const
Get the texture height.
std::shared_ptr< Texture_Impl > impl
Definition texture.h:250
Texture()
Constructs a null instance.
TextureFormat
Texture format.
Definition texture_format.h:39
TextureCubeDirection
Texture cube directions.
Definition texture_cube.h:41
@ rgba8
Definition texture_format.h:41
@ point
Definition graphic_context.h:78
@ image
Definition brush.h:54