ClanSoft logo
ClanSoft logo

    CL_ClipRect

Clipping rectangle class in ClanLib.

Description

This class is used to define clipping regions when drawing graphics to the backbufffer. This is useful if it is too expensive to update the entire screen each time - instead you can define a limited area where everything outside the rectangle should be discarded.

The clipping rectangle is used together with the clipping rect functions in CL_Display and CL_DisplayCard.

Class members

int m_x1
int m_y1
int m_x2
int m_y2
CL_ClipRect()
CL_ClipRect(const CL_ClipRect &rect)
CL_ClipRect( int x1, int y1, int x2, int y2)
bool test_clipped(const CL_ClipRect &rect)
bool test_unclipped(const CL_ClipRect &rect)
bool test_all_clipped(const CL_ClipRect &rect)
CL_ClipRect clip(const CL_ClipRect &rect)
bool operator ==(const CL_ClipRect &rect)

See Also

CL_Display-The DisplayCard wrapper class.
CL_DisplayCard-The DisplayCard class.

Back to index



This page was built using the Perceps documentation system.