SuperSpaceInvaderTurboApoca.../doc/SAE102-SpaceInvaders/html/d3/d99/pixel_manager_8cpp_source.html
2022-01-11 15:45:50 +01:00

138 lines
15 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=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SUPER Space invader : Turbo edition DX - VS GOD: src/pixelManager/pixelManager.cpp 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 id="projectrow">
<td id="projectlogo"><img alt="Logo" src="../../LOGO.png"/></td>
<td id="projectalign">
<div id="projectname">SUPER Space invader : Turbo edition DX - VS GOD<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">A simple space invader ripoff</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search",'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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('d3/d99/pixel_manager_8cpp_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">pixelManager.cpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d3/d99/pixel_manager_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#include &quot;<a class="code" href="../../df/db7/pixel_manager_8h.html">pixelManager/pixelManager.h</a>&quot;</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"><a class="line" href="../../dc/d34/class_pixel_manager.html#a0b28e70e108b042497d483ce85ce5b0e"> 4</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d34/class_pixel_manager.html#a0b28e70e108b042497d483ce85ce5b0e">PixelManager::loadSprites</a>(vector&lt;Task&gt;&amp; tasks){</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> <a class="code hl_define" href="../../df/db7/pixel_manager_8h.html#a727fdd9384375b1d268475980118b158">ADD_SPRITE_TASK</a>(<a class="code hl_variable" href="../../dc/d34/class_pixel_manager.html#aa108cd115eedc01b2076844b96bc076f">logo</a>)</div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> <a class="code hl_define" href="../../df/db7/pixel_manager_8h.html#a727fdd9384375b1d268475980118b158">ADD_SPRITE_TASK</a>(<a class="code hl_variable" href="../../dc/d34/class_pixel_manager.html#a297c927d2c069c1da7d34d15b11d481d">menuBackground</a>)</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> <a class="code hl_define" href="../../df/db7/pixel_manager_8h.html#a727fdd9384375b1d268475980118b158">ADD_SPRITE_TASK</a>(<a class="code hl_variable" href="../../dc/d34/class_pixel_manager.html#ad36fc234b6025da179c02d0845df74d8">gameBackground</a>)</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> <a class="code hl_define" href="../../df/db7/pixel_manager_8h.html#a727fdd9384375b1d268475980118b158">ADD_SPRITE_TASK</a>(<a class="code hl_variable" href="../../dc/d34/class_pixel_manager.html#a336e6c4321df17aba4b59d07732f051d">rightHand</a>)</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span>}</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="../../dc/d34/class_pixel_manager.html#a061f872b418537446952b17533ff02d6"> 11</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d34/class_pixel_manager.html#a061f872b418537446952b17533ff02d6">PixelManager::startFrame</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <a class="code hl_variable" href="../../dc/d34/class_pixel_manager.html#aaca742e0e39716b5e5a89e422a031c36">window</a>.clearScreen();</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span>}</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="../../dc/d34/class_pixel_manager.html#a39a1801e2c89c10c6a5c9ef33c83e8ec"> 15</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d34/class_pixel_manager.html#a39a1801e2c89c10c6a5c9ef33c83e8ec">PixelManager::endFrame</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <a class="code hl_variable" href="../../dc/d34/class_pixel_manager.html#aaca742e0e39716b5e5a89e422a031c36">window</a>.finishFrame();</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span>}</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../dc/d34/class_pixel_manager.html#a69a986401035a12c8e12a015b7ac250a"> 19</a></span><span class="keywordtype">unsigned</span> <a class="code hl_function" href="../../dc/d34/class_pixel_manager.html#a69a986401035a12c8e12a015b7ac250a">PixelManager::getScreenHeight</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="../../dc/d34/class_pixel_manager.html#aaca742e0e39716b5e5a89e422a031c36">window</a>.getWindowSize().getY();</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span>}</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../dc/d34/class_pixel_manager.html#a755b819d8edf14edcd0d87d5fd3966fd"> 23</a></span><span class="keywordtype">unsigned</span> <a class="code hl_function" href="../../dc/d34/class_pixel_manager.html#a755b819d8edf14edcd0d87d5fd3966fd">PixelManager::getScreenWidth</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="../../dc/d34/class_pixel_manager.html#aaca742e0e39716b5e5a89e422a031c36">window</a>.getWindowSize().getX();</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span>}</div>
<div class="ttc" id="aclass_pixel_manager_html_a061f872b418537446952b17533ff02d6"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#a061f872b418537446952b17533ff02d6">PixelManager::startFrame</a></div><div class="ttdeci">void startFrame() const</div><div class="ttdoc">clear the screen for a new frame</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d99/pixel_manager_8cpp_source.html#l00011">pixelManager.cpp:11</a></div></div>
<div class="ttc" id="aclass_pixel_manager_html_a0b28e70e108b042497d483ce85ce5b0e"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#a0b28e70e108b042497d483ce85ce5b0e">PixelManager::loadSprites</a></div><div class="ttdeci">virtual void loadSprites(vector&lt; Task &gt; &amp;tasks)</div><div class="ttdoc">loads sprites in parallel using multiple threads</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d99/pixel_manager_8cpp_source.html#l00004">pixelManager.cpp:4</a></div></div>
<div class="ttc" id="aclass_pixel_manager_html_a297c927d2c069c1da7d34d15b11d481d"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#a297c927d2c069c1da7d34d15b11d481d">PixelManager::menuBackground</a></div><div class="ttdeci">MySprite menuBackground</div><div class="ttdoc">sprite of the background during menu</div><div class="ttdef"><b>Definition:</b> <a href="../../df/db7/pixel_manager_8h_source.html#l00068">pixelManager.h:68</a></div></div>
<div class="ttc" id="aclass_pixel_manager_html_a336e6c4321df17aba4b59d07732f051d"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#a336e6c4321df17aba4b59d07732f051d">PixelManager::rightHand</a></div><div class="ttdeci">MySprite rightHand</div><div class="ttdoc">sprite of the right hand of god</div><div class="ttdef"><b>Definition:</b> <a href="../../df/db7/pixel_manager_8h_source.html#l00078">pixelManager.h:78</a></div></div>
<div class="ttc" id="aclass_pixel_manager_html_a39a1801e2c89c10c6a5c9ef33c83e8ec"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#a39a1801e2c89c10c6a5c9ef33c83e8ec">PixelManager::endFrame</a></div><div class="ttdeci">void endFrame() const</div><div class="ttdoc">finish a frame render</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d99/pixel_manager_8cpp_source.html#l00015">pixelManager.cpp:15</a></div></div>
<div class="ttc" id="aclass_pixel_manager_html_a69a986401035a12c8e12a015b7ac250a"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#a69a986401035a12c8e12a015b7ac250a">PixelManager::getScreenHeight</a></div><div class="ttdeci">unsigned getScreenHeight() const</div><div class="ttdoc">give the height of the screen</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d99/pixel_manager_8cpp_source.html#l00019">pixelManager.cpp:19</a></div></div>
<div class="ttc" id="aclass_pixel_manager_html_a755b819d8edf14edcd0d87d5fd3966fd"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#a755b819d8edf14edcd0d87d5fd3966fd">PixelManager::getScreenWidth</a></div><div class="ttdeci">unsigned getScreenWidth() const</div><div class="ttdoc">give the width of the screen</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d99/pixel_manager_8cpp_source.html#l00023">pixelManager.cpp:23</a></div></div>
<div class="ttc" id="aclass_pixel_manager_html_aa108cd115eedc01b2076844b96bc076f"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#aa108cd115eedc01b2076844b96bc076f">PixelManager::logo</a></div><div class="ttdeci">MySprite logo</div><div class="ttdoc">sprite of the logo of the game</div><div class="ttdef"><b>Definition:</b> <a href="../../df/db7/pixel_manager_8h_source.html#l00063">pixelManager.h:63</a></div></div>
<div class="ttc" id="aclass_pixel_manager_html_aaca742e0e39716b5e5a89e422a031c36"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#aaca742e0e39716b5e5a89e422a031c36">PixelManager::window</a></div><div class="ttdeci">MinGL &amp; window</div><div class="ttdoc">display window</div><div class="ttdef"><b>Definition:</b> <a href="../../df/db7/pixel_manager_8h_source.html#l00051">pixelManager.h:51</a></div></div>
<div class="ttc" id="aclass_pixel_manager_html_ad36fc234b6025da179c02d0845df74d8"><div class="ttname"><a href="../../dc/d34/class_pixel_manager.html#ad36fc234b6025da179c02d0845df74d8">PixelManager::gameBackground</a></div><div class="ttdeci">MySprite gameBackground</div><div class="ttdoc">sprite of the background during gameplay</div><div class="ttdef"><b>Definition:</b> <a href="../../df/db7/pixel_manager_8h_source.html#l00073">pixelManager.h:73</a></div></div>
<div class="ttc" id="apixel_manager_8h_html"><div class="ttname"><a href="../../df/db7/pixel_manager_8h.html">pixelManager.h</a></div><div class="ttdoc">Manages screen display.</div></div>
<div class="ttc" id="apixel_manager_8h_html_a727fdd9384375b1d268475980118b158"><div class="ttname"><a href="../../df/db7/pixel_manager_8h.html#a727fdd9384375b1d268475980118b158">ADD_SPRITE_TASK</a></div><div class="ttdeci">#define ADD_SPRITE_TASK(X)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/db7/pixel_manager_8h_source.html#l00043">pixelManager.h:43</a></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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="../../dir_ac7e93dc0ac771f348cb79c53bbc2c63.html">pixelManager</a></li><li class="navelem"><a class="el" href="../../d3/d99/pixel_manager_8cpp.html">pixelManager.cpp</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.3 </li>
</ul>
</div>
</body>
</html>