cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

gb_2metasprites_8h_source.html (27887B)


      1<!-- HTML header for doxygen 1.8.14-->
      2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3<html xmlns="http://www.w3.org/1999/xhtml">
      4<head>
      5<meta http-equiv="cache-control" content="max-age=86400"/>
      6<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      7<meta http-equiv="X-UA-Compatible" content="IE=9"/>
      8<meta name="generator" content="Doxygen 1.8.20"/>
      9<meta name="viewport" content="width=device-width, initial-scale=1"/>
     10<title>GBDK 2020 Docs: gb/metasprites.h Source File</title>
     11<link href="tabs.css" rel="stylesheet" type="text/css"/>
     12<script type="text/javascript" src="jquery.js"></script>
     13<script type="text/javascript" src="dynsections.js"></script>
     14<link href="navtree.css" rel="stylesheet" type="text/css"/>
     15<script type="text/javascript" src="resize.js"></script>
     16<script type="text/javascript" src="navtreedata.js"></script>
     17<script type="text/javascript" src="navtree.js"></script>
     18<link href="search/search.css" rel="stylesheet" type="text/css"/>
     19<script type="text/javascript" src="search/searchdata.js"></script>
     20<script type="text/javascript" src="search/search.js"></script>
     21<link href="doxygen.css" rel="stylesheet" type="text/css" />
     22<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
     23</head>
     24<body>
     25<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     26<div id="titlearea">
     27<table cellspacing="0" cellpadding="0">
     28 <tbody>
     29 <tr style="height: 56px;">
     30  <td id="projectalign" style="padding-left: 0.5em;">
     31   <div id="projectname">GBDK 2020 Docs
     32   &#160;<span id="projectnumber">4.0.6</span>
     33   </div>
     34   <div id="projectbrief">API Documentation for GBDK 2020</div>
     35  </td>
     36 </tr>
     37 </tbody>
     38</table>
     39</div>
     40<!-- end header part -->
     41<!-- Generated by Doxygen 1.8.20 -->
     42<script type="text/javascript">
     43/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     44var searchBox = new SearchBox("searchBox", "search",false,'Search');
     45/* @license-end */
     46</script>
     47<script type="text/javascript" src="menudata.js"></script>
     48<script type="text/javascript" src="menu.js"></script>
     49<script type="text/javascript">
     50/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     51$(function() {
     52  initMenu('',true,false,'search.php','Search');
     53  $(document).ready(function() { init_search(); });
     54});
     55/* @license-end */</script>
     56<div id="main-nav"></div>
     57</div><!-- top -->
     58<div id="side-nav" class="ui-resizable side-nav-resizable">
     59  <div id="nav-tree">
     60    <div id="nav-tree-contents">
     61      <div id="nav-sync" class="sync"></div>
     62    </div>
     63  </div>
     64  <div id="splitbar" style="-moz-user-select:none;" 
     65       class="ui-resizable-handle">
     66  </div>
     67</div>
     68<script type="text/javascript">
     69/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     70$(document).ready(function(){initNavTree('gb_2metasprites_8h_source.html',''); initResizable(); });
     71/* @license-end */
     72</script>
     73<div id="doc-content">
     74<!-- window showing the filter options -->
     75<div id="MSearchSelectWindow"
     76     onmouseover="return searchBox.OnSearchSelectShow()"
     77     onmouseout="return searchBox.OnSearchSelectHide()"
     78     onkeydown="return searchBox.OnSearchSelectKey(event)">
     79</div>
     80
     81<!-- iframe showing the search results (closed by default) -->
     82<div id="MSearchResultsWindow">
     83<iframe src="javascript:void(0)" frameborder="0" 
     84        name="MSearchResults" id="MSearchResults">
     85</iframe>
     86</div>
     87
     88<div class="header">
     89  <div class="headertitle">
     90<div class="title">metasprites.h</div>  </div>
     91</div><!--header-->
     92<div class="contents">
     93<a href="gb_2metasprites_8h.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>
     94<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#ifndef _METASPRITES_H_INCLUDE</span></div>
     95<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">#define _METASPRITES_H_INCLUDE</span></div>
     96<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
     97<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="gb_2hardware_8h.html">gb/hardware.h</a>&gt;</span></div>
     98<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
     99<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span></div>
    100<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
    101<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structmetasprite__t.html">   87</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structmetasprite__t.html">metasprite_t</a> {</div>
    102<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structmetasprite__t.html#a2c3fea1f6b3354352823320c69a3e4bb">   88</a></span>&#160;    <a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>  <a class="code" href="structmetasprite__t.html#a2c3fea1f6b3354352823320c69a3e4bb">dy</a>, <a class="code" href="structmetasprite__t.html#a67d2a6fb62059da39b54e975c4fbb324">dx</a>;</div>
    103<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structmetasprite__t.html#ad68b2f80c08f2f7fc603c56af2e75a6f">   89</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structmetasprite__t.html#ad68b2f80c08f2f7fc603c56af2e75a6f">dtile</a>;</div>
    104<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structmetasprite__t.html#ab61e73a65c5e8cb30d0d81bb7845d615">   90</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structmetasprite__t.html#ab61e73a65c5e8cb30d0d81bb7845d615">props</a>;</div>
    105<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#aba6401cc8173158a9f37ee22094c03d3">   91</a></span>&#160;} <a class="code" href="gb_2metasprites_8h.html#aba6401cc8173158a9f37ee22094c03d3">metasprite_t</a>;</div>
    106<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
    107<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#a9f9f390a57460914e27c7604b7d8379a">   93</a></span>&#160;<span class="preprocessor">#define metasprite_end -128</span></div>
    108<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#aa88dc4d5e35045509b8955a4a23a30aa">   94</a></span>&#160;<span class="preprocessor">#define METASPR_ITEM(dy,dx,dt,a) {(dy),(dx),(dt),(a)}</span></div>
    109<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#aa1d425dcce3cd104751744535b6a389a">   95</a></span>&#160;<span class="preprocessor">#define METASPR_TERM {metasprite_end}</span></div>
    110<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
    111<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">void</span> * <a class="code" href="gb_2metasprites_8h.html#aae51f066cc5436457f62351847bfc64b">__current_metasprite</a>;</div>
    112<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_2metasprites_8h.html#a345fa52509387bd18a4092178a18286f">__current_base_tile</a>;</div>
    113<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_2metasprites_8h.html#a4bfe4d95031b67951cf6bc342110db39">__render_shadow_OAM</a>;</div>
    114<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
    115<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
    116<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">static</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> __move_metasprite(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <span class="keywordtype">id</span>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    117<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="keyword">static</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> __move_metasprite_vflip(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <span class="keywordtype">id</span>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    118<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="keyword">static</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> __move_metasprite_hflip(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <span class="keywordtype">id</span>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    119<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keyword">static</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> __move_metasprite_hvflip(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <span class="keywordtype">id</span>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    120<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> __hide_metasprite(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <span class="keywordtype">id</span>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    121<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
    122<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#a77bb622fa362f2e04be1bafaa099a709">  113</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_2metasprites_8h.html#a77bb622fa362f2e04be1bafaa099a709">hide_sprites_range</a>(<a class="code" href="asm_2gbz80_2types_8h.html#ab27e9918b538ce9d8ca692479b375b6a">UINT8</a> from, <a class="code" href="asm_2gbz80_2types_8h.html#ab27e9918b538ce9d8ca692479b375b6a">UINT8</a> to) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_2metasprites_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    123<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
    124<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#a77475e913bf0a19df28bdbf9d1cf392b">  137</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_2metasprites_8h.html#a77475e913bf0a19df28bdbf9d1cf392b">move_metasprite</a>(<span class="keyword">const</span> <a class="code" href="structmetasprite__t.html">metasprite_t</a> * metasprite, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_sprite, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) {</div>
    125<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <a class="code" href="gb_2metasprites_8h.html#aae51f066cc5436457f62351847bfc64b">__current_metasprite</a> = metasprite;</div>
    126<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="gb_2metasprites_8h.html#a345fa52509387bd18a4092178a18286f">__current_base_tile</a> = base_tile;</div>
    127<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordflow">return</span> __move_metasprite(base_sprite, x, y);</div>
    128<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;}</div>
    129<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
    130<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#aa8ff2df0679ebb0b6e0a8f6d83127e1a">  166</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_2metasprites_8h.html#aa8ff2df0679ebb0b6e0a8f6d83127e1a">move_metasprite_vflip</a>(<span class="keyword">const</span> <a class="code" href="structmetasprite__t.html">metasprite_t</a> * metasprite, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_sprite, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) {</div>
    131<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <a class="code" href="gb_2metasprites_8h.html#aae51f066cc5436457f62351847bfc64b">__current_metasprite</a> = metasprite;</div>
    132<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <a class="code" href="gb_2metasprites_8h.html#a345fa52509387bd18a4092178a18286f">__current_base_tile</a> = base_tile;</div>
    133<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordflow">return</span> __move_metasprite_vflip(base_sprite, x - 8, y);</div>
    134<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;}</div>
    135<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
    136<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
    137<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#a27e3bb17d0458b60b1f0433f66301f46">  196</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_2metasprites_8h.html#a27e3bb17d0458b60b1f0433f66301f46">move_metasprite_hflip</a>(<span class="keyword">const</span> <a class="code" href="structmetasprite__t.html">metasprite_t</a> * metasprite, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_sprite, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) {</div>
    138<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <a class="code" href="gb_2metasprites_8h.html#aae51f066cc5436457f62351847bfc64b">__current_metasprite</a> = metasprite;</div>
    139<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <a class="code" href="gb_2metasprites_8h.html#a345fa52509387bd18a4092178a18286f">__current_base_tile</a> = base_tile;</div>
    140<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <span class="keywordflow">return</span> __move_metasprite_hflip(base_sprite, x, y - ((<a class="code" href="gb_2hardware_8h.html#a6515fdfaa50eeb7e63faeea54f77cd6b">LCDC_REG</a> &amp; 0x04U) ? 16 : 8) );</div>
    141<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;}</div>
    142<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
    143<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#a32a61acd4a76d1de5814f7b94c8bc23f">  225</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_2metasprites_8h.html#a32a61acd4a76d1de5814f7b94c8bc23f">move_metasprite_hvflip</a>(<span class="keyword">const</span> <a class="code" href="structmetasprite__t.html">metasprite_t</a> * metasprite, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_sprite, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) {</div>
    144<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <a class="code" href="gb_2metasprites_8h.html#aae51f066cc5436457f62351847bfc64b">__current_metasprite</a> = metasprite;</div>
    145<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <a class="code" href="gb_2metasprites_8h.html#a345fa52509387bd18a4092178a18286f">__current_base_tile</a> = base_tile;</div>
    146<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <span class="keywordflow">return</span> __move_metasprite_hvflip(base_sprite, x - 8, y - ((<a class="code" href="gb_2hardware_8h.html#a6515fdfaa50eeb7e63faeea54f77cd6b">LCDC_REG</a> &amp; 0x04U) ? 16 : 8));</div>
    147<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;}</div>
    148<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
    149<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="gb_2metasprites_8h.html#af8de5a888d65448b9d34027a0e1ce906">  240</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_2metasprites_8h.html#af8de5a888d65448b9d34027a0e1ce906">hide_metasprite</a>(<span class="keyword">const</span> <a class="code" href="structmetasprite__t.html">metasprite_t</a> * metasprite, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_sprite) {</div>
    150<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <a class="code" href="gb_2metasprites_8h.html#aae51f066cc5436457f62351847bfc64b">__current_metasprite</a> = metasprite;</div>
    151<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    __hide_metasprite(base_sprite);</div>
    152<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;}</div>
    153<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; </div>
    154<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="preprocessor">#endif</span></div>
    155</div><!-- fragment --></div><!-- contents -->
    156</div><!-- doc-content -->
    157<div class="ttc" id="aasm_2gbz80_2types_8h_html_ab27e9918b538ce9d8ca692479b375b6a"><div class="ttname"><a href="asm_2gbz80_2types_8h.html#ab27e9918b538ce9d8ca692479b375b6a">UINT8</a></div><div class="ttdeci">unsigned char UINT8</div><div class="ttdef"><b>Definition:</b> types.h:46</div></div>
    158<div class="ttc" id="astdint_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:51</div></div>
    159<div class="ttc" id="astdint_8h_html_aef44329758059c91c76d334e8fc09700"><div class="ttname"><a href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a></div><div class="ttdeci">signed char int8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:43</div></div>
    160<div class="ttc" id="astructmetasprite__t_html"><div class="ttname"><a href="structmetasprite__t.html">metasprite_t</a></div><div class="ttdef"><b>Definition:</b> metasprites.h:87</div></div>
    161<div class="ttc" id="astructmetasprite__t_html_ab61e73a65c5e8cb30d0d81bb7845d615"><div class="ttname"><a href="structmetasprite__t.html#ab61e73a65c5e8cb30d0d81bb7845d615">metasprite_t::props</a></div><div class="ttdeci">uint8_t props</div><div class="ttdef"><b>Definition:</b> metasprites.h:90</div></div>
    162<div class="ttc" id="astructmetasprite__t_html_a2c3fea1f6b3354352823320c69a3e4bb"><div class="ttname"><a href="structmetasprite__t.html#a2c3fea1f6b3354352823320c69a3e4bb">metasprite_t::dy</a></div><div class="ttdeci">int8_t dy</div><div class="ttdef"><b>Definition:</b> metasprites.h:88</div></div>
    163<div class="ttc" id="agb_2metasprites_8h_html_a32a61acd4a76d1de5814f7b94c8bc23f"><div class="ttname"><a href="gb_2metasprites_8h.html#a32a61acd4a76d1de5814f7b94c8bc23f">move_metasprite_hvflip</a></div><div class="ttdeci">uint8_t move_metasprite_hvflip(const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)</div><div class="ttdef"><b>Definition:</b> metasprites.h:225</div></div>
    164<div class="ttc" id="agb_2metasprites_8h_html_a27e3bb17d0458b60b1f0433f66301f46"><div class="ttname"><a href="gb_2metasprites_8h.html#a27e3bb17d0458b60b1f0433f66301f46">move_metasprite_hflip</a></div><div class="ttdeci">uint8_t move_metasprite_hflip(const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)</div><div class="ttdef"><b>Definition:</b> metasprites.h:196</div></div>
    165<div class="ttc" id="agb_2metasprites_8h_html_a345fa52509387bd18a4092178a18286f"><div class="ttname"><a href="gb_2metasprites_8h.html#a345fa52509387bd18a4092178a18286f">__current_base_tile</a></div><div class="ttdeci">uint8_t __current_base_tile</div></div>
    166<div class="ttc" id="agb_2hardware_8h_html_a6515fdfaa50eeb7e63faeea54f77cd6b"><div class="ttname"><a href="gb_2hardware_8h.html#a6515fdfaa50eeb7e63faeea54f77cd6b">LCDC_REG</a></div><div class="ttdeci">__REG LCDC_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:162</div></div>
    167<div class="ttc" id="astructmetasprite__t_html_a67d2a6fb62059da39b54e975c4fbb324"><div class="ttname"><a href="structmetasprite__t.html#a67d2a6fb62059da39b54e975c4fbb324">metasprite_t::dx</a></div><div class="ttdeci">int8_t dx</div><div class="ttdef"><b>Definition:</b> metasprites.h:88</div></div>
    168<div class="ttc" id="agb_2metasprites_8h_html_a77475e913bf0a19df28bdbf9d1cf392b"><div class="ttname"><a href="gb_2metasprites_8h.html#a77475e913bf0a19df28bdbf9d1cf392b">move_metasprite</a></div><div class="ttdeci">uint8_t move_metasprite(const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)</div><div class="ttdef"><b>Definition:</b> metasprites.h:137</div></div>
    169<div class="ttc" id="agb_2metasprites_8h_html_af8de5a888d65448b9d34027a0e1ce906"><div class="ttname"><a href="gb_2metasprites_8h.html#af8de5a888d65448b9d34027a0e1ce906">hide_metasprite</a></div><div class="ttdeci">void hide_metasprite(const metasprite_t *metasprite, uint8_t base_sprite)</div><div class="ttdef"><b>Definition:</b> metasprites.h:240</div></div>
    170<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
    171<div class="ttc" id="agb_2metasprites_8h_html_a77bb622fa362f2e04be1bafaa099a709"><div class="ttname"><a href="gb_2metasprites_8h.html#a77bb622fa362f2e04be1bafaa099a709">hide_sprites_range</a></div><div class="ttdeci">void hide_sprites_range(UINT8 from, UINT8 to) OLDCALL PRESERVES_REGS(b</div></div>
    172<div class="ttc" id="agb_2metasprites_8h_html_aba6401cc8173158a9f37ee22094c03d3"><div class="ttname"><a href="gb_2metasprites_8h.html#aba6401cc8173158a9f37ee22094c03d3">metasprite_t</a></div><div class="ttdeci">struct metasprite_t metasprite_t</div></div>
    173<div class="ttc" id="agb_8h_html_a4c2e4adef74067fdbb49005bc73de937"><div class="ttname"><a href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></div><div class="ttdeci">void b</div><div class="ttdef"><b>Definition:</b> gb.h:608</div></div>
    174<div class="ttc" id="aasm_2types_8h_html_a0971918860055db2e50dacea4da8f3bc"><div class="ttname"><a href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></div><div class="ttdeci">#define OLDCALL</div><div class="ttdef"><b>Definition:</b> types.h:19</div></div>
    175<div class="ttc" id="agb_2hardware_8h_html"><div class="ttname"><a href="gb_2hardware_8h.html">hardware.h</a></div></div>
    176<div class="ttc" id="agb_2metasprites_8h_html_aa8ff2df0679ebb0b6e0a8f6d83127e1a"><div class="ttname"><a href="gb_2metasprites_8h.html#aa8ff2df0679ebb0b6e0a8f6d83127e1a">move_metasprite_vflip</a></div><div class="ttdeci">uint8_t move_metasprite_vflip(const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)</div><div class="ttdef"><b>Definition:</b> metasprites.h:166</div></div>
    177<div class="ttc" id="agb_2metasprites_8h_html_aae51f066cc5436457f62351847bfc64b"><div class="ttname"><a href="gb_2metasprites_8h.html#aae51f066cc5436457f62351847bfc64b">__current_metasprite</a></div><div class="ttdeci">const void * __current_metasprite</div></div>
    178<div class="ttc" id="astructmetasprite__t_html_ad68b2f80c08f2f7fc603c56af2e75a6f"><div class="ttname"><a href="structmetasprite__t.html#ad68b2f80c08f2f7fc603c56af2e75a6f">metasprite_t::dtile</a></div><div class="ttdeci">uint8_t dtile</div><div class="ttdef"><b>Definition:</b> metasprites.h:89</div></div>
    179<div class="ttc" id="aasm_2types_8h_html_acb825e83a33fcc06482c59b4ab2cf961"><div class="ttname"><a href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a></div><div class="ttdeci">#define PRESERVES_REGS(...)</div><div class="ttdef"><b>Definition:</b> types.h:29</div></div>
    180<div class="ttc" id="agb_2metasprites_8h_html_a0b3366755f3276b0243c1e0497471b7a"><div class="ttname"><a href="gb_2metasprites_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a></div><div class="ttdeci">void c</div><div class="ttdef"><b>Definition:</b> metasprites.h:113</div></div>
    181<div class="ttc" id="agb_2metasprites_8h_html_a4bfe4d95031b67951cf6bc342110db39"><div class="ttname"><a href="gb_2metasprites_8h.html#a4bfe4d95031b67951cf6bc342110db39">__render_shadow_OAM</a></div><div class="ttdeci">uint8_t __render_shadow_OAM</div></div>
    182<!-- HTML footer for doxygen 1.8.14-->
    183<!-- start footer part -->
    184<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    185</div>
    186</body>
    187</html>