Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > f00c83953c7eb23ee3c18f4f35d8eb6b > files > 241

sfml2-doc-2.0-0.1mdv2010.2.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>SFML - Simple and Fast Multimedia Library</title>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="tabs.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div id="logo">
            <img src="./logo.jpg" width="770" height="200" title="SFML home" alt="SFML logo" />
        </div>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.htm"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.htm"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
      <li><a href="files.htm"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.htm"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.htm"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.htm"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.htm"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><b>sf</b>::<a class="el" href="classsf_1_1Shape.htm">Shape</a>
  </div>
</div>
<div class="contents">
<h1>sf::Shape Class Reference<br/>
<small>
[<a class="el" href="group__graphics.htm">Graphics module</a>]</small>
</h1><!-- doxytag: class="sf::Shape" --><!-- doxytag: inherits="sf::Drawable" -->
<p>A convex, colored polygon with an optional outline.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="Shape_8hpp_source.htm">Shape.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for sf::Shape:</div>
<div class="dynsection">
 <div class="center">
  <img src="classsf_1_1Shape.png" usemap="#sf::Shape_map" alt=""/>
  <map id="sf::Shape_map" name="sf::Shape_map">
<area href="classsf_1_1Drawable.htm" alt="sf::Drawable" shape="rect" coords="0,0,82,24"/>
</map>
 </div>
</div>

<p><a href="classsf_1_1Shape-members.htm">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><b>Point</b></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Define a simple 2D point with position, normal and colors. <br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a413a457f720835b9f5d8e97ca8b80960">Shape</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#a413a457f720835b9f5d8e97ca8b80960"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#ab73aa1e64dc38a06ac78be2d92634ea1">AddPoint</a> (float x, float y, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color=<a class="el" href="classsf_1_1Color.htm">Color</a>(255, 255, 255), const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;outlineColor=<a class="el" href="classsf_1_1Color.htm">Color</a>(0, 0, 0))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a new point to the shape.  <a href="#ab73aa1e64dc38a06ac78be2d92634ea1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a43f636e3d9bb185283801c1e12353e56">AddPoint</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;position, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color=<a class="el" href="classsf_1_1Color.htm">Color</a>(255, 255, 255), const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;outlineColor=<a class="el" href="classsf_1_1Color.htm">Color</a>(0, 0, 0))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a new point to the shape.  <a href="#a43f636e3d9bb185283801c1e12353e56"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#aba96ce8499c07ae0e4cc714018f1e492">GetPointsCount</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of points composing the shape.  <a href="#aba96ce8499c07ae0e4cc714018f1e492"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#af64a42aa33755c18a34959edce4388a8">EnableFill</a> (bool enable)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enable or disable the shape's filling.  <a href="#af64a42aa33755c18a34959edce4388a8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a9659a2e60b3669e7f70e483a78f181d5">EnableOutline</a> (bool enable)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enable or disable the shape's outline.  <a href="#a9659a2e60b3669e7f70e483a78f181d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a08c73ee895246187c4ce891707cfbe22">SetPointPosition</a> (unsigned int index, const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;position)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change the position of a point.  <a href="#a08c73ee895246187c4ce891707cfbe22"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#ae0bb33c9e0d8aeaedee4449825fede97">SetPointPosition</a> (unsigned int index, float x, float y)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change the position of a point.  <a href="#ae0bb33c9e0d8aeaedee4449825fede97"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a6554555c5f025b9794ae718ffa61f6fa">SetPointColor</a> (unsigned int index, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change the color of a point.  <a href="#a6554555c5f025b9794ae718ffa61f6fa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a09e7990504a362f109481b7185852298">SetPointOutlineColor</a> (unsigned int index, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change the outline color of a point.  <a href="#a09e7990504a362f109481b7185852298"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a0094b9e71d54b22cf7960196b756cf5d">SetOutlineThickness</a> (float thickness)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Change the thickness of the shape outline.  <a href="#a0094b9e71d54b22cf7960196b756cf5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#ac29ef987e2923d270215983acdee70a1">GetPointPosition</a> (unsigned int index) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the position of a point.  <a href="#ac29ef987e2923d270215983acdee70a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a9361826afe92ce30286e52595cff104d">GetPointColor</a> (unsigned int index) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the color of a point.  <a href="#a9361826afe92ce30286e52595cff104d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#aac8414c9dda55e9e3d781edbfeb36498">GetPointOutlineColor</a> (unsigned int index) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the outline color of a point.  <a href="#aac8414c9dda55e9e3d781edbfeb36498"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a0710225235c6badfb9a1044c70e4f8be">GetOutlineThickness</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the thickness of the shape outline.  <a href="#a0710225235c6badfb9a1044c70e4f8be"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a84c8c18f14c8985f4d219298dfa16fe2">SetPosition</a> (float x, float y)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the position of the object.  <a href="#a84c8c18f14c8985f4d219298dfa16fe2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#aed916b5f46bd71d4222d92d4df17c6c0">SetPosition</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;position)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the position of the object.  <a href="#aed916b5f46bd71d4222d92d4df17c6c0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#aadf7f9963121f105fbfd01ef1854274d">SetX</a> (float x)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the X position of the object.  <a href="#aadf7f9963121f105fbfd01ef1854274d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a2c3820004d0b70acd1a43163ceb89108">SetY</a> (float y)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the Y position of the object.  <a href="#a2c3820004d0b70acd1a43163ceb89108"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a0ca6c6cd466339f439f0439e1a61f576">SetScale</a> (float factorX, float factorY)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the scale factors of the object.  <a href="#a0ca6c6cd466339f439f0439e1a61f576"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a1ba9eec16cabacd6fd47d2567748d47c">SetScale</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;factors)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the scale factors of the object.  <a href="#a1ba9eec16cabacd6fd47d2567748d47c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a4b151b01bde5056dcb225a0ceb1dc56b">SetScaleX</a> (float factor)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the X scale factor of the object.  <a href="#a4b151b01bde5056dcb225a0ceb1dc56b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#ae030c576aabe7c0cbe5ca1d6f412b906">SetScaleY</a> (float factor)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the Y scale factor of the object.  <a href="#ae030c576aabe7c0cbe5ca1d6f412b906"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#affb3db405124b442b8f6e688f074dee0">SetOrigin</a> (float x, float y)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the local origin of the object.  <a href="#affb3db405124b442b8f6e688f074dee0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a121726785914ee0b3cfb93e015eb0d03">SetOrigin</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;origin)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the local origin of the object.  <a href="#a121726785914ee0b3cfb93e015eb0d03"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a32b161223f46faa281428082d4435223">SetRotation</a> (float angle)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the orientation of the object.  <a href="#a32b161223f46faa281428082d4435223"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a43246dac44655361c14407bdfd03c943">SetColor</a> (const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the global color of the object.  <a href="#a43246dac44655361c14407bdfd03c943"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a107855befd522fa3ce5cf6a704f24204">SetBlendMode</a> (<a class="el" href="group__graphics.htm#ga1a2fa89de4bb0d82b2eb30399fe575ca">Blend::Mode</a> mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the blending mode of the object.  <a href="#a107855befd522fa3ce5cf6a704f24204"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a5961d78ed4b550092c90de500cc04fe0">GetPosition</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the position of the object.  <a href="#a5961d78ed4b550092c90de500cc04fe0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a6ddb66a4509565b05bf30ec1609c2a55">GetScale</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the current scale of the object.  <a href="#a6ddb66a4509565b05bf30ec1609c2a55"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a736fb2bc24ac9394b998dd79ae77bf36">GetOrigin</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the local origin of the object.  <a href="#a736fb2bc24ac9394b998dd79ae77bf36"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a4e82bec096673bccf7ceac5207617017">GetRotation</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the orientation of the object.  <a href="#a4e82bec096673bccf7ceac5207617017"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a9ebc2bd85e3e97a0ec18dcb18bb6128f">GetColor</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the color of the object.  <a href="#a9ebc2bd85e3e97a0ec18dcb18bb6128f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__graphics.htm#ga1a2fa89de4bb0d82b2eb30399fe575ca">Blend::Mode</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#ab6446c4717a2800cad85db55cb55409a">GetBlendMode</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the blend mode of the object.  <a href="#ab6446c4717a2800cad85db55cb55409a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#ae0b7b653067d51b9d55ec84c88938cfd">Move</a> (float offsetX, float offsetY)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move the object by a given offset.  <a href="#ae0b7b653067d51b9d55ec84c88938cfd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a968666b142af3219622b5011b6cdd96a">Move</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;offset)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move the object by a given offset.  <a href="#a968666b142af3219622b5011b6cdd96a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#af14b17e4f5a73d2b1457707734643550">Scale</a> (float factorX, float factorY)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Scale the object.  <a href="#af14b17e4f5a73d2b1457707734643550"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#abccf607595df1e6f2b2682e899e66b5d">Scale</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;factor)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Scale the object.  <a href="#abccf607595df1e6f2b2682e899e66b5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a9e2d796314a871dfc19597c68084cf4c">Rotate</a> (float angle)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rotate the object.  <a href="#a9e2d796314a871dfc19597c68084cf4c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Vector2.htm">Vector2f</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a0db0514c07c903009b8b5c26884a9a51">TransformToLocal</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;point) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Transform a point in object local coordinates.  <a href="#a0db0514c07c903009b8b5c26884a9a51"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsf_1_1Vector2.htm">Vector2f</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#ac48af98be80280ceea40b76777a9f599">TransformToGlobal</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;point) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Transform a local point in global coordinates.  <a href="#ac48af98be80280ceea40b76777a9f599"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classsf_1_1Shape.htm">Shape</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea">Line</a> (float p1x, float p1y, float p2x, float p2y, float thickness, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color, float outline=0.f, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;outlineColor=<a class="el" href="classsf_1_1Color.htm">Color</a>(0, 0, 0))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new line.  <a href="#a84c20a19b7113f0ace1b3b4742b827ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classsf_1_1Shape.htm">Shape</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#ac879d468009049a64eafb4eb22b07ed1">Line</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;start, const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;end, float thickness, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color, float outline=0.f, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;outlineColor=<a class="el" href="classsf_1_1Color.htm">Color</a>(0, 0, 0))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new line.  <a href="#ac879d468009049a64eafb4eb22b07ed1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classsf_1_1Shape.htm">Shape</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a9dbf8fe38eb606503d7e50f4485689c7">Rectangle</a> (float left, float top, float width, float height, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color, float outline=0.f, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;outlineColor=<a class="el" href="classsf_1_1Color.htm">Color</a>(0, 0, 0))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new rectangular shape.  <a href="#a9dbf8fe38eb606503d7e50f4485689c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classsf_1_1Shape.htm">Shape</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a0d3c0892a8c6f3dacef11e8e0bd87d7b">Rectangle</a> (const <a class="el" href="classsf_1_1Rect.htm">FloatRect</a> &amp;rectangle, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color, float outline=0.f, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;outlineColor=<a class="el" href="classsf_1_1Color.htm">Color</a>(0, 0, 0))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new rectangular shape.  <a href="#a0d3c0892a8c6f3dacef11e8e0bd87d7b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classsf_1_1Shape.htm">Shape</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#aa35f5ee06a0eef560d6645ad177364a3">Circle</a> (float x, float y, float radius, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color, float outline=0.f, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;outlineColor=<a class="el" href="classsf_1_1Color.htm">Color</a>(0, 0, 0))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new circular shape.  <a href="#aa35f5ee06a0eef560d6645ad177364a3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classsf_1_1Shape.htm">Shape</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a3d4ded6dd6494f99ef612bf64e1a3b93">Circle</a> (const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;center, float radius, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;color, float outline=0.f, const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;outlineColor=<a class="el" href="classsf_1_1Color.htm">Color</a>(0, 0, 0))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new circular shape.  <a href="#a3d4ded6dd6494f99ef612bf64e1a3b93"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Shape.htm#a7e0dc26e554900ea7baf5e3a7b4576b8">Render</a> (<a class="el" href="classsf_1_1RenderTarget.htm">RenderTarget</a> &amp;target, <a class="el" href="classsf_1_1Renderer.htm">Renderer</a> &amp;renderer) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw the object to a render target.  <a href="#a7e0dc26e554900ea7baf5e3a7b4576b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classsf_1_1Matrix3.htm">Matrix3</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#ac9ada41547bee7761836f36619712d73">GetMatrix</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the transform matrix of the object.  <a href="#ac9ada41547bee7761836f36619712d73"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classsf_1_1Matrix3.htm">Matrix3</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1Drawable.htm#a7de45b8b56658643d86cffdfdaf3366e">GetInverseMatrix</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the inverse transform matrix of the object.  <a href="#a7de45b8b56658643d86cffdfdaf3366e"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A convex, colored polygon with an optional outline. </p>
<p><a class="el" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> is a drawable class that allows to define and display a custom convex shape on a render target.</p>
<p>It is important to keep in mind that shapes must always be convex, otherwise they may not be drawn correctly. Moreover, the points must be added in the right order; using a random order would also result in an incorrect shape.</p>
<p>A shape is made of points that have their own individual attributes: </p>
<ul>
<li>position (relative to the origin of the shape) </li>
<li>color </li>
<li>outline color</li>
</ul>
<p>Shapes have an outline that can be enabled or not. You can control the thickness of the outline with the SetOutlineThickness function.</p>
<p>They also inherits all the functions from <a class="el" href="classsf_1_1Drawable.htm" title="Abstract base class for objects that can be drawn to a render target.">sf::Drawable</a>: position, rotation, scale, origin, global color and blend mode.</p>
<p>Some static functions are provided to directly create common shapes such as lines, rectangles and circles: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> line = <a class="code" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea" title="Create a new line.">sf::Shape::Line</a>(start, end, thickness, color);
 <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> rectangle = <a class="code" href="classsf_1_1Shape.htm#a9dbf8fe38eb606503d7e50f4485689c7" title="Create a new rectangular shape.">sf::Shape::Rectangle</a>(rect, thickness);
 <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> circle = <a class="code" href="classsf_1_1Shape.htm#aa35f5ee06a0eef560d6645ad177364a3" title="Create a new circular shape.">sf::Shape::Circle</a>(center, radius, color);
