347 lines
33 KiB
HTML
347 lines
33 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>SDL Utility: Shape Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">SDL Utility
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('class_shape.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pro-methods">Protected Member Functions</a> |
|
|
<a href="#pro-attribs">Protected Attributes</a> |
|
|
<a href="class_shape-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">Shape Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>The non-instantiable base class for all SDLU shapes.
|
|
<a href="class_shape.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="_shape_8hpp_source.html">Shape.hpp</a>></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for Shape:</div>
|
|
<div class="dyncontent">
|
|
<div class="center">
|
|
<img src="class_shape.png" usemap="#Shape_map" alt=""/>
|
|
<map id="Shape_map" name="Shape_map">
|
|
<area href="class_drawable.html" title="Everything that can be rendered derives from this class." alt="Drawable" shape="rect" coords="0,0,97,24"/>
|
|
<area href="class_transformable.html" title="A class that stores locational information." alt="Transformable" shape="rect" coords="107,0,204,24"/>
|
|
<area href="classsdlu_1_1_rectangle.html" alt="sdlu::Rectangle" shape="rect" coords="53,112,150,136"/>
|
|
</map>
|
|
</div></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:ac3b9fc48965274893f25b18aa14ba665"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_shape.html#ac3b9fc48965274893f25b18aa14ba665">~Shape</a> ()</td></tr>
|
|
<tr class="memdesc:ac3b9fc48965274893f25b18aa14ba665"><td class="mdescLeft"> </td><td class="mdescRight">Deconstructor. <a href="class_shape.html#ac3b9fc48965274893f25b18aa14ba665">More...</a><br /></td></tr>
|
|
<tr class="separator:ac3b9fc48965274893f25b18aa14ba665"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a61fb6adee1930ee57dd3337ef42926ec"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_shape.html#a61fb6adee1930ee57dd3337ef42926ec">SetColor</a> (const <a class="el" href="struct_color.html">Color</a> &<a class="el" href="class_shape.html#ac56e2bf5eb24cf37b6e08c671501566b">color</a>)</td></tr>
|
|
<tr class="memdesc:a61fb6adee1930ee57dd3337ef42926ec"><td class="mdescLeft"> </td><td class="mdescRight">Sets the color of the shape. <a href="class_shape.html#a61fb6adee1930ee57dd3337ef42926ec">More...</a><br /></td></tr>
|
|
<tr class="separator:a61fb6adee1930ee57dd3337ef42926ec"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a206be0235ad015ac23e5ece55b2621bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_color.html">Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_shape.html#a206be0235ad015ac23e5ece55b2621bc">GetColor</a> ()</td></tr>
|
|
<tr class="memdesc:a206be0235ad015ac23e5ece55b2621bc"><td class="mdescLeft"> </td><td class="mdescRight">Gets the color of the shape. <a href="class_shape.html#a206be0235ad015ac23e5ece55b2621bc">More...</a><br /></td></tr>
|
|
<tr class="separator:a206be0235ad015ac23e5ece55b2621bc"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pub_methods_class_drawable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_drawable')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_drawable.html">Drawable</a></td></tr>
|
|
<tr class="memitem:a3d6fd34a29f7d6d861828e65aa02cb39 inherit pub_methods_class_drawable"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawable.html#a3d6fd34a29f7d6d861828e65aa02cb39">Drawable</a> (const <a class="el" href="class_drawable.html">Drawable</a> &other)=delete</td></tr>
|
|
<tr class="separator:a3d6fd34a29f7d6d861828e65aa02cb39 inherit pub_methods_class_drawable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1f24cac47fa9281aa9b50d0cb47c353d inherit pub_methods_class_drawable"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawable.html#a1f24cac47fa9281aa9b50d0cb47c353d">Drawable</a> (<a class="el" href="class_drawable.html">Drawable</a> &&other)=delete</td></tr>
|
|
<tr class="separator:a1f24cac47fa9281aa9b50d0cb47c353d inherit pub_methods_class_drawable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a02393acfdc07d52b5e318352064c2327 inherit pub_methods_class_drawable"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_drawable.html">Drawable</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawable.html#a02393acfdc07d52b5e318352064c2327">operator=</a> (const <a class="el" href="class_drawable.html">Drawable</a> &other)=delete</td></tr>
|
|
<tr class="separator:a02393acfdc07d52b5e318352064c2327 inherit pub_methods_class_drawable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pub_methods_class_transformable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_transformable')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_transformable.html">Transformable</a></td></tr>
|
|
<tr class="memitem:aaf42df1fbbc11ac758342a0cb26eb80a inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#aaf42df1fbbc11ac758342a0cb26eb80a">Transformable</a> ()</td></tr>
|
|
<tr class="memdesc:aaf42df1fbbc11ac758342a0cb26eb80a inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Default constructur. <a href="class_transformable.html#aaf42df1fbbc11ac758342a0cb26eb80a">More...</a><br /></td></tr>
|
|
<tr class="separator:aaf42df1fbbc11ac758342a0cb26eb80a inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab8eae21f70d709159d849a2966c24412 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#ab8eae21f70d709159d849a2966c24412">~Transformable</a> ()</td></tr>
|
|
<tr class="memdesc:ab8eae21f70d709159d849a2966c24412 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Deconstructor. <a href="class_transformable.html#ab8eae21f70d709159d849a2966c24412">More...</a><br /></td></tr>
|
|
<tr class="separator:ab8eae21f70d709159d849a2966c24412 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a49f770487198dc60ab7bdfc131778a66 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a49f770487198dc60ab7bdfc131778a66">GetPosition</a> ()</td></tr>
|
|
<tr class="memdesc:a49f770487198dc60ab7bdfc131778a66 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Returns the position of the object. <a href="class_transformable.html#a49f770487198dc60ab7bdfc131778a66">More...</a><br /></td></tr>
|
|
<tr class="separator:a49f770487198dc60ab7bdfc131778a66 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0dff4cf64143f46e2740da16e8b588bf inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a0dff4cf64143f46e2740da16e8b588bf">SetPosition</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &<a class="el" href="class_transformable.html#a1f58c94a72ecab9cca66287f8ac7b20f">position</a>)</td></tr>
|
|
<tr class="memdesc:a0dff4cf64143f46e2740da16e8b588bf inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Sets a new position. <a href="class_transformable.html#a0dff4cf64143f46e2740da16e8b588bf">More...</a><br /></td></tr>
|
|
<tr class="separator:a0dff4cf64143f46e2740da16e8b588bf inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a10235cf98c74ee27ed5eb57d440e02e2 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a10235cf98c74ee27ed5eb57d440e02e2">SetPosition</a> (float x, float y)</td></tr>
|
|
<tr class="memdesc:a10235cf98c74ee27ed5eb57d440e02e2 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Sets a new position. <a href="class_transformable.html#a10235cf98c74ee27ed5eb57d440e02e2">More...</a><br /></td></tr>
|
|
<tr class="separator:a10235cf98c74ee27ed5eb57d440e02e2 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a32758b5ffec2466bdd6824d314bc7cbd inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a32758b5ffec2466bdd6824d314bc7cbd">Move</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &<a class="el" href="class_transformable.html#a1f58c94a72ecab9cca66287f8ac7b20f">position</a>)</td></tr>
|
|
<tr class="memdesc:a32758b5ffec2466bdd6824d314bc7cbd inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Adds to the current position. <a href="class_transformable.html#a32758b5ffec2466bdd6824d314bc7cbd">More...</a><br /></td></tr>
|
|
<tr class="separator:a32758b5ffec2466bdd6824d314bc7cbd inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a19db1bbc145ea631f8caa16ddcf852bf inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a19db1bbc145ea631f8caa16ddcf852bf">Move</a> (float x, float y)</td></tr>
|
|
<tr class="memdesc:a19db1bbc145ea631f8caa16ddcf852bf inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Adds to the current position. <a href="class_transformable.html#a19db1bbc145ea631f8caa16ddcf852bf">More...</a><br /></td></tr>
|
|
<tr class="separator:a19db1bbc145ea631f8caa16ddcf852bf inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab45027854676ecff39b45f7b1bb8db45 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#ab45027854676ecff39b45f7b1bb8db45">GetOrigin</a> ()</td></tr>
|
|
<tr class="memdesc:ab45027854676ecff39b45f7b1bb8db45 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Gets the current local origin. <a href="class_transformable.html#ab45027854676ecff39b45f7b1bb8db45">More...</a><br /></td></tr>
|
|
<tr class="separator:ab45027854676ecff39b45f7b1bb8db45 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0a4764e72329b3120812569e8d35c109 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a0a4764e72329b3120812569e8d35c109">SetOrigin</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &<a class="el" href="class_transformable.html#aa21dbaab5c9f7f5703d827ae7090a0e8">origin</a>)</td></tr>
|
|
<tr class="memdesc:a0a4764e72329b3120812569e8d35c109 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Sets a new local origin. <a href="class_transformable.html#a0a4764e72329b3120812569e8d35c109">More...</a><br /></td></tr>
|
|
<tr class="separator:a0a4764e72329b3120812569e8d35c109 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6f1cb1413a0b26398b35aa0c9e6c5bc8 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a6f1cb1413a0b26398b35aa0c9e6c5bc8">SetOrigin</a> (float x, float y)</td></tr>
|
|
<tr class="memdesc:a6f1cb1413a0b26398b35aa0c9e6c5bc8 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Sets a new local origin. <a href="class_transformable.html#a6f1cb1413a0b26398b35aa0c9e6c5bc8">More...</a><br /></td></tr>
|
|
<tr class="separator:a6f1cb1413a0b26398b35aa0c9e6c5bc8 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5bd1f0833826cc91cddbb630f4d2ea00 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a5bd1f0833826cc91cddbb630f4d2ea00">GetScale</a> ()</td></tr>
|
|
<tr class="memdesc:a5bd1f0833826cc91cddbb630f4d2ea00 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Gets the current scale of the object. <a href="class_transformable.html#a5bd1f0833826cc91cddbb630f4d2ea00">More...</a><br /></td></tr>
|
|
<tr class="separator:a5bd1f0833826cc91cddbb630f4d2ea00 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6dfad28c0725d65023164580dbe40eec inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a6dfad28c0725d65023164580dbe40eec">SetScale</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &<a class="el" href="class_transformable.html#a587fe840ddac456ba4e8caa5f00ddf0c">scale</a>)</td></tr>
|
|
<tr class="memdesc:a6dfad28c0725d65023164580dbe40eec inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Sets a new scale. <a href="class_transformable.html#a6dfad28c0725d65023164580dbe40eec">More...</a><br /></td></tr>
|
|
<tr class="separator:a6dfad28c0725d65023164580dbe40eec inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7eaf9ee1d0110fb92e4643ca856e4e18 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a7eaf9ee1d0110fb92e4643ca856e4e18">SetScale</a> (float x, float y)</td></tr>
|
|
<tr class="memdesc:a7eaf9ee1d0110fb92e4643ca856e4e18 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Sets a new scale. <a href="class_transformable.html#a7eaf9ee1d0110fb92e4643ca856e4e18">More...</a><br /></td></tr>
|
|
<tr class="separator:a7eaf9ee1d0110fb92e4643ca856e4e18 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0ef8796a3ca3ad79b22be5ef59cd4c3a inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a0ef8796a3ca3ad79b22be5ef59cd4c3a">Scale</a> (const <a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> &<a class="el" href="class_transformable.html#a587fe840ddac456ba4e8caa5f00ddf0c">scale</a>)</td></tr>
|
|
<tr class="memdesc:a0ef8796a3ca3ad79b22be5ef59cd4c3a inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Scales the object by some amount. <a href="class_transformable.html#a0ef8796a3ca3ad79b22be5ef59cd4c3a">More...</a><br /></td></tr>
|
|
<tr class="separator:a0ef8796a3ca3ad79b22be5ef59cd4c3a inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7f823978c527cdca2ce5667926aa7ce2 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a7f823978c527cdca2ce5667926aa7ce2">Scale</a> (float x, float y)</td></tr>
|
|
<tr class="memdesc:a7f823978c527cdca2ce5667926aa7ce2 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Scales the object by some amount. <a href="class_transformable.html#a7f823978c527cdca2ce5667926aa7ce2">More...</a><br /></td></tr>
|
|
<tr class="separator:a7f823978c527cdca2ce5667926aa7ce2 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2072c3a7060c9867ce887b937fcc92ae inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a2072c3a7060c9867ce887b937fcc92ae">GetRotation</a> ()</td></tr>
|
|
<tr class="memdesc:a2072c3a7060c9867ce887b937fcc92ae inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Gets the current rotation. <a href="class_transformable.html#a2072c3a7060c9867ce887b937fcc92ae">More...</a><br /></td></tr>
|
|
<tr class="separator:a2072c3a7060c9867ce887b937fcc92ae inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6644393bb743781a7745071c307cb481 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a6644393bb743781a7745071c307cb481">SetRotation</a> (float angle)</td></tr>
|
|
<tr class="memdesc:a6644393bb743781a7745071c307cb481 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Sets a new rotation. <a href="class_transformable.html#a6644393bb743781a7745071c307cb481">More...</a><br /></td></tr>
|
|
<tr class="separator:a6644393bb743781a7745071c307cb481 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab4c7bb0f85cc1670f4c13d89f09b5938 inherit pub_methods_class_transformable"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#ab4c7bb0f85cc1670f4c13d89f09b5938">Rotate</a> (float angle)</td></tr>
|
|
<tr class="memdesc:ab4c7bb0f85cc1670f4c13d89f09b5938 inherit pub_methods_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Rotates by some amount. <a href="class_transformable.html#ab4c7bb0f85cc1670f4c13d89f09b5938">More...</a><br /></td></tr>
|
|
<tr class="separator:ab4c7bb0f85cc1670f4c13d89f09b5938 inherit pub_methods_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
|
|
Protected Member Functions</h2></td></tr>
|
|
<tr class="memitem:aaa8d87171e65e0d8ba3c5459978992a7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_shape.html#aaa8d87171e65e0d8ba3c5459978992a7">Shape</a> ()</td></tr>
|
|
<tr class="memdesc:aaa8d87171e65e0d8ba3c5459978992a7"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="class_shape.html#aaa8d87171e65e0d8ba3c5459978992a7">More...</a><br /></td></tr>
|
|
<tr class="separator:aaa8d87171e65e0d8ba3c5459978992a7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pro_methods_class_drawable"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_drawable')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="class_drawable.html">Drawable</a></td></tr>
|
|
<tr class="memitem:aac88608db6081da479c772c96636acb1 inherit pro_methods_class_drawable"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawable.html#aac88608db6081da479c772c96636acb1">Drawable</a> ()</td></tr>
|
|
<tr class="separator:aac88608db6081da479c772c96636acb1 inherit pro_methods_class_drawable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae50710a7322d5ab41019739213f5bbed inherit pro_methods_class_drawable"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawable.html#ae50710a7322d5ab41019739213f5bbed">Draw</a> (SDL_Renderer *const target) const =0</td></tr>
|
|
<tr class="separator:ae50710a7322d5ab41019739213f5bbed inherit pro_methods_class_drawable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
|
|
Protected Attributes</h2></td></tr>
|
|
<tr class="memitem:ac56e2bf5eb24cf37b6e08c671501566b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_color.html">Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_shape.html#ac56e2bf5eb24cf37b6e08c671501566b">color</a></td></tr>
|
|
<tr class="separator:ac56e2bf5eb24cf37b6e08c671501566b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pro_attribs_class_transformable"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_transformable')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="class_transformable.html">Transformable</a></td></tr>
|
|
<tr class="memitem:a1f58c94a72ecab9cca66287f8ac7b20f inherit pro_attribs_class_transformable"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a1f58c94a72ecab9cca66287f8ac7b20f">position</a></td></tr>
|
|
<tr class="memdesc:a1f58c94a72ecab9cca66287f8ac7b20f inherit pro_attribs_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Position of the object. <a href="class_transformable.html#a1f58c94a72ecab9cca66287f8ac7b20f">More...</a><br /></td></tr>
|
|
<tr class="separator:a1f58c94a72ecab9cca66287f8ac7b20f inherit pro_attribs_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa21dbaab5c9f7f5703d827ae7090a0e8 inherit pro_attribs_class_transformable"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#aa21dbaab5c9f7f5703d827ae7090a0e8">origin</a></td></tr>
|
|
<tr class="memdesc:aa21dbaab5c9f7f5703d827ae7090a0e8 inherit pro_attribs_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Offset of the top-left corner from the position. <a href="class_transformable.html#aa21dbaab5c9f7f5703d827ae7090a0e8">More...</a><br /></td></tr>
|
|
<tr class="separator:aa21dbaab5c9f7f5703d827ae7090a0e8 inherit pro_attribs_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a587fe840ddac456ba4e8caa5f00ddf0c inherit pro_attribs_class_transformable"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_vector2_8hpp.html#a9f3739462b0605dcb64299fa289b6afe">Vector2f</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a587fe840ddac456ba4e8caa5f00ddf0c">scale</a></td></tr>
|
|
<tr class="memdesc:a587fe840ddac456ba4e8caa5f00ddf0c inherit pro_attribs_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Scale of the object. <a href="class_transformable.html#a587fe840ddac456ba4e8caa5f00ddf0c">More...</a><br /></td></tr>
|
|
<tr class="separator:a587fe840ddac456ba4e8caa5f00ddf0c inherit pro_attribs_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8a27de0d8dbb0e0bd0af4092ec7509c0 inherit pro_attribs_class_transformable"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="class_transformable.html#a8a27de0d8dbb0e0bd0af4092ec7509c0">rotation</a></td></tr>
|
|
<tr class="memdesc:a8a27de0d8dbb0e0bd0af4092ec7509c0 inherit pro_attribs_class_transformable"><td class="mdescLeft"> </td><td class="mdescRight">Rotation of the object (in degrees) <a href="class_transformable.html#a8a27de0d8dbb0e0bd0af4092ec7509c0">More...</a><br /></td></tr>
|
|
<tr class="separator:a8a27de0d8dbb0e0bd0af4092ec7509c0 inherit pro_attribs_class_transformable"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>The non-instantiable base class for all SDLU shapes. </p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="ac3b9fc48965274893f25b18aa14ba665"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac3b9fc48965274893f25b18aa14ba665">◆ </a></span>~Shape()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Shape::~Shape </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Deconstructor. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aaa8d87171e65e0d8ba3c5459978992a7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aaa8d87171e65e0d8ba3c5459978992a7">◆ </a></span>Shape()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Shape::Shape </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Default constructor. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a206be0235ad015ac23e5ece55b2621bc"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a206be0235ad015ac23e5ece55b2621bc">◆ </a></span>GetColor()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_color.html">Color</a> Shape::GetColor </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Gets the color of the shape. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a61fb6adee1930ee57dd3337ef42926ec"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a61fb6adee1930ee57dd3337ef42926ec">◆ </a></span>SetColor()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Shape::SetColor </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_color.html">Color</a> & </td>
|
|
<td class="paramname"><em>color</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the color of the shape. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a id="ac56e2bf5eb24cf37b6e08c671501566b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac56e2bf5eb24cf37b6e08c671501566b">◆ </a></span>color</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_color.html">Color</a> Shape::color</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>C:/Users/Robert/source/repos/SDLU/include/graphics/drawable/shapes/<a class="el" href="_shape_8hpp_source.html">Shape.hpp</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="class_shape.html">Shape</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|