43 class TextureGroup_Impl;
67 explicit operator bool()
const {
return bool(impl); }
110 std::shared_ptr<TextureGroup_Impl> impl;
Sub-texture description.
Definition: subtexture.h:44
void throw_if_null() const
Throw an exception if this object is invalid.
void set_texture_allocation_policy(TextureAllocationPolicy policy)
Set the texture allocation policy.
Definition: texture_group.h:54
TextureGroup()
Constructs a null instance.
int get_texture_count() const
Returns the amount of textures used by group.
Definition: texture_group.h:53
std::vector< Texture2D > get_textures() const
Returns the textures.
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:488
2D texture object class.
Definition: texture_2d.h:40
Texture grouping class.
Definition: texture_group.h:47
Subtexture add(GraphicContext &context, const Size &size)
Allocate space for another sub texture.
void insert_texture(Texture2D &texture, const Rect &texture_rect)
Insert an existing texture into the texture group.
TextureAllocationPolicy get_texture_allocation_policy() const
Returns the texture allocation policy.
Size get_texture_sizes() const
Returns the size of the textures used by this texture group.
Interface to drawing graphics.
Definition: graphic_context.h:256
TextureAllocationPolicy
Texture allocation policy.
Definition: texture_group.h:51
2D (width,height) size structure - Integer
Definition: size.h:170
int get_subtexture_count() const
Returns the amount of sub-textures allocated in group.
bool is_null() const
Returns true if this object is invalid.
Definition: texture_group.h:66