Home | All Classes | Grouped Classes | Index | Search

CL_Surface::draw

Draw surface on graphic context.

	void draw(
		int x = 0, int y = 0, CL_GraphicContext* context = 0);

	void draw(
		const CL_Rect& dest, CL_GraphicContext* context = 0);

	void draw(
		const CL_Rect& src, const CL_Rect& dest, CL_GraphicContext* context = 0);

Parameters:

x, y
Anchor position of where to render surface. Actual rendering position depends on the anchor and the alignment mode.
gc
Graphic context on which to render upon. If null, will use CL_Display's current graphic context.
dest
Rectangle to draw surface in.
src
Rectangle specifying the sub section of a surface to render.

See also:

CL_Surface



Questions or comments, write to the ClanLib mailing list.