ClanLib  2.3.7
List of all members
CL_Subtexture Class Reference

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...
 

Detailed Description

Sub-texture description.

Constructor & Destructor Documentation

CL_Subtexture::CL_Subtexture ( )

Constructs a null instance.

CL_Subtexture::CL_Subtexture ( CL_Texture  texture,
const CL_Rect geometry 
)

Constructs a Subtexture.

Parameters
texture= Texture
geometry= Rect
CL_Subtexture::~CL_Subtexture ( )

Member Function Documentation

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.

bool CL_Subtexture::is_null ( ) const
inline

Returns true if this object is invalid.

void CL_Subtexture::throw_if_null ( ) const

Throw an exception if this object is invalid.


The documentation for this class was generated from the following file: