cscg22-gearboy

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

drawing_8h.html (48999B)


      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/drawing.h File Reference</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('drawing_8h.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="summary">
     90<a href="#define-members">Macros</a> &#124;
     91<a href="#func-members">Functions</a>  </div>
     92  <div class="headertitle">
     93<div class="title">drawing.h File Reference</div>  </div>
     94</div><!--header-->
     95<div class="contents">
     96<div class="textblock"><code>#include &lt;types.h&gt;</code><br />
     97<code>#include &lt;<a class="el" href="stdint_8h_source.html">stdint.h</a>&gt;</code><br />
     98</div>
     99<p><a href="drawing_8h_source.html">Go to the source code of this file.</a></p>
    100<table class="memberdecls">
    101<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
    102Macros</h2></td></tr>
    103<tr class="memitem:a9a07c448b4d721dbec2715f51727e099"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a9a07c448b4d721dbec2715f51727e099">GRAPHICS_WIDTH</a>&#160;&#160;&#160;160</td></tr>
    104<tr class="separator:a9a07c448b4d721dbec2715f51727e099"><td class="memSeparator" colspan="2">&#160;</td></tr>
    105<tr class="memitem:aa9909ac8ecb03cbb763258a8f98f4170"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#aa9909ac8ecb03cbb763258a8f98f4170">GRAPHICS_HEIGHT</a>&#160;&#160;&#160;144</td></tr>
    106<tr class="separator:aa9909ac8ecb03cbb763258a8f98f4170"><td class="memSeparator" colspan="2">&#160;</td></tr>
    107<tr class="memitem:aa8abfd58ea514228abd69d8f6330e91d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#aa8abfd58ea514228abd69d8f6330e91d">SOLID</a>&#160;&#160;&#160;0x00	    /* Overwrites the existing pixels */</td></tr>
    108<tr class="separator:aa8abfd58ea514228abd69d8f6330e91d"><td class="memSeparator" colspan="2">&#160;</td></tr>
    109<tr class="memitem:a3363ca4d6d3cc0230b2804280591c991"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a3363ca4d6d3cc0230b2804280591c991">OR</a>&#160;&#160;&#160;0x01        /* Performs a logical OR */</td></tr>
    110<tr class="separator:a3363ca4d6d3cc0230b2804280591c991"><td class="memSeparator" colspan="2">&#160;</td></tr>
    111<tr class="memitem:a45cd11034d1a7d86c3a88d36f5e7f1ab"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a45cd11034d1a7d86c3a88d36f5e7f1ab">XOR</a>&#160;&#160;&#160;0x02		/* Performs a logical XOR */</td></tr>
    112<tr class="separator:a45cd11034d1a7d86c3a88d36f5e7f1ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
    113<tr class="memitem:acd1b97556dfbbac61063a63031d2f91d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#acd1b97556dfbbac61063a63031d2f91d">AND</a>&#160;&#160;&#160;0x03		/* Performs a logical AND */</td></tr>
    114<tr class="separator:acd1b97556dfbbac61063a63031d2f91d"><td class="memSeparator" colspan="2">&#160;</td></tr>
    115<tr class="memitem:a87b537f5fa5c109d3c05c13d6b18f382"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>&#160;&#160;&#160;0</td></tr>
    116<tr class="separator:a87b537f5fa5c109d3c05c13d6b18f382"><td class="memSeparator" colspan="2">&#160;</td></tr>
    117<tr class="memitem:a0ffe2221c8690dc80b5f9553474dd096"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a0ffe2221c8690dc80b5f9553474dd096">LTGREY</a>&#160;&#160;&#160;1</td></tr>
    118<tr class="separator:a0ffe2221c8690dc80b5f9553474dd096"><td class="memSeparator" colspan="2">&#160;</td></tr>
    119<tr class="memitem:a4dad87d91b9201be3b4ede372f31ae8a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a4dad87d91b9201be3b4ede372f31ae8a">DKGREY</a>&#160;&#160;&#160;2</td></tr>
    120<tr class="separator:a4dad87d91b9201be3b4ede372f31ae8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    121<tr class="memitem:a7b3b25cba33b07c303f3060fe41887f6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a7b3b25cba33b07c303f3060fe41887f6">BLACK</a>&#160;&#160;&#160;3</td></tr>
    122<tr class="separator:a7b3b25cba33b07c303f3060fe41887f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
    123<tr class="memitem:a91d52443c77ee105bd68cb0b47a8ee49"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a91d52443c77ee105bd68cb0b47a8ee49">M_NOFILL</a>&#160;&#160;&#160;0</td></tr>
    124<tr class="separator:a91d52443c77ee105bd68cb0b47a8ee49"><td class="memSeparator" colspan="2">&#160;</td></tr>
    125<tr class="memitem:aad3d180e0f12d6a6e5278fe0163f4c3e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#aad3d180e0f12d6a6e5278fe0163f4c3e">M_FILL</a>&#160;&#160;&#160;1</td></tr>
    126<tr class="separator:aad3d180e0f12d6a6e5278fe0163f4c3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
    127<tr class="memitem:a4dec4d9b2bace4f5bc6e6337f4086837"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a4dec4d9b2bace4f5bc6e6337f4086837">SIGNED</a>&#160;&#160;&#160;1</td></tr>
    128<tr class="separator:a4dec4d9b2bace4f5bc6e6337f4086837"><td class="memSeparator" colspan="2">&#160;</td></tr>
    129<tr class="memitem:a08cbc66092284f7da94279f986a0aae9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a08cbc66092284f7da94279f986a0aae9">UNSIGNED</a>&#160;&#160;&#160;0</td></tr>
    130<tr class="separator:a08cbc66092284f7da94279f986a0aae9"><td class="memSeparator" colspan="2">&#160;</td></tr>
    131</table><table class="memberdecls">
    132<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
    133Functions</h2></td></tr>
    134<tr class="memitem:aef65e5faa0adb82768fca06aafbe50e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#aef65e5faa0adb82768fca06aafbe50e8">gprint</a> (char *str) <a class="el" href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a></td></tr>
    135<tr class="separator:aef65e5faa0adb82768fca06aafbe50e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
    136<tr class="memitem:afeb7c0a887fe3d18659175de77a787a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#afeb7c0a887fe3d18659175de77a787a5">gprintln</a> (<a class="el" href="stdint_8h.html#a66634143db08bebe9b46ab4cb1fc6fd3">int16_t</a> number, <a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> radix, <a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> signed_value) <a class="el" href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a></td></tr>
    137<tr class="separator:afeb7c0a887fe3d18659175de77a787a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
    138<tr class="memitem:a9d70278d1d09fdc24ea6bd9788dbd96a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a9d70278d1d09fdc24ea6bd9788dbd96a">gprintn</a> (<a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> number, <a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> radix, <a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> signed_value) <a class="el" href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a></td></tr>
    139<tr class="separator:a9d70278d1d09fdc24ea6bd9788dbd96a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    140<tr class="memitem:a5f7a0ed309f9526e9be285146559848c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a5f7a0ed309f9526e9be285146559848c">gprintf</a> (char *fmt,...) <a class="el" href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a></td></tr>
    141<tr class="separator:a5f7a0ed309f9526e9be285146559848c"><td class="memSeparator" colspan="2">&#160;</td></tr>
    142<tr class="memitem:ac888c327137d7f00cb3af57af236602a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#ac888c327137d7f00cb3af57af236602a">plot</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> colour, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a3ea524204d839377cf39842eec23e202">mode</a>) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    143<tr class="separator:ac888c327137d7f00cb3af57af236602a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    144<tr class="memitem:a595c77bca15884c75fd85af84f373814"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a595c77bca15884c75fd85af84f373814">plot_point</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    145<tr class="separator:a595c77bca15884c75fd85af84f373814"><td class="memSeparator" colspan="2">&#160;</td></tr>
    146<tr class="memitem:a7b8f466ecc6be62f6c034e52f05e957a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a7b8f466ecc6be62f6c034e52f05e957a">switch_data</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *src, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *dst) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    147<tr class="separator:a7b8f466ecc6be62f6c034e52f05e957a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    148<tr class="memitem:ab2c383d3e1541fae40cf5174e22166c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#ab2c383d3e1541fae40cf5174e22166c6">draw_image</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    149<tr class="separator:ab2c383d3e1541fae40cf5174e22166c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
    150<tr class="memitem:afe0ad8959a2867c4b60829d065660f1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#afe0ad8959a2867c4b60829d065660f1b">line</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x1, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y1, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x2, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y2) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    151<tr class="separator:afe0ad8959a2867c4b60829d065660f1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
    152<tr class="memitem:ae1170230e5c9e61cc4321632e949e7ce"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#ae1170230e5c9e61cc4321632e949e7ce">box</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x1, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y1, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x2, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y2, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> style) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    153<tr class="separator:ae1170230e5c9e61cc4321632e949e7ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
    154<tr class="memitem:ad46c3bdc38dfc9b70214693390d404cb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#ad46c3bdc38dfc9b70214693390d404cb">circle</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> radius, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> style) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    155<tr class="separator:ad46c3bdc38dfc9b70214693390d404cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
    156<tr class="memitem:a1e268a46a8151f9cc3b7b40100123d09"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a1e268a46a8151f9cc3b7b40100123d09">getpix</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    157<tr class="separator:a1e268a46a8151f9cc3b7b40100123d09"><td class="memSeparator" colspan="2">&#160;</td></tr>
    158<tr class="memitem:a9178e678a17cb08653600f435093ae2a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a9178e678a17cb08653600f435093ae2a">wrtchr</a> (char chr) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    159<tr class="separator:a9178e678a17cb08653600f435093ae2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    160<tr class="memitem:a2d6cbdc9528ec11ac54bd3dbe754ab74"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a2d6cbdc9528ec11ac54bd3dbe754ab74">gotogxy</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    161<tr class="separator:a2d6cbdc9528ec11ac54bd3dbe754ab74"><td class="memSeparator" colspan="2">&#160;</td></tr>
    162<tr class="memitem:a9fa68d25be92836a1b08a5e610b4f32f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="drawing_8h.html#a9fa68d25be92836a1b08a5e610b4f32f">color</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> forecolor, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> backcolor, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a3ea524204d839377cf39842eec23e202">mode</a>) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    163<tr class="separator:a9fa68d25be92836a1b08a5e610b4f32f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    164</table>
    165<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
    166<div class="textblock"><p>All Points Addressable (APA) mode drawing library.</p>
    167<p>Drawing routines originally by Pascal Felber Legendary overhall by Jon Fuge <a href="#" onclick="location.href='mai'+'lto:'+'jon'+'ny'+'@q-'+'co'+'nti'+'nu'+'um.'+'de'+'mon'+'.c'+'o.u'+'k'; return false;">jonny<span style="display: none;">.nosp@m.</span>@q-c<span style="display: none;">.nosp@m.</span>ontin<span style="display: none;">.nosp@m.</span>uum.<span style="display: none;">.nosp@m.</span>demon<span style="display: none;">.nosp@m.</span>.co.<span style="display: none;">.nosp@m.</span>uk</a> Commenting by Michael Hope</p>
    168<p>Note: The standard text <a class="el" href="stdio_8h.html#ab403fa700816f08631ba75bc536f74d4">printf()</a> and <a class="el" href="stdio_8h.html#a9bc92fb9f23c72a66d030d4028dda72d">putchar()</a> cannot be used in APA mode - use <a class="el" href="drawing_8h.html#a5f7a0ed309f9526e9be285146559848c">gprintf()</a> and <a class="el" href="drawing_8h.html#a9178e678a17cb08653600f435093ae2a">wrtchr()</a> instead.</p>
    169<p>Note: Using drawing.h will cause it's custom VBL and LCD ISRs (<code>drawing_vbl</code> and <code>drawing_lcd</code>) to be installed. Changing the mode (<code>mode(M_TEXT_OUT);</code>) will cause them to be de-installed.</p>
    170<p>The valid coordinate ranges are from (x,y) 0,0 to 159,143. There is no built-in clipping, so drawing outside valid coordinates will likely produce undesired results (wrapping/etc).</p>
    171<hr  />
    172<p><b>Important note for the drawing API :</b></p>
    173<p>The Game Boy graphics hardware is not well suited to frame-buffer style graphics such as the kind provided in <code>drawing.h</code>. Due to that, <b>most drawing functions (rectangles, circles, etc) will be slow</b> . When possible it's much faster and more efficient to work with the tiles and tile maps that the Game Boy hardware is built around. </p>
    174</div><h2 class="groupheader">Macro Definition Documentation</h2>
    175<a id="a9a07c448b4d721dbec2715f51727e099"></a>
    176<h2 class="memtitle"><span class="permalink"><a href="#a9a07c448b4d721dbec2715f51727e099">&#9670;&nbsp;</a></span>GRAPHICS_WIDTH</h2>
    177
    178<div class="memitem">
    179<div class="memproto">
    180      <table class="memname">
    181        <tr>
    182          <td class="memname">#define GRAPHICS_WIDTH&#160;&#160;&#160;160</td>
    183        </tr>
    184      </table>
    185</div><div class="memdoc">
    186<p>Size of the screen in pixels </p>
    187
    188</div>
    189</div>
    190<a id="aa9909ac8ecb03cbb763258a8f98f4170"></a>
    191<h2 class="memtitle"><span class="permalink"><a href="#aa9909ac8ecb03cbb763258a8f98f4170">&#9670;&nbsp;</a></span>GRAPHICS_HEIGHT</h2>
    192
    193<div class="memitem">
    194<div class="memproto">
    195      <table class="memname">
    196        <tr>
    197          <td class="memname">#define GRAPHICS_HEIGHT&#160;&#160;&#160;144</td>
    198        </tr>
    199      </table>
    200</div><div class="memdoc">
    201
    202</div>
    203</div>
    204<a id="aa8abfd58ea514228abd69d8f6330e91d"></a>
    205<h2 class="memtitle"><span class="permalink"><a href="#aa8abfd58ea514228abd69d8f6330e91d">&#9670;&nbsp;</a></span>SOLID</h2>
    206
    207<div class="memitem">
    208<div class="memproto">
    209      <table class="memname">
    210        <tr>
    211          <td class="memname">#define SOLID&#160;&#160;&#160;0x00	    /* Overwrites the existing pixels */</td>
    212        </tr>
    213      </table>
    214</div><div class="memdoc">
    215
    216</div>
    217</div>
    218<a id="a3363ca4d6d3cc0230b2804280591c991"></a>
    219<h2 class="memtitle"><span class="permalink"><a href="#a3363ca4d6d3cc0230b2804280591c991">&#9670;&nbsp;</a></span>OR</h2>
    220
    221<div class="memitem">
    222<div class="memproto">
    223      <table class="memname">
    224        <tr>
    225          <td class="memname">#define OR&#160;&#160;&#160;0x01        /* Performs a logical OR */</td>
    226        </tr>
    227      </table>
    228</div><div class="memdoc">
    229
    230</div>
    231</div>
    232<a id="a45cd11034d1a7d86c3a88d36f5e7f1ab"></a>
    233<h2 class="memtitle"><span class="permalink"><a href="#a45cd11034d1a7d86c3a88d36f5e7f1ab">&#9670;&nbsp;</a></span>XOR</h2>
    234
    235<div class="memitem">
    236<div class="memproto">
    237      <table class="memname">
    238        <tr>
    239          <td class="memname">#define XOR&#160;&#160;&#160;0x02		/* Performs a logical XOR */</td>
    240        </tr>
    241      </table>
    242</div><div class="memdoc">
    243
    244</div>
    245</div>
    246<a id="acd1b97556dfbbac61063a63031d2f91d"></a>
    247<h2 class="memtitle"><span class="permalink"><a href="#acd1b97556dfbbac61063a63031d2f91d">&#9670;&nbsp;</a></span>AND</h2>
    248
    249<div class="memitem">
    250<div class="memproto">
    251      <table class="memname">
    252        <tr>
    253          <td class="memname">#define AND&#160;&#160;&#160;0x03		/* Performs a logical AND */</td>
    254        </tr>
    255      </table>
    256</div><div class="memdoc">
    257
    258</div>
    259</div>
    260<a id="a87b537f5fa5c109d3c05c13d6b18f382"></a>
    261<h2 class="memtitle"><span class="permalink"><a href="#a87b537f5fa5c109d3c05c13d6b18f382">&#9670;&nbsp;</a></span>WHITE</h2>
    262
    263<div class="memitem">
    264<div class="memproto">
    265      <table class="memname">
    266        <tr>
    267          <td class="memname">#define WHITE&#160;&#160;&#160;0</td>
    268        </tr>
    269      </table>
    270</div><div class="memdoc">
    271<p>Possible drawing colours </p>
    272
    273</div>
    274</div>
    275<a id="a0ffe2221c8690dc80b5f9553474dd096"></a>
    276<h2 class="memtitle"><span class="permalink"><a href="#a0ffe2221c8690dc80b5f9553474dd096">&#9670;&nbsp;</a></span>LTGREY</h2>
    277
    278<div class="memitem">
    279<div class="memproto">
    280      <table class="memname">
    281        <tr>
    282          <td class="memname">#define LTGREY&#160;&#160;&#160;1</td>
    283        </tr>
    284      </table>
    285</div><div class="memdoc">
    286
    287</div>
    288</div>
    289<a id="a4dad87d91b9201be3b4ede372f31ae8a"></a>
    290<h2 class="memtitle"><span class="permalink"><a href="#a4dad87d91b9201be3b4ede372f31ae8a">&#9670;&nbsp;</a></span>DKGREY</h2>
    291
    292<div class="memitem">
    293<div class="memproto">
    294      <table class="memname">
    295        <tr>
    296          <td class="memname">#define DKGREY&#160;&#160;&#160;2</td>
    297        </tr>
    298      </table>
    299</div><div class="memdoc">
    300
    301</div>
    302</div>
    303<a id="a7b3b25cba33b07c303f3060fe41887f6"></a>
    304<h2 class="memtitle"><span class="permalink"><a href="#a7b3b25cba33b07c303f3060fe41887f6">&#9670;&nbsp;</a></span>BLACK</h2>
    305
    306<div class="memitem">
    307<div class="memproto">
    308      <table class="memname">
    309        <tr>
    310          <td class="memname">#define BLACK&#160;&#160;&#160;3</td>
    311        </tr>
    312      </table>
    313</div><div class="memdoc">
    314
    315</div>
    316</div>
    317<a id="a91d52443c77ee105bd68cb0b47a8ee49"></a>
    318<h2 class="memtitle"><span class="permalink"><a href="#a91d52443c77ee105bd68cb0b47a8ee49">&#9670;&nbsp;</a></span>M_NOFILL</h2>
    319
    320<div class="memitem">
    321<div class="memproto">
    322      <table class="memname">
    323        <tr>
    324          <td class="memname">#define M_NOFILL&#160;&#160;&#160;0</td>
    325        </tr>
    326      </table>
    327</div><div class="memdoc">
    328<p>Possible fill styles for <a class="el" href="drawing_8h.html#ae1170230e5c9e61cc4321632e949e7ce">box()</a> and <a class="el" href="drawing_8h.html#ad46c3bdc38dfc9b70214693390d404cb">circle()</a> </p>
    329
    330</div>
    331</div>
    332<a id="aad3d180e0f12d6a6e5278fe0163f4c3e"></a>
    333<h2 class="memtitle"><span class="permalink"><a href="#aad3d180e0f12d6a6e5278fe0163f4c3e">&#9670;&nbsp;</a></span>M_FILL</h2>
    334
    335<div class="memitem">
    336<div class="memproto">
    337      <table class="memname">
    338        <tr>
    339          <td class="memname">#define M_FILL&#160;&#160;&#160;1</td>
    340        </tr>
    341      </table>
    342</div><div class="memdoc">
    343
    344</div>
    345</div>
    346<a id="a4dec4d9b2bace4f5bc6e6337f4086837"></a>
    347<h2 class="memtitle"><span class="permalink"><a href="#a4dec4d9b2bace4f5bc6e6337f4086837">&#9670;&nbsp;</a></span>SIGNED</h2>
    348
    349<div class="memitem">
    350<div class="memproto">
    351      <table class="memname">
    352        <tr>
    353          <td class="memname">#define SIGNED&#160;&#160;&#160;1</td>
    354        </tr>
    355      </table>
    356</div><div class="memdoc">
    357<p>Possible values for signed_value in <a class="el" href="drawing_8h.html#afeb7c0a887fe3d18659175de77a787a5">gprintln()</a> and <a class="el" href="drawing_8h.html#a9d70278d1d09fdc24ea6bd9788dbd96a">gprintn()</a> </p>
    358
    359</div>
    360</div>
    361<a id="a08cbc66092284f7da94279f986a0aae9"></a>
    362<h2 class="memtitle"><span class="permalink"><a href="#a08cbc66092284f7da94279f986a0aae9">&#9670;&nbsp;</a></span>UNSIGNED</h2>
    363
    364<div class="memitem">
    365<div class="memproto">
    366      <table class="memname">
    367        <tr>
    368          <td class="memname">#define UNSIGNED&#160;&#160;&#160;0</td>
    369        </tr>
    370      </table>
    371</div><div class="memdoc">
    372
    373</div>
    374</div>
    375<h2 class="groupheader">Function Documentation</h2>
    376<a id="aef65e5faa0adb82768fca06aafbe50e8"></a>
    377<h2 class="memtitle"><span class="permalink"><a href="#aef65e5faa0adb82768fca06aafbe50e8">&#9670;&nbsp;</a></span>gprint()</h2>
    378
    379<div class="memitem">
    380<div class="memproto">
    381      <table class="memname">
    382        <tr>
    383          <td class="memname">void gprint </td>
    384          <td>(</td>
    385          <td class="paramtype">char *&#160;</td>
    386          <td class="paramname"><em>str</em></td><td>)</td>
    387          <td></td>
    388        </tr>
    389      </table>
    390</div><div class="memdoc">
    391<p>Print the string 'str' with no interpretation </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="drawing_8h.html#a2d6cbdc9528ec11ac54bd3dbe754ab74">gotogxy()</a> </dd></dl>
    392
    393</div>
    394</div>
    395<a id="afeb7c0a887fe3d18659175de77a787a5"></a>
    396<h2 class="memtitle"><span class="permalink"><a href="#afeb7c0a887fe3d18659175de77a787a5">&#9670;&nbsp;</a></span>gprintln()</h2>
    397
    398<div class="memitem">
    399<div class="memproto">
    400      <table class="memname">
    401        <tr>
    402          <td class="memname">void gprintln </td>
    403          <td>(</td>
    404          <td class="paramtype"><a class="el" href="stdint_8h.html#a66634143db08bebe9b46ab4cb1fc6fd3">int16_t</a>&#160;</td>
    405          <td class="paramname"><em>number</em>, </td>
    406        </tr>
    407        <tr>
    408          <td class="paramkey"></td>
    409          <td></td>
    410          <td class="paramtype"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td>
    411          <td class="paramname"><em>radix</em>, </td>
    412        </tr>
    413        <tr>
    414          <td class="paramkey"></td>
    415          <td></td>
    416          <td class="paramtype"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td>
    417          <td class="paramname"><em>signed_value</em>&#160;</td>
    418        </tr>
    419        <tr>
    420          <td></td>
    421          <td>)</td>
    422          <td></td><td></td>
    423        </tr>
    424      </table>
    425</div><div class="memdoc">
    426<p>Print 16 bit <b>number</b> in <b>radix</b> (base) in the default font at the current text position.</p>
    427<dl class="params"><dt>Parameters</dt><dd>
    428  <table class="params">
    429    <tr><td class="paramname">number</td><td>number to print </td></tr>
    430    <tr><td class="paramname">radix</td><td>radix (base) to print with </td></tr>
    431    <tr><td class="paramname">signed_value</td><td>should be set to SIGNED or UNSIGNED depending on whether the number is signed or not</td></tr>
    432  </table>
    433  </dd>
    434</dl>
    435<p>The current position is advanced by the numer of characters printed. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="drawing_8h.html#a2d6cbdc9528ec11ac54bd3dbe754ab74">gotogxy()</a> </dd></dl>
    436
    437</div>
    438</div>
    439<a id="a9d70278d1d09fdc24ea6bd9788dbd96a"></a>
    440<h2 class="memtitle"><span class="permalink"><a href="#a9d70278d1d09fdc24ea6bd9788dbd96a">&#9670;&nbsp;</a></span>gprintn()</h2>
    441
    442<div class="memitem">
    443<div class="memproto">
    444      <table class="memname">
    445        <tr>
    446          <td class="memname">void gprintn </td>
    447          <td>(</td>
    448          <td class="paramtype"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td>
    449          <td class="paramname"><em>number</em>, </td>
    450        </tr>
    451        <tr>
    452          <td class="paramkey"></td>
    453          <td></td>
    454          <td class="paramtype"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td>
    455          <td class="paramname"><em>radix</em>, </td>
    456        </tr>
    457        <tr>
    458          <td class="paramkey"></td>
    459          <td></td>
    460          <td class="paramtype"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td>
    461          <td class="paramname"><em>signed_value</em>&#160;</td>
    462        </tr>
    463        <tr>
    464          <td></td>
    465          <td>)</td>
    466          <td></td><td></td>
    467        </tr>
    468      </table>
    469</div><div class="memdoc">
    470<p>Print 8 bit <b>number</b> in <b>radix</b> (base) in the default font at the current text position.</p>
    471<dl class="section see"><dt>See also</dt><dd><a class="el" href="drawing_8h.html#afeb7c0a887fe3d18659175de77a787a5">gprintln()</a>, <a class="el" href="drawing_8h.html#a2d6cbdc9528ec11ac54bd3dbe754ab74">gotogxy()</a> </dd></dl>
    472
    473</div>
    474</div>
    475<a id="a5f7a0ed309f9526e9be285146559848c"></a>
    476<h2 class="memtitle"><span class="permalink"><a href="#a5f7a0ed309f9526e9be285146559848c">&#9670;&nbsp;</a></span>gprintf()</h2>
    477
    478<div class="memitem">
    479<div class="memproto">
    480      <table class="memname">
    481        <tr>
    482          <td class="memname"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> gprintf </td>
    483          <td>(</td>
    484          <td class="paramtype">char *&#160;</td>
    485          <td class="paramname"><em>fmt</em>, </td>
    486        </tr>
    487        <tr>
    488          <td class="paramkey"></td>
    489          <td></td>
    490          <td class="paramtype">&#160;</td>
    491          <td class="paramname"><em>...</em>&#160;</td>
    492        </tr>
    493        <tr>
    494          <td></td>
    495          <td>)</td>
    496          <td></td><td></td>
    497        </tr>
    498      </table>
    499</div><div class="memdoc">
    500<p>Print the string and arguments given by <b>fmt</b> with arguments __...__</p>
    501<dl class="params"><dt>Parameters</dt><dd>
    502  <table class="params">
    503    <tr><td class="paramname">fmt</td><td>The format string as per printf </td></tr>
    504    <tr><td class="paramname">...</td><td>params</td></tr>
    505  </table>
    506  </dd>
    507</dl>
    508<p>Currently supported: </p><ul>
    509<li>%c (character) </li>
    510<li>%u (int) </li>
    511<li>%d (int8_t) </li>
    512<li>%o (int8_t as octal) </li>
    513<li>%x (int8_t as hex) </li>
    514<li>%s (string)</li>
    515</ul>
    516<dl class="section return"><dt>Returns</dt><dd>Returns the number of items printed, or -1 if there was an error. </dd></dl>
    517<dl class="section see"><dt>See also</dt><dd><a class="el" href="drawing_8h.html#a2d6cbdc9528ec11ac54bd3dbe754ab74">gotogxy()</a> </dd></dl>
    518
    519</div>
    520</div>
    521<a id="ac888c327137d7f00cb3af57af236602a"></a>
    522<h2 class="memtitle"><span class="permalink"><a href="#ac888c327137d7f00cb3af57af236602a">&#9670;&nbsp;</a></span>plot()</h2>
    523
    524<div class="memitem">
    525<div class="memproto">
    526      <table class="memname">
    527        <tr>
    528          <td class="memname">void plot </td>
    529          <td>(</td>
    530          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    531          <td class="paramname"><em>x</em>, </td>
    532        </tr>
    533        <tr>
    534          <td class="paramkey"></td>
    535          <td></td>
    536          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    537          <td class="paramname"><em>y</em>, </td>
    538        </tr>
    539        <tr>
    540          <td class="paramkey"></td>
    541          <td></td>
    542          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    543          <td class="paramname"><em>colour</em>, </td>
    544        </tr>
    545        <tr>
    546          <td class="paramkey"></td>
    547          <td></td>
    548          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    549          <td class="paramname"><em>mode</em>&#160;</td>
    550        </tr>
    551        <tr>
    552          <td></td>
    553          <td>)</td>
    554          <td></td><td></td>
    555        </tr>
    556      </table>
    557</div><div class="memdoc">
    558<p>Old style plot - try <a class="el" href="drawing_8h.html#a595c77bca15884c75fd85af84f373814">plot_point()</a> </p>
    559
    560</div>
    561</div>
    562<a id="a595c77bca15884c75fd85af84f373814"></a>
    563<h2 class="memtitle"><span class="permalink"><a href="#a595c77bca15884c75fd85af84f373814">&#9670;&nbsp;</a></span>plot_point()</h2>
    564
    565<div class="memitem">
    566<div class="memproto">
    567      <table class="memname">
    568        <tr>
    569          <td class="memname">void plot_point </td>
    570          <td>(</td>
    571          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    572          <td class="paramname"><em>x</em>, </td>
    573        </tr>
    574        <tr>
    575          <td class="paramkey"></td>
    576          <td></td>
    577          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    578          <td class="paramname"><em>y</em>&#160;</td>
    579        </tr>
    580        <tr>
    581          <td></td>
    582          <td>)</td>
    583          <td></td><td></td>
    584        </tr>
    585      </table>
    586</div><div class="memdoc">
    587<p>Plot a point in the current drawing mode and colour at <b>x,y</b> </p>
    588
    589</div>
    590</div>
    591<a id="a7b8f466ecc6be62f6c034e52f05e957a"></a>
    592<h2 class="memtitle"><span class="permalink"><a href="#a7b8f466ecc6be62f6c034e52f05e957a">&#9670;&nbsp;</a></span>switch_data()</h2>
    593
    594<div class="memitem">
    595<div class="memproto">
    596      <table class="memname">
    597        <tr>
    598          <td class="memname">void switch_data </td>
    599          <td>(</td>
    600          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    601          <td class="paramname"><em>x</em>, </td>
    602        </tr>
    603        <tr>
    604          <td class="paramkey"></td>
    605          <td></td>
    606          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    607          <td class="paramname"><em>y</em>, </td>
    608        </tr>
    609        <tr>
    610          <td class="paramkey"></td>
    611          <td></td>
    612          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
    613          <td class="paramname"><em>src</em>, </td>
    614        </tr>
    615        <tr>
    616          <td class="paramkey"></td>
    617          <td></td>
    618          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
    619          <td class="paramname"><em>dst</em>&#160;</td>
    620        </tr>
    621        <tr>
    622          <td></td>
    623          <td>)</td>
    624          <td></td><td></td>
    625        </tr>
    626      </table>
    627</div><div class="memdoc">
    628<p>Exchanges the tile on screen at x,y with the tile pointed by src, original tile is saved in dst. Both src and dst may be NULL - saving or copying to screen is not performed in this case. </p>
    629
    630</div>
    631</div>
    632<a id="ab2c383d3e1541fae40cf5174e22166c6"></a>
    633<h2 class="memtitle"><span class="permalink"><a href="#ab2c383d3e1541fae40cf5174e22166c6">&#9670;&nbsp;</a></span>draw_image()</h2>
    634
    635<div class="memitem">
    636<div class="memproto">
    637      <table class="memname">
    638        <tr>
    639          <td class="memname">void draw_image </td>
    640          <td>(</td>
    641          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
    642          <td class="paramname"><em>data</em></td><td>)</td>
    643          <td></td>
    644        </tr>
    645      </table>
    646</div><div class="memdoc">
    647<p>Draw a full screen image at <b>data</b> </p>
    648
    649</div>
    650</div>
    651<a id="afe0ad8959a2867c4b60829d065660f1b"></a>
    652<h2 class="memtitle"><span class="permalink"><a href="#afe0ad8959a2867c4b60829d065660f1b">&#9670;&nbsp;</a></span>line()</h2>
    653
    654<div class="memitem">
    655<div class="memproto">
    656      <table class="memname">
    657        <tr>
    658          <td class="memname">void line </td>
    659          <td>(</td>
    660          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    661          <td class="paramname"><em>x1</em>, </td>
    662        </tr>
    663        <tr>
    664          <td class="paramkey"></td>
    665          <td></td>
    666          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    667          <td class="paramname"><em>y1</em>, </td>
    668        </tr>
    669        <tr>
    670          <td class="paramkey"></td>
    671          <td></td>
    672          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    673          <td class="paramname"><em>x2</em>, </td>
    674        </tr>
    675        <tr>
    676          <td class="paramkey"></td>
    677          <td></td>
    678          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    679          <td class="paramname"><em>y2</em>&#160;</td>
    680        </tr>
    681        <tr>
    682          <td></td>
    683          <td>)</td>
    684          <td></td><td></td>
    685        </tr>
    686      </table>
    687</div><div class="memdoc">
    688<p>Draw a line in the current drawing mode and colour from <b>x1,y1</b> to <b>x2,y2</b> </p>
    689
    690</div>
    691</div>
    692<a id="ae1170230e5c9e61cc4321632e949e7ce"></a>
    693<h2 class="memtitle"><span class="permalink"><a href="#ae1170230e5c9e61cc4321632e949e7ce">&#9670;&nbsp;</a></span>box()</h2>
    694
    695<div class="memitem">
    696<div class="memproto">
    697      <table class="memname">
    698        <tr>
    699          <td class="memname">void box </td>
    700          <td>(</td>
    701          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    702          <td class="paramname"><em>x1</em>, </td>
    703        </tr>
    704        <tr>
    705          <td class="paramkey"></td>
    706          <td></td>
    707          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    708          <td class="paramname"><em>y1</em>, </td>
    709        </tr>
    710        <tr>
    711          <td class="paramkey"></td>
    712          <td></td>
    713          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    714          <td class="paramname"><em>x2</em>, </td>
    715        </tr>
    716        <tr>
    717          <td class="paramkey"></td>
    718          <td></td>
    719          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    720          <td class="paramname"><em>y2</em>, </td>
    721        </tr>
    722        <tr>
    723          <td class="paramkey"></td>
    724          <td></td>
    725          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    726          <td class="paramname"><em>style</em>&#160;</td>
    727        </tr>
    728        <tr>
    729          <td></td>
    730          <td>)</td>
    731          <td></td><td></td>
    732        </tr>
    733      </table>
    734</div><div class="memdoc">
    735<p>Draw a box (rectangle) with corners <b>x1,y1</b> and <b>x2,y2</b> using fill mode <b>style</b> (one of NOFILL or FILL) </p>
    736
    737</div>
    738</div>
    739<a id="ad46c3bdc38dfc9b70214693390d404cb"></a>
    740<h2 class="memtitle"><span class="permalink"><a href="#ad46c3bdc38dfc9b70214693390d404cb">&#9670;&nbsp;</a></span>circle()</h2>
    741
    742<div class="memitem">
    743<div class="memproto">
    744      <table class="memname">
    745        <tr>
    746          <td class="memname">void circle </td>
    747          <td>(</td>
    748          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    749          <td class="paramname"><em>x</em>, </td>
    750        </tr>
    751        <tr>
    752          <td class="paramkey"></td>
    753          <td></td>
    754          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    755          <td class="paramname"><em>y</em>, </td>
    756        </tr>
    757        <tr>
    758          <td class="paramkey"></td>
    759          <td></td>
    760          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    761          <td class="paramname"><em>radius</em>, </td>
    762        </tr>
    763        <tr>
    764          <td class="paramkey"></td>
    765          <td></td>
    766          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    767          <td class="paramname"><em>style</em>&#160;</td>
    768        </tr>
    769        <tr>
    770          <td></td>
    771          <td>)</td>
    772          <td></td><td></td>
    773        </tr>
    774      </table>
    775</div><div class="memdoc">
    776<p>Draw a circle with centre at <b>x,y</b> and <b>radius</b> using fill mode <b>style</b> (one of NOFILL or FILL) </p>
    777
    778</div>
    779</div>
    780<a id="a1e268a46a8151f9cc3b7b40100123d09"></a>
    781<h2 class="memtitle"><span class="permalink"><a href="#a1e268a46a8151f9cc3b7b40100123d09">&#9670;&nbsp;</a></span>getpix()</h2>
    782
    783<div class="memitem">
    784<div class="memproto">
    785      <table class="memname">
    786        <tr>
    787          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> getpix </td>
    788          <td>(</td>
    789          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    790          <td class="paramname"><em>x</em>, </td>
    791        </tr>
    792        <tr>
    793          <td class="paramkey"></td>
    794          <td></td>
    795          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    796          <td class="paramname"><em>y</em>&#160;</td>
    797        </tr>
    798        <tr>
    799          <td></td>
    800          <td>)</td>
    801          <td></td><td></td>
    802        </tr>
    803      </table>
    804</div><div class="memdoc">
    805<p>Returns the current colour of the pixel at <b>x,y</b> </p>
    806
    807</div>
    808</div>
    809<a id="a9178e678a17cb08653600f435093ae2a"></a>
    810<h2 class="memtitle"><span class="permalink"><a href="#a9178e678a17cb08653600f435093ae2a">&#9670;&nbsp;</a></span>wrtchr()</h2>
    811
    812<div class="memitem">
    813<div class="memproto">
    814      <table class="memname">
    815        <tr>
    816          <td class="memname">void wrtchr </td>
    817          <td>(</td>
    818          <td class="paramtype">char&#160;</td>
    819          <td class="paramname"><em>chr</em></td><td>)</td>
    820          <td></td>
    821        </tr>
    822      </table>
    823</div><div class="memdoc">
    824<p>Prints the character <b>chr</b> in the default font at the current text position.</p>
    825<p>The current position is advanced by 1 after the character is printed. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="drawing_8h.html#a2d6cbdc9528ec11ac54bd3dbe754ab74">gotogxy()</a> </dd></dl>
    826
    827</div>
    828</div>
    829<a id="a2d6cbdc9528ec11ac54bd3dbe754ab74"></a>
    830<h2 class="memtitle"><span class="permalink"><a href="#a2d6cbdc9528ec11ac54bd3dbe754ab74">&#9670;&nbsp;</a></span>gotogxy()</h2>
    831
    832<div class="memitem">
    833<div class="memproto">
    834      <table class="memname">
    835        <tr>
    836          <td class="memname">void gotogxy </td>
    837          <td>(</td>
    838          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    839          <td class="paramname"><em>x</em>, </td>
    840        </tr>
    841        <tr>
    842          <td class="paramkey"></td>
    843          <td></td>
    844          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    845          <td class="paramname"><em>y</em>&#160;</td>
    846        </tr>
    847        <tr>
    848          <td></td>
    849          <td>)</td>
    850          <td></td><td></td>
    851        </tr>
    852      </table>
    853</div><div class="memdoc">
    854<p>Sets the current text position to <b>x,y</b>.</p>
    855<p>Note: <b>x</b> and <b>y</b> have units of tiles (8 pixels per unit) </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="drawing_8h.html#a9178e678a17cb08653600f435093ae2a">wrtchr()</a> </dd></dl>
    856
    857</div>
    858</div>
    859<a id="a9fa68d25be92836a1b08a5e610b4f32f"></a>
    860<h2 class="memtitle"><span class="permalink"><a href="#a9fa68d25be92836a1b08a5e610b4f32f">&#9670;&nbsp;</a></span>color()</h2>
    861
    862<div class="memitem">
    863<div class="memproto">
    864      <table class="memname">
    865        <tr>
    866          <td class="memname">void color </td>
    867          <td>(</td>
    868          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    869          <td class="paramname"><em>forecolor</em>, </td>
    870        </tr>
    871        <tr>
    872          <td class="paramkey"></td>
    873          <td></td>
    874          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    875          <td class="paramname"><em>backcolor</em>, </td>
    876        </tr>
    877        <tr>
    878          <td class="paramkey"></td>
    879          <td></td>
    880          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
    881          <td class="paramname"><em>mode</em>&#160;</td>
    882        </tr>
    883        <tr>
    884          <td></td>
    885          <td>)</td>
    886          <td></td><td></td>
    887        </tr>
    888      </table>
    889</div><div class="memdoc">
    890<p>Set the current <b>foreground</b> colour (for pixels), <b>background</b> colour, and draw <b>mode</b> </p>
    891
    892</div>
    893</div>
    894</div><!-- contents -->
    895</div><!-- doc-content -->
    896<!-- HTML footer for doxygen 1.8.14-->
    897<!-- start footer part -->
    898<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    899</div>
    900</body>
    901</html>