CL_CollisionOutline::CL_CollisionOutline - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# CL_CollisionOutline::CL_CollisionOutline

Construct a collision outline.

    	CL_CollisionOutline();

    	CL_CollisionOutline(
    		const CL_CollisionOutline& other);

    	CL_CollisionOutline(
    		CL_PixelBuffer pbuf, int alpha_limit=128, CL_OutlineAccuracy accuracy=accuracy_medium);

    	CL_CollisionOutline(
    		const std::string& filename, int alpha_limit=128, CL_OutlineAccuracy accuracy=accuracy_medium, bool get_insides=true);

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

    	CL_CollisionOutline(
    		std::vector<CL_Contour> contours, int width, int height);

Parameters:

CL_PixelBuffer pbuf
  Find alpha outline from a pixel buffer
int alpha_limit
  Alpha limit for pixels considered solid (collidable)
CL_OutlineAccuracy accuracy
  Amount of optimization of the outline (default: medium)
std::string filename
  Load outline from a file. The file can be an image or a precompiled outline.

See also:

CL_ResourceManager | CL_Contour | CL_CollisionOutline | CL_Resource | CL_PixelBuffer

Questions or comments, write to the ClanLib mailing list.