Home | All Classes | Grouped Classes | Index | Search

CL_Surface::CL_Surface

Constructs a surface.

	CL_Surface();

	CL_Surface(
		CL_PixelBuffer* provider, bool delete_provider = false, Hint hint = hint_colorkey);

	CL_Surface(
		const std::string& resource_id, CL_ResourceManager* manager);

	CL_Surface(
		const std::string& filename, Hint hint = hint_colorkey);

	CL_Surface(
		const CL_Surface& copy);

Parameters:

provider
Image that surface will use.
delete_provider
If true, will delete provider after it has copied its image data.
hint
Hints what sort of optimizations CL_Surface can perform to increase rendering performance.
filename
Name of an image file to load image data from.

See also:

CL_Surface



Questions or comments, write to the ClanLib mailing list.