Home | All Classes | Grouped Classes | Index | Search

CL_Texture::CL_Texture

Constructs a texture.

	CL_Texture();

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

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

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

	CL_Texture(
		const CL_Texture& copy);

Parameters:

provider
Image source for texture.
delete_provider
If true, deletes provider after copying its image data.
hint
Hints what sort of optimizations CL_Texture can perform to increase performance.
resource_id
Resource name of a texture resource.
manager
Resource manager used to load resource.
filename
Image file used as image source for texture.

See also:

CL_Texture



Questions or comments, write to the ClanLib mailing list.