|
ClanLib
2.3.7
|
Sub-texture description. More...
#include <subtexture.h>
Public Member Functions | |
Construction | |
| CL_Subtexture () | |
| Constructs a null instance. More... | |
| CL_Subtexture (CL_Texture texture, const CL_Rect &geometry) | |
| Constructs a Subtexture. More... | |
| ~CL_Subtexture () | |
Attributes | |
| bool | is_null () const |
| Returns true if this object is invalid. More... | |
| void | throw_if_null () const |
| Throw an exception if this object is invalid. More... | |
| CL_Texture | get_texture () |
| Returns the texture. More... | |
| CL_Rect | get_geometry () const |
| Returns the part of the texture used by this object. More... | |
Sub-texture description.
| CL_Subtexture::CL_Subtexture | ( | ) |
Constructs a null instance.
| CL_Subtexture::CL_Subtexture | ( | CL_Texture | texture, |
| const CL_Rect & | geometry | ||
| ) |
Constructs a Subtexture.
| texture | = Texture |
| geometry | = Rect |
| CL_Subtexture::~CL_Subtexture | ( | ) |
| CL_Rect CL_Subtexture::get_geometry | ( | ) | const |
Returns the part of the texture used by this object.
| CL_Texture CL_Subtexture::get_texture | ( | ) |
Returns the texture.
|
inline |
Returns true if this object is invalid.
| void CL_Subtexture::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
1.8.4