Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > a2116f36018873d572acbcadddb8e994 > files > 160

clanlib0.8-docs-0.8.1-22.mga7.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_CollisionOutline::CL_CollisionOutline - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>CL_CollisionOutline::CL_CollisionOutline</h1>
<p>  Construct a collision outline.</p>
<pre>
	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&lt;CL_Contour&gt; contours, int width, int height);
</pre>
<p><b>Parameters:</b></p>
<dl>
<dt><i>CL_PixelBuffer pbuf </i></dt><dd>Find alpha outline from a pixel buffer</dd>
<dt><i>int alpha_limit </i></dt><dd>Alpha limit for pixels considered solid (collidable) </dd>
<dt><i>CL_OutlineAccuracy accuracy </i></dt><dd>Amount of optimization of the outline (default: medium)</dd>
<dt><i>std::string filename </i></dt><dd>Load outline from a file. The file can be an image or a precompiled outline.</dd>
</dl>
<p><b>See also:</b></p>
<p><a href="CL_Contour.html">CL_Contour</a> | <a href="CL_CollisionOutline.html">CL_CollisionOutline</a> | <a href="CL_Resource.html">CL_Resource</a> | <a href="CL_ResourceManager.html">CL_ResourceManager</a> | <a href="CL_PixelBuffer.html">CL_PixelBuffer</a></p>


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->