CL_Subtexture Class Reference
[clanDisplay 2D]

Sub-texture description. More...

#include <subtexture.h>

List of all members.

Public Member Functions

Construction

 CL_Subtexture ()
 Constructs a null instance.
 CL_Subtexture (CL_Texture texture, const CL_Rect &geometry)
 Constructs a Subtexture.
 ~CL_Subtexture ()
Attributes

bool is_null () const
 Returns true if this object is invalid.
void throw_if_null () const
 Throw an exception if this object is invalid.
CL_Texture get_texture ()
 Returns the texture.
CL_Rect get_geometry () const
 Returns the part of the texture used by this object.

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: