Home | All Classes | Grouped Classes | Index | Search

CL_TargaProvider::CL_TargaProvider

Constructs a surface provider that can read targa files.

	CL_TargaProvider(
		const std::string& name, CL_InputSourceProvider* provider = 0, bool transparent = false, bool ignore_alphachannel = false, unsigned char trans_red = 0, unsigned char trans_green = 0, unsigned char trans_blue = 0);

Parameters:

name
Name of the targa file to load.
provider
Input source provider that delivers the targa file.
transparent
True if a transparency color should be used.
ignore_alphachannel
True if the alpha component should be ignored.
trans_red
Red component of the transparency color.
trans_green
Green component of the transparency color.
trans_blue
blue component of the transparency color.

See also:

CL_TargaProvider



Questions or comments, write to the ClanLib mailing list.