</pre></div><p>A common mistake is to mix the individual points positions / colors and the global position / color of the shape. They are completely separate attributes that are combined when the shape is drawn (positions are added, colors are multiplied). </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> line = <a class="code" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea" title="Create a new line.">sf::Shape::Line</a>(<a class="code" href="classsf_1_1Vector2.htm">sf::Vector2f</a>(100, 100), <a class="code" href="classsf_1_1Vector2.htm">sf::Vector2f</a>(200, 200), 10, <a class="code" href="classsf_1_1Color.htm#a127dbf55db9c07d0fa8f4bfcbb97594a" title="Red predefined color.">sf::Color::Red</a>);

 <span class="comment">// --&gt; line.GetPosition() is (0, 0), *not* (100, 100)</span>
 <span class="comment">// --&gt; line.GetColor() is white, *not* red</span>
</pre></div><p> So if you plan to change the position / color of your shape after it is created, you'd better create the points around the origin and with white color, and use only the global position / color (SetPosition, SetColor).</p>
<p>Usage example: </p>
<div class="fragment"><pre class="fragment"> <span class="comment">// Create a shape</span>
 <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> shape;

 <span class="comment">// Define its points</span>
 shape.<a class="code" href="classsf_1_1Shape.htm#ab73aa1e64dc38a06ac78be2d92634ea1" title="Add a new point to the shape.">AddPoint</a>(10, 10, <a class="code" href="classsf_1_1Color.htm#a4fd874712178d9e206f53226002aa4ca" title="White predefined color.">sf::Color::White</a>, <a class="code" href="classsf_1_1Color.htm#a127dbf55db9c07d0fa8f4bfcbb97594a" title="Red predefined color.">sf::Color::Red</a>);
 shape.<a class="code" href="classsf_1_1Shape.htm#ab73aa1e64dc38a06ac78be2d92634ea1" title="Add a new point to the shape.">AddPoint</a>(50, 10, <a class="code" href="classsf_1_1Color.htm#a4fd874712178d9e206f53226002aa4ca" title="White predefined color.">sf::Color::White</a>, <a class="code" href="classsf_1_1Color.htm#a95629b30de8c6856aa7d3afed12eb865" title="Green predefined color.">sf::Color::Green</a>);
 shape.<a class="code" href="classsf_1_1Shape.htm#ab73aa1e64dc38a06ac78be2d92634ea1" title="Add a new point to the shape.">AddPoint</a>(10, 50, <a class="code" href="classsf_1_1Color.htm#a4fd874712178d9e206f53226002aa4ca" title="White predefined color.">sf::Color::White</a>, <a class="code" href="classsf_1_1Color.htm#ab03770d4817426b2614cfc33cf0e245c" title="Blue predefined color.">sf::Color::Blue</a>);

 <span class="comment">// Enable outline only</span>
 shape.<a class="code" href="classsf_1_1Shape.htm#af64a42aa33755c18a34959edce4388a8" title="Enable or disable the shape&amp;#39;s filling.">EnableFill</a>(<span class="keyword">false</span>);
 shape.<a class="code" href="classsf_1_1Shape.htm#a9659a2e60b3669e7f70e483a78f181d5" title="Enable or disable the shape&amp;#39;s outline.">EnableOutline</a>(<span class="keyword">true</span>);
 shape.<a class="code" href="classsf_1_1Shape.htm#a0094b9e71d54b22cf7960196b756cf5d" title="Change the thickness of the shape outline.">SetOutlineThickness</a>(10);

 <span class="comment">// Display it</span>
 window.Draw(shape); <span class="comment">// window is a sf::RenderWindow</span>

 <span class="comment">// Display static shapes</span>
 window.Draw(<a class="code" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea" title="Create a new line.">sf::Shape::Line</a>(0, 0, 10, 20, <a class="code" href="classsf_1_1Color.htm#a127dbf55db9c07d0fa8f4bfcbb97594a" title="Red predefined color.">sf::Color::Red</a>));
 window.Draw(<a class="code" href="classsf_1_1Shape.htm#a9dbf8fe38eb606503d7e50f4485689c7" title="Create a new rectangular shape.">sf::Shape::Rectangle</a>(100, 1000, 50, 20, <a class="code" href="classsf_1_1Color.htm#a95629b30de8c6856aa7d3afed12eb865" title="Green predefined color.">sf::Color::Green</a>));
 window.Draw(<a class="code" href="classsf_1_1Shape.htm#aa35f5ee06a0eef560d6645ad177364a3" title="Create a new circular shape.">sf::Shape::Circle</a>(500, 500, 20, <a class="code" href="classsf_1_1Color.htm#ab03770d4817426b2614cfc33cf0e245c" title="Blue predefined color.">sf::Color::Blue</a>, 5, <a class="code" href="classsf_1_1Color.htm#a77c688197b981338f0b19dc58bd2facd" title="Black predefined color.">sf::Color::Black</a>));
</pre></div><dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Sprite.htm" title="Drawable representation of a texture, with its own transformations, color, blend...">sf::Sprite</a> </dd></dl>

<p>Definition at line <a class="el" href="Shape_8hpp_source.htm#l00042">42</a> of file <a class="el" href="Shape_8hpp_source.htm">Shape.hpp</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a413a457f720835b9f5d8e97ca8b80960"></a><!-- doxytag: member="sf::Shape::Shape" ref="a413a457f720835b9f5d8e97ca8b80960" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sf::Shape::Shape </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Default constructor. </p>
<p>Creates an empty shape (no point). </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a43f636e3d9bb185283801c1e12353e56"></a><!-- doxytag: member="sf::Shape::AddPoint" ref="a43f636e3d9bb185283801c1e12353e56" args="(const Vector2f &amp;position, const Color &amp;color=Color(255, 255, 255), const Color &amp;outlineColor=Color(0, 0, 0))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Shape::AddPoint </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(255,&nbsp;255,&nbsp;255)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>outlineColor</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(0,&nbsp;0,&nbsp;0)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a new point to the shape. </p>
<p>The new point is inserted at the end of the shape.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>position</em>&nbsp;</td><td>Position of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td><a class="el" href="classsf_1_1Color.htm" title="Utility class for manpulating RGBA colors.">Color</a> of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outlineColor</em>&nbsp;</td><td>Outline color of the point </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab73aa1e64dc38a06ac78be2d92634ea1"></a><!-- doxytag: member="sf::Shape::AddPoint" ref="ab73aa1e64dc38a06ac78be2d92634ea1" args="(float x, float y, const Color &amp;color=Color(255, 255, 255), const Color &amp;outlineColor=Color(0, 0, 0))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Shape::AddPoint </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(255,&nbsp;255,&nbsp;255)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>outlineColor</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(0,&nbsp;0,&nbsp;0)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a new point to the shape. </p>
<p>The new point is inserted at the end of the shape.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>X position of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Y position of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td><a class="el" href="classsf_1_1Color.htm" title="Utility class for manpulating RGBA colors.">Color</a> of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outlineColor</em>&nbsp;</td><td>Outline color of the point </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3d4ded6dd6494f99ef612bf64e1a3b93"></a><!-- doxytag: member="sf::Shape::Circle" ref="a3d4ded6dd6494f99ef612bf64e1a3b93" args="(const Vector2f &amp;center, float radius, const Color &amp;color, float outline=0.f, const Color &amp;outlineColor=Color(0, 0, 0))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classsf_1_1Shape.htm">Shape</a> sf::Shape::Circle </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>outline</em> = <code>0.f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>outlineColor</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(0,&nbsp;0,&nbsp;0)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new circular shape. </p>
<p>This is a static function that returns a new object, don't try to call it on an existing object to modify it. </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Vector2.htm">sf::Vector2f</a> center(0, 0);
 <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> circle = <a class="code" href="classsf_1_1Shape.htm#aa35f5ee06a0eef560d6645ad177364a3" title="Create a new circular shape.">sf::Shape::Circle</a>(center, 7, <a class="code" href="classsf_1_1Color.htm#ab03770d4817426b2614cfc33cf0e245c" title="Blue predefined color.">sf::Color::Blue</a>);
</pre></div><p> Warning: the position and color that you pass to this function are used to compute the position and color of each point, they have nothing to do with the global position and color of the shape, inherited from <a class="el" href="classsf_1_1Drawable.htm" title="Abstract base class for objects that can be drawn to a render target.">sf::Drawable</a>. See the class description for more information about this.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>center</em>&nbsp;</td><td>Center of the circle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>radius</em>&nbsp;</td><td>Radius of the circle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td><a class="el" href="classsf_1_1Color.htm" title="Utility class for manpulating RGBA colors.">Color</a> of the shape's points </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outline</em>&nbsp;</td><td>Outline thickness </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outlineColor</em>&nbsp;</td><td>Outline color of the shape's points</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea" title="Create a new line.">Line</a>, <a class="el" href="classsf_1_1Shape.htm#a9dbf8fe38eb606503d7e50f4485689c7" title="Create a new rectangular shape.">Rectangle</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa35f5ee06a0eef560d6645ad177364a3"></a><!-- doxytag: member="sf::Shape::Circle" ref="aa35f5ee06a0eef560d6645ad177364a3" args="(float x, float y, float radius, const Color &amp;color, float outline=0.f, const Color &amp;outlineColor=Color(0, 0, 0))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classsf_1_1Shape.htm">Shape</a> sf::Shape::Circle </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>outline</em> = <code>0.f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>outlineColor</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(0,&nbsp;0,&nbsp;0)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new circular shape. </p>
<p>This is a static function that returns a new object, don't try to call it on an existing object to modify it. </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> circle = <a class="code" href="classsf_1_1Shape.htm#aa35f5ee06a0eef560d6645ad177364a3" title="Create a new circular shape.">sf::Shape::Circle</a>(0, 0, 7, <a class="code" href="classsf_1_1Color.htm#ab03770d4817426b2614cfc33cf0e245c" title="Blue predefined color.">sf::Color::Blue</a>);
</pre></div><p> Warning: the position and color that you pass to this function are used to compute the position and color of each point, they have nothing to do with the global position and color of the shape, inherited from <a class="el" href="classsf_1_1Drawable.htm" title="Abstract base class for objects that can be drawn to a render target.">sf::Drawable</a>. See the class description for more information about this.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>X coordinate of the center </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Y coordinate of the center </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>radius</em>&nbsp;</td><td>Radius of the circle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td><a class="el" href="classsf_1_1Color.htm" title="Utility class for manpulating RGBA colors.">Color</a> of the shape's points </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outline</em>&nbsp;</td><td>Outline thickness </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outlineColor</em>&nbsp;</td><td>Outline color of the shape's points</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea" title="Create a new line.">Line</a>, <a class="el" href="classsf_1_1Shape.htm#a9dbf8fe38eb606503d7e50f4485689c7" title="Create a new rectangular shape.">Rectangle</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af64a42aa33755c18a34959edce4388a8"></a><!-- doxytag: member="sf::Shape::EnableFill" ref="af64a42aa33755c18a34959edce4388a8" args="(bool enable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Shape::EnableFill </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>enable</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enable or disable the shape's filling. </p>
<p>This option is enabled by default.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>enable</em>&nbsp;</td><td>True to enable, false to disable</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a9659a2e60b3669e7f70e483a78f181d5" title="Enable or disable the shape&#39;s outline.">EnableOutline</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9659a2e60b3669e7f70e483a78f181d5"></a><!-- doxytag: member="sf::Shape::EnableOutline" ref="a9659a2e60b3669e7f70e483a78f181d5" args="(bool enable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Shape::EnableOutline </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>enable</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enable or disable the shape's outline. </p>
<p>This option is enabled by default.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>enable</em>&nbsp;</td><td>True to enable, false to disable</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#af64a42aa33755c18a34959edce4388a8" title="Enable or disable the shape&#39;s filling.">EnableFill</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab6446c4717a2800cad85db55cb55409a"></a><!-- doxytag: member="sf::Shape::GetBlendMode" ref="ab6446c4717a2800cad85db55cb55409a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__graphics.htm#ga1a2fa89de4bb0d82b2eb30399fe575ca">Blend::Mode</a> sf::Drawable::GetBlendMode </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the blend mode of the object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Current blend mode</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a107855befd522fa3ce5cf6a704f24204" title="Set the blending mode of the object.">SetBlendMode</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9ebc2bd85e3e97a0ec18dcb18bb6128f"></a><!-- doxytag: member="sf::Shape::GetColor" ref="a9ebc2bd85e3e97a0ec18dcb18bb6128f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Color.htm">Color</a>&amp; sf::Drawable::GetColor </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the color of the object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Current color</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a43246dac44655361c14407bdfd03c943" title="Set the global color of the object.">SetColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7de45b8b56658643d86cffdfdaf3366e"></a><!-- doxytag: member="sf::Shape::GetInverseMatrix" ref="a7de45b8b56658643d86cffdfdaf3366e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Matrix3.htm">Matrix3</a>&amp; sf::Drawable::GetInverseMatrix </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the inverse transform matrix of the object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Inverse transform matrix</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#ac9ada41547bee7761836f36619712d73" title="Get the transform matrix of the object.">GetMatrix</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac9ada41547bee7761836f36619712d73"></a><!-- doxytag: member="sf::Shape::GetMatrix" ref="ac9ada41547bee7761836f36619712d73" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Matrix3.htm">Matrix3</a>&amp; sf::Drawable::GetMatrix </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the transform matrix of the object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Transform matrix</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a7de45b8b56658643d86cffdfdaf3366e" title="Get the inverse transform matrix of the object.">GetInverseMatrix</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a736fb2bc24ac9394b998dd79ae77bf36"></a><!-- doxytag: member="sf::Shape::GetOrigin" ref="a736fb2bc24ac9394b998dd79ae77bf36" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a>&amp; sf::Drawable::GetOrigin </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the local origin of the object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Current origin</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#affb3db405124b442b8f6e688f074dee0" title="Set the local origin of the object.">SetOrigin</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0710225235c6badfb9a1044c70e4f8be"></a><!-- doxytag: member="sf::Shape::GetOutlineThickness" ref="a0710225235c6badfb9a1044c70e4f8be" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float sf::Shape::GetOutlineThickness </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the thickness of the shape outline. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Current outline thickness</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a0094b9e71d54b22cf7960196b756cf5d" title="Change the thickness of the shape outline.">SetOutlineThickness</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9361826afe92ce30286e52595cff104d"></a><!-- doxytag: member="sf::Shape::GetPointColor" ref="a9361826afe92ce30286e52595cff104d" args="(unsigned int index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Color.htm">Color</a>&amp; sf::Shape::GetPointColor </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>index</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the color of a point. </p>
<p>Warning: this function doesn't check the validity of <em>index</em>, if it is out of bounds (ie. in the range [0, GetPointscount() - 1]) the behaviour is undefined.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>Index of the point</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classsf_1_1Color.htm" title="Utility class for manpulating RGBA colors.">Color</a> of the index-th point</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a6554555c5f025b9794ae718ffa61f6fa" title="Change the color of a point.">SetPointColor</a>, <a class="el" href="classsf_1_1Shape.htm#ac29ef987e2923d270215983acdee70a1" title="Get the position of a point.">GetPointPosition</a>, <a class="el" href="classsf_1_1Shape.htm#aac8414c9dda55e9e3d781edbfeb36498" title="Get the outline color of a point.">GetPointOutlineColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aac8414c9dda55e9e3d781edbfeb36498"></a><!-- doxytag: member="sf::Shape::GetPointOutlineColor" ref="aac8414c9dda55e9e3d781edbfeb36498" args="(unsigned int index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Color.htm">Color</a>&amp; sf::Shape::GetPointOutlineColor </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>index</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the outline color of a point. </p>
<p>Warning: this function doesn't check the validity of <em>index</em>, if it is out of bounds (ie. in the range [0, GetPointscount() - 1]) the behaviour is undefined.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>Index of the point</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Outline color of the index-th point</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a09e7990504a362f109481b7185852298" title="Change the outline color of a point.">SetPointOutlineColor</a>, <a class="el" href="classsf_1_1Shape.htm#ac29ef987e2923d270215983acdee70a1" title="Get the position of a point.">GetPointPosition</a>, <a class="el" href="classsf_1_1Shape.htm#a9361826afe92ce30286e52595cff104d" title="Get the color of a point.">GetPointColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac29ef987e2923d270215983acdee70a1"></a><!-- doxytag: member="sf::Shape::GetPointPosition" ref="ac29ef987e2923d270215983acdee70a1" args="(unsigned int index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a>&amp; sf::Shape::GetPointPosition </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>index</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the position of a point. </p>
<p>Warning: this function doesn't check the validity of <em>index</em>, if it is out of bounds (ie. in the range [0, GetPointscount() - 1]) the behaviour is undefined.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>Index of the point</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Position of the index-th point</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a08c73ee895246187c4ce891707cfbe22" title="Change the position of a point.">SetPointPosition</a>, <a class="el" href="classsf_1_1Shape.htm#a9361826afe92ce30286e52595cff104d" title="Get the color of a point.">GetPointColor</a>, <a class="el" href="classsf_1_1Shape.htm#aac8414c9dda55e9e3d781edbfeb36498" title="Get the outline color of a point.">GetPointOutlineColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aba96ce8499c07ae0e4cc714018f1e492"></a><!-- doxytag: member="sf::Shape::GetPointsCount" ref="aba96ce8499c07ae0e4cc714018f1e492" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int sf::Shape::GetPointsCount </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the number of points composing the shape. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Total number of points </dd></dl>

</div>
</div>
<a class="anchor" id="a5961d78ed4b550092c90de500cc04fe0"></a><!-- doxytag: member="sf::Shape::GetPosition" ref="a5961d78ed4b550092c90de500cc04fe0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a>&amp; sf::Drawable::GetPosition </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the position of the object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Current position</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a84c8c18f14c8985f4d219298dfa16fe2" title="Set the position of the object.">SetPosition</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a4e82bec096673bccf7ceac5207617017"></a><!-- doxytag: member="sf::Shape::GetRotation" ref="a4e82bec096673bccf7ceac5207617017" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float sf::Drawable::GetRotation </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the orientation of the object. </p>
<p>The rotation is always in the range [0, 360].</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Current rotation, in degrees</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a32b161223f46faa281428082d4435223" title="Set the orientation of the object.">SetRotation</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6ddb66a4509565b05bf30ec1609c2a55"></a><!-- doxytag: member="sf::Shape::GetScale" ref="a6ddb66a4509565b05bf30ec1609c2a55" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a>&amp; sf::Drawable::GetScale </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the current scale of the object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Current scale factors</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a0ca6c6cd466339f439f0439e1a61f576" title="Set the scale factors of the object.">SetScale</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac879d468009049a64eafb4eb22b07ed1"></a><!-- doxytag: member="sf::Shape::Line" ref="ac879d468009049a64eafb4eb22b07ed1" args="(const Vector2f &amp;start, const Vector2f &amp;end, float thickness, const Color &amp;color, float outline=0.f, const Color &amp;outlineColor=Color(0, 0, 0))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classsf_1_1Shape.htm">Shape</a> sf::Shape::Line </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>thickness</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>outline</em> = <code>0.f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>outlineColor</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(0,&nbsp;0,&nbsp;0)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new line. </p>
<p>This is a static function that returns a new object, don't try to call it on an existing object to modify it. </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Vector2.htm">sf::Vector2f</a> start(0, 0);
 <a class="code" href="classsf_1_1Vector2.htm">sf::Vector2f</a> end(10, 20);
 <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> line = <a class="code" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea" title="Create a new line.">sf::Shape::Line</a>(start, end, 2.5f, <a class="code" href="classsf_1_1Color.htm#a95629b30de8c6856aa7d3afed12eb865" title="Green predefined color.">sf::Color::Green</a>);
</pre></div><p> Warning: the position and color that you pass to this function are used to compute the position and color of each point, they have nothing to do with the global position and color of the shape, inherited from <a class="el" href="classsf_1_1Drawable.htm" title="Abstract base class for objects that can be drawn to a render target.">sf::Drawable</a>. See the class description for more information about this.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>start</em>&nbsp;</td><td>Start point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>end</em>&nbsp;</td><td>End point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>thickness</em>&nbsp;</td><td>Thickness of the line </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td><a class="el" href="classsf_1_1Color.htm" title="Utility class for manpulating RGBA colors.">Color</a> of the shape's points </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outline</em>&nbsp;</td><td>Outline thickness </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outlineColor</em>&nbsp;</td><td>Outline color of the shape's points</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a9dbf8fe38eb606503d7e50f4485689c7" title="Create a new rectangular shape.">Rectangle</a>, <a class="el" href="classsf_1_1Shape.htm#aa35f5ee06a0eef560d6645ad177364a3" title="Create a new circular shape.">Circle</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a84c20a19b7113f0ace1b3b4742b827ea"></a><!-- doxytag: member="sf::Shape::Line" ref="a84c20a19b7113f0ace1b3b4742b827ea" args="(float p1x, float p1y, float p2x, float p2y, float thickness, const Color &amp;color, float outline=0.f, const Color &amp;outlineColor=Color(0, 0, 0))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classsf_1_1Shape.htm">Shape</a> sf::Shape::Line </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>p1x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>p1y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>p2x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>p2y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>thickness</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>outline</em> = <code>0.f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>outlineColor</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(0,&nbsp;0,&nbsp;0)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new line. </p>
<p>This is a static function that returns a new object, don't try to call it on an existing object to modify it. </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> line = <a class="code" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea" title="Create a new line.">sf::Shape::Line</a>(0, 0, 10, 20, 2.5f, <a class="code" href="classsf_1_1Color.htm#a95629b30de8c6856aa7d3afed12eb865" title="Green predefined color.">sf::Color::Green</a>);
</pre></div><p> Warning: the position and color that you pass to this function are used to compute the position and color of each point, they have nothing to do with the global position and color of the shape, inherited from <a class="el" href="classsf_1_1Drawable.htm" title="Abstract base class for objects that can be drawn to a render target.">sf::Drawable</a>. See the class description for more information about this.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>p1x</em>&nbsp;</td><td>X coordinate of the start point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>p1y</em>&nbsp;</td><td>Y coordinate of the start point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>p2x</em>&nbsp;</td><td>X coordinate of the end point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>p2y</em>&nbsp;</td><td>Y coordinate of the end point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>thickness</em>&nbsp;</td><td>Thickness of the line </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td><a class="el" href="classsf_1_1Color.htm" title="Utility class for manpulating RGBA colors.">Color</a> of the shape's points </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outline</em>&nbsp;</td><td>Outline thickness </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outlineColor</em>&nbsp;</td><td>Outline color of the shape's points</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a9dbf8fe38eb606503d7e50f4485689c7" title="Create a new rectangular shape.">Rectangle</a>, <a class="el" href="classsf_1_1Shape.htm#aa35f5ee06a0eef560d6645ad177364a3" title="Create a new circular shape.">Circle</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a968666b142af3219622b5011b6cdd96a"></a><!-- doxytag: member="sf::Shape::Move" ref="a968666b142af3219622b5011b6cdd96a" args="(const Vector2f &amp;offset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::Move </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>offset</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Move the object by a given offset. </p>
<p>This function adds to the current position of the object, unlike SetPosition which overwrites it. Thus, it is equivalent to the following code: </p>
<div class="fragment"><pre class="fragment"> <span class="keywordtype">object</span>.SetPosition(<span class="keywordtype">object</span>.<a class="code" href="classsf_1_1Drawable.htm#a5961d78ed4b550092c90de500cc04fe0" title="Get the position of the object.">GetPosition</a>() + offset);
</pre></div><dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>Offset</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a84c8c18f14c8985f4d219298dfa16fe2" title="Set the position of the object.">SetPosition</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae0b7b653067d51b9d55ec84c88938cfd"></a><!-- doxytag: member="sf::Shape::Move" ref="ae0b7b653067d51b9d55ec84c88938cfd" args="(float offsetX, float offsetY)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::Move </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>offsetX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>offsetY</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Move the object by a given offset. </p>
<p>This function adds to the current position of the object, unlike SetPosition which overwrites it. Thus, it is equivalent to the following code: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Vector2.htm">sf::Vector2f</a> pos = <span class="keywordtype">object</span>.GetPosition();
 <span class="keywordtype">object</span>.SetPosition(pos.<a class="code" href="classsf_1_1Vector2.htm#a1e6ad77fa155f3753bfb92699bd28141" title="X coordinate of the vector.">x</a> + offsetX, pos.<a class="code" href="classsf_1_1Vector2.htm#a420f2481b015f4eb929c75f2af564299" title="Y coordinate of the vector.">y</a> + offsetY);
</pre></div><dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offsetX</em>&nbsp;</td><td>X offset </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>offsetY</em>&nbsp;</td><td>Y offset</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a84c8c18f14c8985f4d219298dfa16fe2" title="Set the position of the object.">SetPosition</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0d3c0892a8c6f3dacef11e8e0bd87d7b"></a><!-- doxytag: member="sf::Shape::Rectangle" ref="a0d3c0892a8c6f3dacef11e8e0bd87d7b" args="(const FloatRect &amp;rectangle, const Color &amp;color, float outline=0.f, const Color &amp;outlineColor=Color(0, 0, 0))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classsf_1_1Shape.htm">Shape</a> sf::Shape::Rectangle </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Rect.htm">FloatRect</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>outline</em> = <code>0.f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>outlineColor</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(0,&nbsp;0,&nbsp;0)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new rectangular shape. </p>
<p>This is a static function that returns a new object, don't try to call it on an existing object to modify it. </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Rect.htm">sf::FloatRect</a> source(10, 20, 50, 100);
 <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> rect = <a class="code" href="classsf_1_1Shape.htm#a9dbf8fe38eb606503d7e50f4485689c7" title="Create a new rectangular shape.">sf::Shape::Rectangle</a>(source, <a class="code" href="classsf_1_1Color.htm#a127dbf55db9c07d0fa8f4bfcbb97594a" title="Red predefined color.">sf::Color::Red</a>);
</pre></div><p> Warning: the position and color that you pass to this function are used to compute the position and color of each point, they have nothing to do with the global position and color of the shape, inherited from <a class="el" href="classsf_1_1Drawable.htm" title="Abstract base class for objects that can be drawn to a render target.">sf::Drawable</a>. See the class description for more information about this.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rectangle</em>&nbsp;</td><td>Rectangle defining the shape </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td><a class="el" href="classsf_1_1Color.htm" title="Utility class for manpulating RGBA colors.">Color</a> of the shape's points </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outline</em>&nbsp;</td><td>Outline thickness </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outlineColor</em>&nbsp;</td><td>Outline color of the shape's points</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea" title="Create a new line.">Line</a>, <a class="el" href="classsf_1_1Shape.htm#aa35f5ee06a0eef560d6645ad177364a3" title="Create a new circular shape.">Circle</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9dbf8fe38eb606503d7e50f4485689c7"></a><!-- doxytag: member="sf::Shape::Rectangle" ref="a9dbf8fe38eb606503d7e50f4485689c7" args="(float left, float top, float width, float height, const Color &amp;color, float outline=0.f, const Color &amp;outlineColor=Color(0, 0, 0))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classsf_1_1Shape.htm">Shape</a> sf::Shape::Rectangle </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>outline</em> = <code>0.f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>outlineColor</em> = <code><a class="el" href="classsf_1_1Color.htm">Color</a>(0,&nbsp;0,&nbsp;0)</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new rectangular shape. </p>
<p>This is a static function that returns a new object, don't try to call it on an existing object to modify it. </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Shape.htm" title="A convex, colored polygon with an optional outline.">sf::Shape</a> rect = <a class="code" href="classsf_1_1Shape.htm#a9dbf8fe38eb606503d7e50f4485689c7" title="Create a new rectangular shape.">sf::Shape::Rectangle</a>(10, 20, 50, 100, <a class="code" href="classsf_1_1Color.htm#a127dbf55db9c07d0fa8f4bfcbb97594a" title="Red predefined color.">sf::Color::Red</a>);
</pre></div><p> Warning: the position and color that you pass to this function are used to compute the position and color of each point, they have nothing to do with the global position and color of the shape, inherited from <a class="el" href="classsf_1_1Drawable.htm" title="Abstract base class for objects that can be drawn to a render target.">sf::Drawable</a>. See the class description for more information about this.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>left</em>&nbsp;</td><td>Left coordinate of the rectangle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>top</em>&nbsp;</td><td>Top coordinate of the rectangle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>Width of the rectangle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>Height of the rectangle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td><a class="el" href="classsf_1_1Color.htm" title="Utility class for manpulating RGBA colors.">Color</a> of the shape's points </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outline</em>&nbsp;</td><td>Outline thickness </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outlineColor</em>&nbsp;</td><td>Outline color of the shape's points</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a84c20a19b7113f0ace1b3b4742b827ea" title="Create a new line.">Line</a>, <a class="el" href="classsf_1_1Shape.htm#aa35f5ee06a0eef560d6645ad177364a3" title="Create a new circular shape.">Circle</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7e0dc26e554900ea7baf5e3a7b4576b8"></a><!-- doxytag: member="sf::Shape::Render" ref="a7e0dc26e554900ea7baf5e3a7b4576b8" args="(RenderTarget &amp;target, Renderer &amp;renderer) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void sf::Shape::Render </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsf_1_1RenderTarget.htm">RenderTarget</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classsf_1_1Renderer.htm">Renderer</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>renderer</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw the object to a render target. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>target</em>&nbsp;</td><td>Render target </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>renderer</em>&nbsp;</td><td><a class="el" href="classsf_1_1Renderer.htm" title="Handles the low-level rendering (states and geometry).">Renderer</a> providing low-level rendering commands </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classsf_1_1Drawable.htm">sf::Drawable</a>.</p>

</div>
</div>
<a class="anchor" id="a9e2d796314a871dfc19597c68084cf4c"></a><!-- doxytag: member="sf::Shape::Rotate" ref="a9e2d796314a871dfc19597c68084cf4c" args="(float angle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::Rotate </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>angle</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Rotate the object. </p>
<p>This function ads to the current rotation of the object, unlike SetRotation which overwrites it. Thus, it is equivalent to the following code: </p>
<div class="fragment"><pre class="fragment"> <span class="keywordtype">object</span>.SetRotation(<span class="keywordtype">object</span>.<a class="code" href="classsf_1_1Drawable.htm#a4e82bec096673bccf7ceac5207617017" title="Get the orientation of the object.">GetRotation</a>() + angle);
</pre></div><dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>angle</em>&nbsp;</td><td>Angle of rotation, in degrees </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="abccf607595df1e6f2b2682e899e66b5d"></a><!-- doxytag: member="sf::Shape::Scale" ref="abccf607595df1e6f2b2682e899e66b5d" args="(const Vector2f &amp;factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::Scale </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>factor</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Scale the object. </p>
<p>This function multiplies the current scale of the object, unlike SetScale which overwrites it. Thus, it is equivalent to the following code: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Vector2.htm">sf::Vector2f</a> scale = <span class="keywordtype">object</span>.GetScale();
 <span class="keywordtype">object</span>.SetScale(scale.<a class="code" href="classsf_1_1Vector2.htm#a1e6ad77fa155f3753bfb92699bd28141" title="X coordinate of the vector.">x</a> * factor.x, scale.<a class="code" href="classsf_1_1Vector2.htm#a420f2481b015f4eb929c75f2af564299" title="Y coordinate of the vector.">y</a> * factor.y);
</pre></div><dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>factor</em>&nbsp;</td><td>Scale factors</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a0ca6c6cd466339f439f0439e1a61f576" title="Set the scale factors of the object.">SetScale</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af14b17e4f5a73d2b1457707734643550"></a><!-- doxytag: member="sf::Shape::Scale" ref="af14b17e4f5a73d2b1457707734643550" args="(float factorX, float factorY)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::Scale </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>factorX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>factorY</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Scale the object. </p>
<p>This function multiplies the current scale of the object, unlike SetScale which overwrites it. Thus, it is equivalent to the following code: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classsf_1_1Vector2.htm">sf::Vector2f</a> scale = <span class="keywordtype">object</span>.GetScale();
 <span class="keywordtype">object</span>.SetScale(scale.<a class="code" href="classsf_1_1Vector2.htm#a1e6ad77fa155f3753bfb92699bd28141" title="X coordinate of the vector.">x</a> * factorX, scale.<a class="code" href="classsf_1_1Vector2.htm#a420f2481b015f4eb929c75f2af564299" title="Y coordinate of the vector.">y</a> * factorY);
</pre></div><dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>factorX</em>&nbsp;</td><td>Horizontal scale factor </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factorY</em>&nbsp;</td><td>Vertical scale factor</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a0ca6c6cd466339f439f0439e1a61f576" title="Set the scale factors of the object.">SetScale</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a107855befd522fa3ce5cf6a704f24204"></a><!-- doxytag: member="sf::Shape::SetBlendMode" ref="a107855befd522fa3ce5cf6a704f24204" args="(Blend::Mode mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetBlendMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__graphics.htm#ga1a2fa89de4bb0d82b2eb30399fe575ca">Blend::Mode</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the blending mode of the object. </p>
<p>This property defines how the pixels of an object are blended with the pixels of the render target to which it is drawn. To know more about the blending modes available, see the sf::Blend::Mode enum. The default blend mode is Blend::Alpha.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>New blending mode</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#ab6446c4717a2800cad85db55cb55409a" title="Get the blend mode of the object.">GetBlendMode</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a43246dac44655361c14407bdfd03c943"></a><!-- doxytag: member="sf::Shape::SetColor" ref="a43246dac44655361c14407bdfd03c943" args="(const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetColor </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the global color of the object. </p>
<p>This global color affects the entire object, and modulates (multiplies) its original pixels. The default color is white.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>New color</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a9ebc2bd85e3e97a0ec18dcb18bb6128f" title="Get the color of the object.">GetColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a121726785914ee0b3cfb93e015eb0d03"></a><!-- doxytag: member="sf::Shape::SetOrigin" ref="a121726785914ee0b3cfb93e015eb0d03" args="(const Vector2f &amp;origin)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetOrigin </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>origin</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the local origin of the object. </p>
<p>The origin of an object defines the center point for all transformations (position, scale, rotation). The coordinates of this point must be relative to the top-left corner of the object, and ignore all transformations (position, scale, rotation). The default origin of a drawable object is (0, 0).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>origin</em>&nbsp;</td><td>New origin</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a736fb2bc24ac9394b998dd79ae77bf36" title="Get the local origin of the object.">GetOrigin</a> </dd></dl>

</div>
</div>
<a class="anchor" id="affb3db405124b442b8f6e688f074dee0"></a><!-- doxytag: member="sf::Shape::SetOrigin" ref="affb3db405124b442b8f6e688f074dee0" args="(float x, float y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetOrigin </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the local origin of the object. </p>
<p>The origin of an object defines the center point for all transformations (position, scale, rotation). The coordinates of this point must be relative to the top-left corner of the object, and ignore all transformations (position, scale, rotation). The default origin of a drawable object is (0, 0).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>X coordinate of the new origin </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Y coordinate of the new origin</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a736fb2bc24ac9394b998dd79ae77bf36" title="Get the local origin of the object.">GetOrigin</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0094b9e71d54b22cf7960196b756cf5d"></a><!-- doxytag: member="sf::Shape::SetOutlineThickness" ref="a0094b9e71d54b22cf7960196b756cf5d" args="(float thickness)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Shape::SetOutlineThickness </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>thickness</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the thickness of the shape outline. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>thickness</em>&nbsp;</td><td>New thickness of the outline</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a0710225235c6badfb9a1044c70e4f8be" title="Get the thickness of the shape outline.">GetOutlineThickness</a>, <a class="el" href="classsf_1_1Shape.htm#a9659a2e60b3669e7f70e483a78f181d5" title="Enable or disable the shape&#39;s outline.">EnableOutline</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6554555c5f025b9794ae718ffa61f6fa"></a><!-- doxytag: member="sf::Shape::SetPointColor" ref="a6554555c5f025b9794ae718ffa61f6fa" args="(unsigned int index, const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Shape::SetPointColor </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the color of a point. </p>
<p>Warning: this function doesn't check the validity of <em>index</em>, if it is out of bounds (ie. in the range [0, GetPointscount() - 1]) the behaviour is undefined.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>Index of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>New color of the point</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#a9361826afe92ce30286e52595cff104d" title="Get the color of a point.">GetPointColor</a>, <a class="el" href="classsf_1_1Shape.htm#a08c73ee895246187c4ce891707cfbe22" title="Change the position of a point.">SetPointPosition</a>, <a class="el" href="classsf_1_1Shape.htm#a09e7990504a362f109481b7185852298" title="Change the outline color of a point.">SetPointOutlineColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a09e7990504a362f109481b7185852298"></a><!-- doxytag: member="sf::Shape::SetPointOutlineColor" ref="a09e7990504a362f109481b7185852298" args="(unsigned int index, const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Shape::SetPointOutlineColor </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Color.htm">Color</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>color</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the outline color of a point. </p>
<p>Warning: this function doesn't check the validity of <em>index</em>, if it is out of bounds (ie. in the range [0, GetPointscount() - 1]) the behaviour is undefined.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>Index of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>New outline color of the point</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#aac8414c9dda55e9e3d781edbfeb36498" title="Get the outline color of a point.">GetPointOutlineColor</a>, <a class="el" href="classsf_1_1Shape.htm#a08c73ee895246187c4ce891707cfbe22" title="Change the position of a point.">SetPointPosition</a>, <a class="el" href="classsf_1_1Shape.htm#a6554555c5f025b9794ae718ffa61f6fa" title="Change the color of a point.">SetPointColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae0bb33c9e0d8aeaedee4449825fede97"></a><!-- doxytag: member="sf::Shape::SetPointPosition" ref="ae0bb33c9e0d8aeaedee4449825fede97" args="(unsigned int index, float x, float y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Shape::SetPointPosition </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the position of a point. </p>
<p>Warning: this function doesn't check the validity of <em>index</em>, if it is out of bounds (ie. in the range [0, GetPointscount() - 1]) the behaviour is undefined.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>Index of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>New X coordinate of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>New Y coordinate of the point</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#ac29ef987e2923d270215983acdee70a1" title="Get the position of a point.">GetPointPosition</a>, <a class="el" href="classsf_1_1Shape.htm#a6554555c5f025b9794ae718ffa61f6fa" title="Change the color of a point.">SetPointColor</a>, <a class="el" href="classsf_1_1Shape.htm#a09e7990504a362f109481b7185852298" title="Change the outline color of a point.">SetPointOutlineColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a08c73ee895246187c4ce891707cfbe22"></a><!-- doxytag: member="sf::Shape::SetPointPosition" ref="a08c73ee895246187c4ce891707cfbe22" args="(unsigned int index, const Vector2f &amp;position)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Shape::SetPointPosition </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>position</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the position of a point. </p>
<p>Warning: this function doesn't check the validity of <em>index</em>, if it is out of bounds (ie. in the range [0, GetPointscount() - 1]) the behaviour is undefined.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>Index of the point </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>position</em>&nbsp;</td><td>New position of the point</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Shape.htm#ac29ef987e2923d270215983acdee70a1" title="Get the position of a point.">GetPointPosition</a>, <a class="el" href="classsf_1_1Shape.htm#a6554555c5f025b9794ae718ffa61f6fa" title="Change the color of a point.">SetPointColor</a>, <a class="el" href="classsf_1_1Shape.htm#a09e7990504a362f109481b7185852298" title="Change the outline color of a point.">SetPointOutlineColor</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aed916b5f46bd71d4222d92d4df17c6c0"></a><!-- doxytag: member="sf::Shape::SetPosition" ref="aed916b5f46bd71d4222d92d4df17c6c0" args="(const Vector2f &amp;position)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetPosition </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>position</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the position of the object. </p>
<p>This function completely overwrites the previous position. See Move to apply an offset based on the previous position instead. The default position of a drawable object is (0, 0).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>position</em>&nbsp;</td><td>New position</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#ae0b7b653067d51b9d55ec84c88938cfd" title="Move the object by a given offset.">Move</a>, <a class="el" href="classsf_1_1Drawable.htm#aadf7f9963121f105fbfd01ef1854274d" title="Set the X position of the object.">SetX</a>, <a class="el" href="classsf_1_1Drawable.htm#a2c3820004d0b70acd1a43163ceb89108" title="Set the Y position of the object.">SetY</a>, <a class="el" href="classsf_1_1Drawable.htm#a5961d78ed4b550092c90de500cc04fe0" title="Get the position of the object.">GetPosition</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a84c8c18f14c8985f4d219298dfa16fe2"></a><!-- doxytag: member="sf::Shape::SetPosition" ref="a84c8c18f14c8985f4d219298dfa16fe2" args="(float x, float y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetPosition </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the position of the object. </p>
<p>This function completely overwrites the previous position. See Move to apply an offset based on the previous position instead. The default position of a drawable object is (0, 0).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>X coordinate of the new position </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Y coordinate of the new position</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#ae0b7b653067d51b9d55ec84c88938cfd" title="Move the object by a given offset.">Move</a>, <a class="el" href="classsf_1_1Drawable.htm#aadf7f9963121f105fbfd01ef1854274d" title="Set the X position of the object.">SetX</a>, <a class="el" href="classsf_1_1Drawable.htm#a2c3820004d0b70acd1a43163ceb89108" title="Set the Y position of the object.">SetY</a>, <a class="el" href="classsf_1_1Drawable.htm#a5961d78ed4b550092c90de500cc04fe0" title="Get the position of the object.">GetPosition</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a32b161223f46faa281428082d4435223"></a><!-- doxytag: member="sf::Shape::SetRotation" ref="a32b161223f46faa281428082d4435223" args="(float angle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetRotation </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>angle</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the orientation of the object. </p>
<p>This function completely overwrites the previous rotation. See Rotate to add an angle based on the previous rotation instead. The default rotation of a drawable object is 0.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>angle</em>&nbsp;</td><td>New rotation, in degrees</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a9e2d796314a871dfc19597c68084cf4c" title="Rotate the object.">Rotate</a>, <a class="el" href="classsf_1_1Drawable.htm#a4e82bec096673bccf7ceac5207617017" title="Get the orientation of the object.">GetRotation</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1ba9eec16cabacd6fd47d2567748d47c"></a><!-- doxytag: member="sf::Shape::SetScale" ref="a1ba9eec16cabacd6fd47d2567748d47c" args="(const Vector2f &amp;factors)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetScale </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>factors</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the scale factors of the object. </p>
<p><em>scale.x</em> and <em>scale.y</em> must be strictly positive, otherwise they are ignored. This function completely overwrites the previous scale. See Scale to add a factor based on the previous scale instead. The default scale of a drawable object is (1, 1).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>factors</em>&nbsp;</td><td>New scale factors</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#af14b17e4f5a73d2b1457707734643550" title="Scale the object.">Scale</a>, <a class="el" href="classsf_1_1Drawable.htm#a4b151b01bde5056dcb225a0ceb1dc56b" title="Set the X scale factor of the object.">SetScaleX</a>, <a class="el" href="classsf_1_1Drawable.htm#ae030c576aabe7c0cbe5ca1d6f412b906" title="Set the Y scale factor of the object.">SetScaleY</a>, <a class="el" href="classsf_1_1Drawable.htm#a6ddb66a4509565b05bf30ec1609c2a55" title="Get the current scale of the object.">GetScale</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0ca6c6cd466339f439f0439e1a61f576"></a><!-- doxytag: member="sf::Shape::SetScale" ref="a0ca6c6cd466339f439f0439e1a61f576" args="(float factorX, float factorY)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetScale </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>factorX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>factorY</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the scale factors of the object. </p>
<p><em>factorX</em> and <em>factorY</em> must be strictly positive, otherwise they are ignored. This function completely overwrites the previous scale. See Scale to add a factor based on the previous scale instead. The default scale of a drawable object is (1, 1).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>factorX</em>&nbsp;</td><td>New horizontal scale factor </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factorY</em>&nbsp;</td><td>New vertical scale factor</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#af14b17e4f5a73d2b1457707734643550" title="Scale the object.">Scale</a>, <a class="el" href="classsf_1_1Drawable.htm#a4b151b01bde5056dcb225a0ceb1dc56b" title="Set the X scale factor of the object.">SetScaleX</a>, <a class="el" href="classsf_1_1Drawable.htm#ae030c576aabe7c0cbe5ca1d6f412b906" title="Set the Y scale factor of the object.">SetScaleY</a>, <a class="el" href="classsf_1_1Drawable.htm#a6ddb66a4509565b05bf30ec1609c2a55" title="Get the current scale of the object.">GetScale</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a4b151b01bde5056dcb225a0ceb1dc56b"></a><!-- doxytag: member="sf::Shape::SetScaleX" ref="a4b151b01bde5056dcb225a0ceb1dc56b" args="(float factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetScaleX </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>factor</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the X scale factor of the object. </p>
<p><em>factor</em> must be strictly positive, otherwise it is ignored.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>factor</em>&nbsp;</td><td>New horizontal scale factor</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#ae030c576aabe7c0cbe5ca1d6f412b906" title="Set the Y scale factor of the object.">SetScaleY</a>, <a class="el" href="classsf_1_1Drawable.htm#a0ca6c6cd466339f439f0439e1a61f576" title="Set the scale factors of the object.">SetScale</a>, <a class="el" href="classsf_1_1Drawable.htm#a6ddb66a4509565b05bf30ec1609c2a55" title="Get the current scale of the object.">GetScale</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae030c576aabe7c0cbe5ca1d6f412b906"></a><!-- doxytag: member="sf::Shape::SetScaleY" ref="ae030c576aabe7c0cbe5ca1d6f412b906" args="(float factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetScaleY </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>factor</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the Y scale factor of the object. </p>
<p><em>factor</em> must be strictly positive, otherwise it is ignored.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>factor</em>&nbsp;</td><td>New vertical scale factor</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a4b151b01bde5056dcb225a0ceb1dc56b" title="Set the X scale factor of the object.">SetScaleX</a>, <a class="el" href="classsf_1_1Drawable.htm#a0ca6c6cd466339f439f0439e1a61f576" title="Set the scale factors of the object.">SetScale</a>, <a class="el" href="classsf_1_1Drawable.htm#a6ddb66a4509565b05bf30ec1609c2a55" title="Get the current scale of the object.">GetScale</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aadf7f9963121f105fbfd01ef1854274d"></a><!-- doxytag: member="sf::Shape::SetX" ref="aadf7f9963121f105fbfd01ef1854274d" args="(float x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetX </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>x</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the X position of the object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>New X coordinate</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a2c3820004d0b70acd1a43163ceb89108" title="Set the Y position of the object.">SetY</a>, <a class="el" href="classsf_1_1Drawable.htm#a84c8c18f14c8985f4d219298dfa16fe2" title="Set the position of the object.">SetPosition</a>, <a class="el" href="classsf_1_1Drawable.htm#a5961d78ed4b550092c90de500cc04fe0" title="Get the position of the object.">GetPosition</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2c3820004d0b70acd1a43163ceb89108"></a><!-- doxytag: member="sf::Shape::SetY" ref="a2c3820004d0b70acd1a43163ceb89108" args="(float y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sf::Drawable::SetY </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>y</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the Y position of the object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>New Y coordinate</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#aadf7f9963121f105fbfd01ef1854274d" title="Set the X position of the object.">SetX</a>, <a class="el" href="classsf_1_1Drawable.htm#a84c8c18f14c8985f4d219298dfa16fe2" title="Set the position of the object.">SetPosition</a>, <a class="el" href="classsf_1_1Drawable.htm#a5961d78ed4b550092c90de500cc04fe0" title="Get the position of the object.">GetPosition</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac48af98be80280ceea40b76777a9f599"></a><!-- doxytag: member="sf::Shape::TransformToGlobal" ref="ac48af98be80280ceea40b76777a9f599" args="(const Vector2f &amp;point) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> sf::Drawable::TransformToGlobal </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>point</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Transform a local point in global coordinates. </p>
<p>This function takes a point in local coordinates, and transforms it in global coordinates. In other words, it applies the same transformations that are applied to the object (origin, translation, rotation and scale).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>point</em>&nbsp;</td><td>Point to transform</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The transformed point</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#a0db0514c07c903009b8b5c26884a9a51" title="Transform a point in object local coordinates.">TransformToLocal</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0db0514c07c903009b8b5c26884a9a51"></a><!-- doxytag: member="sf::Shape::TransformToLocal" ref="a0db0514c07c903009b8b5c26884a9a51" args="(const Vector2f &amp;point) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> sf::Drawable::TransformToLocal </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsf_1_1Vector2.htm">Vector2f</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>point</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Transform a point in object local coordinates. </p>
<p>This function takes a point in global coordinates, and transforms it in coordinates local to the object. In other words, it applies the inverse of all the transformations applied to the object (origin, translation, rotation and scale).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>point</em>&nbsp;</td><td>Point to transform</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The transformed point</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classsf_1_1Drawable.htm#ac48af98be80280ceea40b76777a9f599" title="Transform a local point in global coordinates.">TransformToGlobal</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="Shape_8hpp_source.htm">Shape.hpp</a></li>
</ul>
</div>

        <p id="footer">
            &nbsp;::&nbsp; Copyright &copy; 2007-2008 Laurent Gomila, all rights reserved &nbsp;::&nbsp;
            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.5.2</a> &nbsp;::&nbsp;
        </p>

    </body>
</html>