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