cscg22-gearboy

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

font_8h_source.html (16921B)


      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: gbdk/font.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('font_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">font.h</div>  </div>
     91</div><!--header-->
     92<div class="contents">
     93<a href="font_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="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#ifndef __FONT_H</span></div>
     95<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#define __FONT_H</span></div>
     96<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
     97<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
     98<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span></div>
     99<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
    100<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="font_8h.html#a63b93b85724b26151ddc2f0fc8050bd8">   14</a></span>&#160;<span class="preprocessor">#define FONT_256ENCODING    0</span></div>
    101<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="font_8h.html#a305ee4387ba051bd0e372b8a6dfb6905">   15</a></span>&#160;<span class="preprocessor">#define FONT_128ENCODING    1</span></div>
    102<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="font_8h.html#a80d0f581e17313b62dd7824653462b55">   16</a></span>&#160;<span class="preprocessor">#define FONT_NOENCODING     2</span></div>
    103<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
    104<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="font_8h.html#a7c5452979723b3535d17e253beb5d604">   18</a></span>&#160;<span class="preprocessor">#define FONT_COMPRESSED     4</span></div>
    105<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
    106<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">/* See gb.h/M_NO_SCROLL and gb.h/M_NO_INTERP */</span></div>
    107<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
    108<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">   24</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a>;</div>
    109<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
    110<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
    111<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="group__gbdk__fonts.html#gad8497ecbd9d845fc24a56688f157aad8">   32</a></span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="group__gbdk__fonts.html#ga1b59bbd85c12436eeef52d4c32c7345d">font_spect</a>[], <a class="code" href="group__gbdk__fonts.html#ga17e825a65ba38f34a658fe0a2c99d8d4">font_italic</a>[], <a class="code" href="group__gbdk__fonts.html#ga6dcb04fed78fc39b95171988b776e6bb">font_ibm</a>[], <a class="code" href="group__gbdk__fonts.html#gad8497ecbd9d845fc24a56688f157aad8">font_min</a>[];</div>
    112<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
    113<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="group__gbdk__fonts.html#gab8c52bed73e745f1ee910f2da60ddb4c">font_ibm_fixed</a>[];</div>
    114<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
    115<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="font_8h.html#a6b0459241994d549ae90776cdacede2d">   43</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="font_8h.html#a6b0459241994d549ae90776cdacede2d">font_init</a>();</div>
    116<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
    117<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="font_8h.html#ad089c09492dbd0423f4dd28f1a49a995">   51</a></span>&#160;<a class="code" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a> <a class="code" href="font_8h.html#ad089c09492dbd0423f4dd28f1a49a995">font_load</a>(<span class="keywordtype">void</span> *font) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    118<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
    119<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="font_8h.html#aea1f63fe2ea8c7689b061ad93b485553">   59</a></span>&#160;<a class="code" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a> <a class="code" href="font_8h.html#a7dee0ba7beb261727340b8cce7c5afcd">font_set</a>(<a class="code" href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a> font_handle) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    120<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
    121<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">/* Use mode() and color() to set the font modes and colours */</span></div>
    122<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
    123<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structsfont__handle.html">sfont_handle</a> <a class="code" href="structsfont__handle.html">mfont_handle</a>;</div>
    124<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="font_8h.html#a82e0e078fc8a8b6a18538131625dba3a">   66</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structsfont__handle.html">sfont_handle</a> *<a class="code" href="font_8h.html#a82e0e078fc8a8b6a18538131625dba3a">pmfont_handle</a>;</div>
    125<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
    126<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structsfont__handle.html">   70</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsfont__handle.html">sfont_handle</a> {</div>
    127<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structsfont__handle.html#aa5a35bc92adbcfff5a531bf65da65630">   71</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structsfont__handle.html#aa5a35bc92adbcfff5a531bf65da65630">first_tile</a>;     </div>
    128<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structsfont__handle.html#afa826a9e7aa0dc456bd342717eea1f89">   72</a></span>&#160;    <span class="keywordtype">void</span> *<a class="code" href="structsfont__handle.html#afa826a9e7aa0dc456bd342717eea1f89">font</a>;         </div>
    129<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;};</div>
    130<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
    131<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="font_8h.html#a47b4964ef677dce9fdf1e9df29804721">   76</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="font_8h.html#a47b4964ef677dce9fdf1e9df29804721">font_color</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> forecolor, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> backcolor) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    132<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
    133<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __FONT_H */</span><span class="preprocessor"></span></div>
    134</div><!-- fragment --></div><!-- contents -->
    135</div><!-- doc-content -->
    136<div class="ttc" id="astructsfont__handle_html"><div class="ttname"><a href="structsfont__handle.html">sfont_handle</a></div><div class="ttdef"><b>Definition:</b> font.h:70</div></div>
    137<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>
    138<div class="ttc" id="afont_8h_html_a6b0459241994d549ae90776cdacede2d"><div class="ttname"><a href="font_8h.html#a6b0459241994d549ae90776cdacede2d">font_init</a></div><div class="ttdeci">void font_init()</div></div>
    139<div class="ttc" id="afont_8h_html_a47b4964ef677dce9fdf1e9df29804721"><div class="ttname"><a href="font_8h.html#a47b4964ef677dce9fdf1e9df29804721">font_color</a></div><div class="ttdeci">void font_color(uint8_t forecolor, uint8_t backcolor) OLDCALL</div></div>
    140<div class="ttc" id="astructsfont__handle_html_afa826a9e7aa0dc456bd342717eea1f89"><div class="ttname"><a href="structsfont__handle.html#afa826a9e7aa0dc456bd342717eea1f89">sfont_handle::font</a></div><div class="ttdeci">void * font</div><div class="ttdef"><b>Definition:</b> font.h:72</div></div>
    141<div class="ttc" id="astdint_8h_html_adf4d876453337156dde61095e1f20223"><div class="ttname"><a href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a></div><div class="ttdeci">unsigned short int uint16_t</div><div class="ttdef"><b>Definition:</b> stdint.h:52</div></div>
    142<div class="ttc" id="agroup__gbdk__fonts_html_gab8c52bed73e745f1ee910f2da60ddb4c"><div class="ttname"><a href="group__gbdk__fonts.html#gab8c52bed73e745f1ee910f2da60ddb4c">font_ibm_fixed</a></div><div class="ttdeci">uint8_t font_ibm_fixed[]</div></div>
    143<div class="ttc" id="agroup__gbdk__fonts_html_ga1b59bbd85c12436eeef52d4c32c7345d"><div class="ttname"><a href="group__gbdk__fonts.html#ga1b59bbd85c12436eeef52d4c32c7345d">font_spect</a></div><div class="ttdeci">uint8_t font_spect[]</div></div>
    144<div class="ttc" id="afont_8h_html_a7dee0ba7beb261727340b8cce7c5afcd"><div class="ttname"><a href="font_8h.html#a7dee0ba7beb261727340b8cce7c5afcd">font_set</a></div><div class="ttdeci">font_t font_set(font_t font_handle) OLDCALL</div></div>
    145<div class="ttc" id="afont_8h_html_a7c6b54e58c41763c66f15ec4528a1d4a"><div class="ttname"><a href="font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a">font_t</a></div><div class="ttdeci">uint16_t font_t</div><div class="ttdef"><b>Definition:</b> font.h:24</div></div>
    146<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
    147<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>
    148<div class="ttc" id="astructsfont__handle_html_aa5a35bc92adbcfff5a531bf65da65630"><div class="ttname"><a href="structsfont__handle.html#aa5a35bc92adbcfff5a531bf65da65630">sfont_handle::first_tile</a></div><div class="ttdeci">uint8_t first_tile</div><div class="ttdef"><b>Definition:</b> font.h:71</div></div>
    149<div class="ttc" id="agroup__gbdk__fonts_html_ga6dcb04fed78fc39b95171988b776e6bb"><div class="ttname"><a href="group__gbdk__fonts.html#ga6dcb04fed78fc39b95171988b776e6bb">font_ibm</a></div><div class="ttdeci">uint8_t font_ibm[]</div><div class="ttdef"><b>Definition:</b> font.h:32</div></div>
    150<div class="ttc" id="afont_8h_html_a82e0e078fc8a8b6a18538131625dba3a"><div class="ttname"><a href="font_8h.html#a82e0e078fc8a8b6a18538131625dba3a">pmfont_handle</a></div><div class="ttdeci">struct sfont_handle * pmfont_handle</div><div class="ttdef"><b>Definition:</b> font.h:66</div></div>
    151<div class="ttc" id="afont_8h_html_ad089c09492dbd0423f4dd28f1a49a995"><div class="ttname"><a href="font_8h.html#ad089c09492dbd0423f4dd28f1a49a995">font_load</a></div><div class="ttdeci">font_t font_load(void *font) OLDCALL</div></div>
    152<div class="ttc" id="agroup__gbdk__fonts_html_gad8497ecbd9d845fc24a56688f157aad8"><div class="ttname"><a href="group__gbdk__fonts.html#gad8497ecbd9d845fc24a56688f157aad8">font_min</a></div><div class="ttdeci">uint8_t font_min[]</div><div class="ttdef"><b>Definition:</b> font.h:32</div></div>
    153<div class="ttc" id="agroup__gbdk__fonts_html_ga17e825a65ba38f34a658fe0a2c99d8d4"><div class="ttname"><a href="group__gbdk__fonts.html#ga17e825a65ba38f34a658fe0a2c99d8d4">font_italic</a></div><div class="ttdeci">uint8_t font_italic[]</div><div class="ttdef"><b>Definition:</b> font.h:32</div></div>
    154<!-- HTML footer for doxygen 1.8.14-->
    155<!-- start footer part -->
    156<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    157</div>
    158</body>
    159</html>