SDLU/docs/html/_shape_8hpp_source.html
2021-04-24 02:01:36 +02:00

137 lines
12 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: C:/Users/Robert/source/repos/SDLU/include/graphics/drawable/shapes/Shape.hpp Source File</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&amp;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&amp;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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_shape_8hpp_source.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="headertitle">
<div class="title">Shape.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_shape_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_drawable_8hpp.html">graphics/drawable/Drawable.hpp</a>&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_transformable_8hpp.html">graphics/drawable/Transformable.hpp</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_color_8hpp.html">structures/Color.hpp</a>&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<a class="code" href="_util_8hpp.html#ad0494d8896dbc587136819e261afdc91">SDLU_BEGIN</a></div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_shape.html"> 17</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_shape.html">Shape</a> :</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; <span class="keyword">public</span> <a class="code" href="class_drawable.html">Drawable</a>, <span class="keyword">public</span> <a class="code" href="class_transformable.html">Transformable</a></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;{</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_shape.html#ac3b9fc48965274893f25b18aa14ba665"> 24</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="class_shape.html#ac3b9fc48965274893f25b18aa14ba665">~Shape</a>();</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_shape.html#a61fb6adee1930ee57dd3337ef42926ec"> 29</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_shape.html#a61fb6adee1930ee57dd3337ef42926ec">SetColor</a>(<span class="keyword">const</span> <a class="code" href="struct_color.html">Color</a>&amp; <a class="code" href="class_shape.html#ac56e2bf5eb24cf37b6e08c671501566b">color</a>);</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_shape.html#a206be0235ad015ac23e5ece55b2621bc"> 34</a></span>&#160; <a class="code" href="struct_color.html">Color</a> <a class="code" href="class_shape.html#a206be0235ad015ac23e5ece55b2621bc">GetColor</a>();</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="class_shape.html#aaa8d87171e65e0d8ba3c5459978992a7"> 40</a></span>&#160; <a class="code" href="class_shape.html#aaa8d87171e65e0d8ba3c5459978992a7">Shape</a>();</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="class_shape.html#ac56e2bf5eb24cf37b6e08c671501566b"> 43</a></span>&#160; <a class="code" href="struct_color.html">Color</a> <a class="code" href="class_shape.html#ac56e2bf5eb24cf37b6e08c671501566b">color</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;};</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;SDLU_END</div>
<div class="ttc" id="a_color_8hpp_html"><div class="ttname"><a href="_color_8hpp.html">Color.hpp</a></div><div class="ttdoc">Provides utility for creating and handling colors.</div></div>
<div class="ttc" id="a_drawable_8hpp_html"><div class="ttname"><a href="_drawable_8hpp.html">Drawable.hpp</a></div><div class="ttdoc">The base class of everything renderable by RenderTarget.</div></div>
<div class="ttc" id="a_transformable_8hpp_html"><div class="ttname"><a href="_transformable_8hpp.html">Transformable.hpp</a></div><div class="ttdoc">Contains information for transformable objects.</div></div>
<div class="ttc" id="a_util_8hpp_html_ad0494d8896dbc587136819e261afdc91"><div class="ttname"><a href="_util_8hpp.html#ad0494d8896dbc587136819e261afdc91">SDLU_BEGIN</a></div><div class="ttdeci">#define SDLU_BEGIN</div><div class="ttdef"><b>Definition:</b> Util.hpp:32</div></div>
<div class="ttc" id="aclass_drawable_html"><div class="ttname"><a href="class_drawable.html">Drawable</a></div><div class="ttdoc">Everything that can be rendered derives from this class.</div><div class="ttdef"><b>Definition:</b> Drawable.hpp:18</div></div>
<div class="ttc" id="aclass_shape_html"><div class="ttname"><a href="class_shape.html">Shape</a></div><div class="ttdoc">The non-instantiable base class for all SDLU shapes.</div><div class="ttdef"><b>Definition:</b> Shape.hpp:19</div></div>
<div class="ttc" id="aclass_shape_html_a206be0235ad015ac23e5ece55b2621bc"><div class="ttname"><a href="class_shape.html#a206be0235ad015ac23e5ece55b2621bc">Shape::GetColor</a></div><div class="ttdeci">Color GetColor()</div><div class="ttdoc">Gets the color of the shape.</div></div>
<div class="ttc" id="aclass_shape_html_a61fb6adee1930ee57dd3337ef42926ec"><div class="ttname"><a href="class_shape.html#a61fb6adee1930ee57dd3337ef42926ec">Shape::SetColor</a></div><div class="ttdeci">void SetColor(const Color &amp;color)</div><div class="ttdoc">Sets the color of the shape.</div></div>
<div class="ttc" id="aclass_shape_html_aaa8d87171e65e0d8ba3c5459978992a7"><div class="ttname"><a href="class_shape.html#aaa8d87171e65e0d8ba3c5459978992a7">Shape::Shape</a></div><div class="ttdeci">Shape()</div><div class="ttdoc">Default constructor.</div></div>
<div class="ttc" id="aclass_shape_html_ac3b9fc48965274893f25b18aa14ba665"><div class="ttname"><a href="class_shape.html#ac3b9fc48965274893f25b18aa14ba665">Shape::~Shape</a></div><div class="ttdeci">virtual ~Shape()</div><div class="ttdoc">Deconstructor.</div></div>
<div class="ttc" id="aclass_shape_html_ac56e2bf5eb24cf37b6e08c671501566b"><div class="ttname"><a href="class_shape.html#ac56e2bf5eb24cf37b6e08c671501566b">Shape::color</a></div><div class="ttdeci">Color color</div><div class="ttdef"><b>Definition:</b> Shape.hpp:43</div></div>
<div class="ttc" id="aclass_transformable_html"><div class="ttname"><a href="class_transformable.html">Transformable</a></div><div class="ttdoc">A class that stores locational information.</div><div class="ttdef"><b>Definition:</b> Transformable.hpp:21</div></div>
<div class="ttc" id="astruct_color_html"><div class="ttname"><a href="struct_color.html">Color</a></div><div class="ttdoc">A structure holding color data.</div><div class="ttdef"><b>Definition:</b> Color.hpp:20</div></div>
</div><!-- fragment --></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="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_c17ed8a99c2aafc6034c524ffcf900dc.html">graphics</a></li><li class="navelem"><a class="el" href="dir_0ad5046be0f935a9cae2c1d790701d38.html">drawable</a></li><li class="navelem"><a class="el" href="dir_b8c15fbf3c3199154c9b0a821e68d020.html">shapes</a></li><li class="navelem"><a class="el" href="_shape_8hpp.html">Shape.hpp</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>