Interface to drawing graphics.
Definition graphic_context.h:257
2D texture cube array object class.
Definition texture_cube_array.h:41
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.
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.
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.
std::shared_ptr< Texture_Impl > impl
Definition texture.h:250