Sub-texture description.
Definition: subtexture.h:45
Rect get_geometry() const
Returns the part of the texture used by this object.
bool is_null() const
Returns true if this object is invalid.
Definition: subtexture.h:58
Subtexture()
Constructs a null instance.
Subtexture(Texture2D texture, const Rect &geometry)
Constructs a Subtexture.
void throw_if_null() const
Throw an exception if this object is invalid.
2D texture object class.
Definition: texture_2d.h:41