Sub-texture description.
More...
#include <subtexture.h>
◆ Subtexture() [1/2]
clan::Subtexture::Subtexture |
( |
| ) |
|
Constructs a null instance.
◆ Subtexture() [2/2]
clan::Subtexture::Subtexture |
( |
Texture2D | texture, |
|
|
const Rect & | geometry ) |
◆ ~Subtexture()
clan::Subtexture::~Subtexture |
( |
| ) |
|
◆ get_geometry()
Rect clan::Subtexture::get_geometry |
( |
| ) |
const |
Returns the part of the texture used by this object.
◆ get_texture()
◆ is_null()
bool clan::Subtexture::is_null |
( |
| ) |
const |
|
inline |
Returns true if this object is invalid.
◆ operator bool()
clan::Subtexture::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ throw_if_null()
void clan::Subtexture::throw_if_null |
( |
| ) |
const |
Throw an exception if this object is invalid.
The documentation for this class was generated from the following file: