mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-10 10:22:20 +00:00
4061 lines
236 KiB
HTML
4061 lines
236 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.10.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>GRRLIB: Everything in GRRLIB</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">GRRLIB<span id="projectnumber"> 4.5.1</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.10.0 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Data Structures</a> |
|
|
<a href="#define-members">Macros</a> |
|
|
<a href="#typedef-members">Typedefs</a> |
|
|
<a href="#enum-members">Enumerations</a> |
|
|
<a href="#func-members">Functions</a> |
|
|
<a href="#var-members">Variables</a> </div>
|
|
<div class="headertitle"><div class="title">Everything in GRRLIB</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>This is the complete list of functions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB.
|
|
<a href="#details">More...</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
|
Data Structures</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_g_r_r_l_i_b__draw_settings.html">GRRLIB_drawSettings</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the current drawing settings. <a href="struct_g_r_r_l_i_b__draw_settings.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the texture information. <a href="struct_g_r_r_l_i_b__tex_img.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_g_r_r_l_i_b__bytemap_char.html">GRRLIB_bytemapChar</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the bytemap character information. <a href="struct_g_r_r_l_i_b__bytemap_char.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_g_r_r_l_i_b__bytemap_font.html">GRRLIB_bytemapFont</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the bytemap font information. <a href="struct_g_r_r_l_i_b__bytemap_font.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_g_r_r_l_i_b___font.html">GRRLIB_Font</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the TTF information. <a href="struct_g_r_r_l_i_b___font.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:gad36e97f844e145cd811f40ee306eb11f" id="r_gad36e97f844e145cd811f40ee306eb11f"><td class="memItemLeft" align="right" valign="top"><a id="gad36e97f844e145cd811f40ee306eb11f" name="gad36e97f844e145cd811f40ee306eb11f"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>GRRLIB_VER_STRING</b>   "4.5.1"</td></tr>
|
|
<tr class="memdesc:gad36e97f844e145cd811f40ee306eb11f"><td class="mdescLeft"> </td><td class="mdescRight">Version information for GRRLIB. <br /></td></tr>
|
|
<tr class="separator:gad36e97f844e145cd811f40ee306eb11f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2cde25567f177a6cd9191d536764235e" id="r_ga2cde25567f177a6cd9191d536764235e"><td class="memItemLeft" align="right" valign="top"><a id="ga2cde25567f177a6cd9191d536764235e" name="ga2cde25567f177a6cd9191d536764235e"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>R</b>(c)   (((c) >>24) &0xFF)</td></tr>
|
|
<tr class="memdesc:ga2cde25567f177a6cd9191d536764235e"><td class="mdescLeft"> </td><td class="mdescRight">Extract red component of colour. <br /></td></tr>
|
|
<tr class="separator:ga2cde25567f177a6cd9191d536764235e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7cc73638f4849985153257c89a69ee94" id="r_ga7cc73638f4849985153257c89a69ee94"><td class="memItemLeft" align="right" valign="top"><a id="ga7cc73638f4849985153257c89a69ee94" name="ga7cc73638f4849985153257c89a69ee94"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>G</b>(c)   (((c) >>16) &0xFF)</td></tr>
|
|
<tr class="memdesc:ga7cc73638f4849985153257c89a69ee94"><td class="mdescLeft"> </td><td class="mdescRight">Extract green component of colour. <br /></td></tr>
|
|
<tr class="separator:ga7cc73638f4849985153257c89a69ee94"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gadddcd4b5f23e5e290c31b64cd8c8efaa" id="r_gadddcd4b5f23e5e290c31b64cd8c8efaa"><td class="memItemLeft" align="right" valign="top"><a id="gadddcd4b5f23e5e290c31b64cd8c8efaa" name="gadddcd4b5f23e5e290c31b64cd8c8efaa"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>B</b>(c)   (((c) >> 8) &0xFF)</td></tr>
|
|
<tr class="memdesc:gadddcd4b5f23e5e290c31b64cd8c8efaa"><td class="mdescLeft"> </td><td class="mdescRight">Extract blue component of colour. <br /></td></tr>
|
|
<tr class="separator:gadddcd4b5f23e5e290c31b64cd8c8efaa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga96aca57a76bd8537a24bb11ab44ef8d9" id="r_ga96aca57a76bd8537a24bb11ab44ef8d9"><td class="memItemLeft" align="right" valign="top"><a id="ga96aca57a76bd8537a24bb11ab44ef8d9" name="ga96aca57a76bd8537a24bb11ab44ef8d9"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>A</b>(c)   ( (c) &0xFF)</td></tr>
|
|
<tr class="memdesc:ga96aca57a76bd8537a24bb11ab44ef8d9"><td class="mdescLeft"> </td><td class="mdescRight">Extract alpha component of colour. <br /></td></tr>
|
|
<tr class="separator:ga96aca57a76bd8537a24bb11ab44ef8d9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaba32782053c6a2b01e3706d632d77895" id="r_gaba32782053c6a2b01e3706d632d77895"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaba32782053c6a2b01e3706d632d77895">RGBA</a>(r, g, b, a)</td></tr>
|
|
<tr class="memdesc:gaba32782053c6a2b01e3706d632d77895"><td class="mdescLeft"> </td><td class="mdescRight">Build an RGB pixel from components. <br /></td></tr>
|
|
<tr class="separator:gaba32782053c6a2b01e3706d632d77895"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa1595302fa27df7d3e5913865659ca71" id="r_gaa1595302fa27df7d3e5913865659ca71"><td class="memItemLeft" align="right" valign="top"><a id="gaa1595302fa27df7d3e5913865659ca71" name="gaa1595302fa27df7d3e5913865659ca71"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>GRRLIB_BLEND_NONE</b>   (<a class="el" href="#gga84c65877bb197763cda6669c473be692aeded8fce060bcb04b096c17cea237c23">GRRLIB_BLEND_ALPHA</a>)</td></tr>
|
|
<tr class="memdesc:gaa1595302fa27df7d3e5913865659ca71"><td class="mdescLeft"> </td><td class="mdescRight">Alias for GRRLIB_BLEND_ALPHA. <br /></td></tr>
|
|
<tr class="separator:gaa1595302fa27df7d3e5913865659ca71"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga4da19aad1f8a920283a84a3af7d7e34a" id="r_ga4da19aad1f8a920283a84a3af7d7e34a"><td class="memItemLeft" align="right" valign="top"><a id="ga4da19aad1f8a920283a84a3af7d7e34a" name="ga4da19aad1f8a920283a84a3af7d7e34a"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>GRRLIB_BLEND_LIGHT</b>   (<a class="el" href="#gga84c65877bb197763cda6669c473be692ad4f0554f7bfc19410c4fedaeab1a10fd">GRRLIB_BLEND_ADD</a>)</td></tr>
|
|
<tr class="memdesc:ga4da19aad1f8a920283a84a3af7d7e34a"><td class="mdescLeft"> </td><td class="mdescRight">Alias for GRRLIB_BLEND_ADD. <br /></td></tr>
|
|
<tr class="separator:ga4da19aad1f8a920283a84a3af7d7e34a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2308b6e9df5946957149bfa693c6a93e" id="r_ga2308b6e9df5946957149bfa693c6a93e"><td class="memItemLeft" align="right" valign="top"><a id="ga2308b6e9df5946957149bfa693c6a93e" name="ga2308b6e9df5946957149bfa693c6a93e"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>GRRLIB_BLEND_SHADE</b>   (<a class="el" href="#gga84c65877bb197763cda6669c473be692a4a7b1a0e143ad522128a7c8f5f7dc7fb">GRRLIB_BLEND_MULTI</a>)</td></tr>
|
|
<tr class="memdesc:ga2308b6e9df5946957149bfa693c6a93e"><td class="mdescLeft"> </td><td class="mdescRight">Alias for GRRLIB_BLEND_MULTI. <br /></td></tr>
|
|
<tr class="separator:ga2308b6e9df5946957149bfa693c6a93e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga065dde42220d3d8e638f5f9e1993e44f" id="r_ga065dde42220d3d8e638f5f9e1993e44f"><td class="memItemLeft" align="right" valign="top"><a id="ga065dde42220d3d8e638f5f9e1993e44f" name="ga065dde42220d3d8e638f5f9e1993e44f"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>GRR_EXTERN</b>   extern</td></tr>
|
|
<tr class="separator:ga065dde42220d3d8e638f5f9e1993e44f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga11bc269e562078ae863744e6f121d246" id="r_ga11bc269e562078ae863744e6f121d246"><td class="memItemLeft" align="right" valign="top"><a id="ga11bc269e562078ae863744e6f121d246" name="ga11bc269e562078ae863744e6f121d246"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>GRR_INIT</b>(v)</td></tr>
|
|
<tr class="separator:ga11bc269e562078ae863744e6f121d246"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga96c64b43f483cefce8f2b58d282538d4" id="r_ga96c64b43f483cefce8f2b58d282538d4"><td class="memItemLeft" align="right" valign="top"><a id="ga96c64b43f483cefce8f2b58d282538d4" name="ga96c64b43f483cefce8f2b58d282538d4"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>GRR_INITS</b>(...)</td></tr>
|
|
<tr class="separator:ga96c64b43f483cefce8f2b58d282538d4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2eb6f9e0395b47b8d5e3eeae4fe0c116" id="r_ga2eb6f9e0395b47b8d5e3eeae4fe0c116"><td class="memItemLeft" align="right" valign="top"><a id="ga2eb6f9e0395b47b8d5e3eeae4fe0c116" name="ga2eb6f9e0395b47b8d5e3eeae4fe0c116"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>INLINE</b>   static inline</td></tr>
|
|
<tr class="separator:ga2eb6f9e0395b47b8d5e3eeae4fe0c116"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
|
Typedefs</h2></td></tr>
|
|
<tr class="memitem:gaadb8b5eb7000391e477ed8221fa3f2c9" id="r_gaadb8b5eb7000391e477ed8221fa3f2c9"><td class="memItemLeft" align="right" valign="top"><a id="gaadb8b5eb7000391e477ed8221fa3f2c9" name="gaadb8b5eb7000391e477ed8221fa3f2c9"></a>
|
|
typedef enum <a class="el" href="#ga84c65877bb197763cda6669c473be692">GRRLIB_blendMode</a> </td><td class="memItemRight" valign="bottom"><b>GRRLIB_blendMode</b></td></tr>
|
|
<tr class="memdesc:gaadb8b5eb7000391e477ed8221fa3f2c9"><td class="mdescLeft"> </td><td class="mdescRight">GRRLIB Blending Modes. <br /></td></tr>
|
|
<tr class="separator:gaadb8b5eb7000391e477ed8221fa3f2c9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5832d092436ee56d5f83b6792d309290" id="r_ga5832d092436ee56d5f83b6792d309290"><td class="memItemLeft" align="right" valign="top"><a id="ga5832d092436ee56d5f83b6792d309290" name="ga5832d092436ee56d5f83b6792d309290"></a>
|
|
typedef struct GRRLIB_drawSettings </td><td class="memItemRight" valign="bottom"><b>GRRLIB_drawSettings</b></td></tr>
|
|
<tr class="memdesc:ga5832d092436ee56d5f83b6792d309290"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the current drawing settings. <br /></td></tr>
|
|
<tr class="separator:ga5832d092436ee56d5f83b6792d309290"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7f5b59ff4d8d339dcb303b660339d9bb" id="r_ga7f5b59ff4d8d339dcb303b660339d9bb"><td class="memItemLeft" align="right" valign="top"><a id="ga7f5b59ff4d8d339dcb303b660339d9bb" name="ga7f5b59ff4d8d339dcb303b660339d9bb"></a>
|
|
typedef struct GRRLIB_texImg </td><td class="memItemRight" valign="bottom"><b>GRRLIB_texImg</b></td></tr>
|
|
<tr class="memdesc:ga7f5b59ff4d8d339dcb303b660339d9bb"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the texture information. <br /></td></tr>
|
|
<tr class="separator:ga7f5b59ff4d8d339dcb303b660339d9bb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga3afef19dc5b9ad7c6e89fe06f9bfe1e0" id="r_ga3afef19dc5b9ad7c6e89fe06f9bfe1e0"><td class="memItemLeft" align="right" valign="top"><a id="ga3afef19dc5b9ad7c6e89fe06f9bfe1e0" name="ga3afef19dc5b9ad7c6e89fe06f9bfe1e0"></a>
|
|
typedef struct GRRLIB_bytemapChar </td><td class="memItemRight" valign="bottom"><b>GRRLIB_bytemapChar</b></td></tr>
|
|
<tr class="memdesc:ga3afef19dc5b9ad7c6e89fe06f9bfe1e0"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the bytemap character information. <br /></td></tr>
|
|
<tr class="separator:ga3afef19dc5b9ad7c6e89fe06f9bfe1e0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga08ac096c30fe4b6becaa039a97905c73" id="r_ga08ac096c30fe4b6becaa039a97905c73"><td class="memItemLeft" align="right" valign="top"><a id="ga08ac096c30fe4b6becaa039a97905c73" name="ga08ac096c30fe4b6becaa039a97905c73"></a>
|
|
typedef struct GRRLIB_bytemapFont </td><td class="memItemRight" valign="bottom"><b>GRRLIB_bytemapFont</b></td></tr>
|
|
<tr class="memdesc:ga08ac096c30fe4b6becaa039a97905c73"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the bytemap font information. <br /></td></tr>
|
|
<tr class="separator:ga08ac096c30fe4b6becaa039a97905c73"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac8a079ae4566c590762c46b8210bb9f4" id="r_gac8a079ae4566c590762c46b8210bb9f4"><td class="memItemLeft" align="right" valign="top"><a id="gac8a079ae4566c590762c46b8210bb9f4" name="gac8a079ae4566c590762c46b8210bb9f4"></a>
|
|
typedef struct <a class="el" href="struct_g_r_r_l_i_b___font.html">GRRLIB_Font</a> </td><td class="memItemRight" valign="bottom"><b>GRRLIB_ttfFont</b></td></tr>
|
|
<tr class="memdesc:gac8a079ae4566c590762c46b8210bb9f4"><td class="mdescLeft"> </td><td class="mdescRight">Structure to hold the TTF information. <br /></td></tr>
|
|
<tr class="separator:gac8a079ae4566c590762c46b8210bb9f4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
|
|
Enumerations</h2></td></tr>
|
|
<tr class="memitem:ga84c65877bb197763cda6669c473be692" id="r_ga84c65877bb197763cda6669c473be692"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga84c65877bb197763cda6669c473be692">GRRLIB_blendMode</a> { <br />
|
|
  <a class="el" href="#gga84c65877bb197763cda6669c473be692aeded8fce060bcb04b096c17cea237c23">GRRLIB_BLEND_ALPHA</a> = 0
|
|
, <a class="el" href="#gga84c65877bb197763cda6669c473be692ad4f0554f7bfc19410c4fedaeab1a10fd">GRRLIB_BLEND_ADD</a> = 1
|
|
, <a class="el" href="#gga84c65877bb197763cda6669c473be692ad026c10937b34f2e3e5dd462f528ef00">GRRLIB_BLEND_SCREEN</a> = 2
|
|
, <a class="el" href="#gga84c65877bb197763cda6669c473be692a4a7b1a0e143ad522128a7c8f5f7dc7fb">GRRLIB_BLEND_MULTI</a> = 3
|
|
, <br />
|
|
  <a class="el" href="#gga84c65877bb197763cda6669c473be692ab3aacba447b6cee253fc713e45ab49fd">GRRLIB_BLEND_INV</a> = 4
|
|
<br />
|
|
}</td></tr>
|
|
<tr class="memdesc:ga84c65877bb197763cda6669c473be692"><td class="mdescLeft"> </td><td class="mdescRight">GRRLIB Blending Modes. <a href="#ga84c65877bb197763cda6669c473be692">More...</a><br /></td></tr>
|
|
<tr class="separator:ga84c65877bb197763cda6669c473be692"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga00925956b44478625d7d935fa239ce6f" id="r_ga00925956b44478625d7d935fa239ce6f"><td class="memItemLeft" align="right" valign="top"><a id="ga00925956b44478625d7d935fa239ce6f" name="ga00925956b44478625d7d935fa239ce6f"></a>
|
|
GRR_EXTERN void *xfb[2] </td><td class="memItemRight" valign="bottom"><b>GRR_INITS</b> (NULL, NULL)</td></tr>
|
|
<tr class="separator:ga00925956b44478625d7d935fa239ce6f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7b2416f572740e91fa710421174d55d8" id="r_ga7b2416f572740e91fa710421174d55d8"><td class="memItemLeft" align="right" valign="top"><a id="ga7b2416f572740e91fa710421174d55d8" name="ga7b2416f572740e91fa710421174d55d8"></a>
|
|
GRR_EXTERN u32 fb </td><td class="memItemRight" valign="bottom"><b>GRR_INIT</b> (0)</td></tr>
|
|
<tr class="separator:ga7b2416f572740e91fa710421174d55d8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae4bc6ca96070c33d540ad720c5c91fc4" id="r_gae4bc6ca96070c33d540ad720c5c91fc4"><td class="memItemLeft" align="right" valign="top"><a id="gae4bc6ca96070c33d540ad720c5c91fc4" name="gae4bc6ca96070c33d540ad720c5c91fc4"></a>
|
|
INLINE void </td><td class="memItemRight" valign="bottom"><b>GRRLIB_ClipReset</b> (void)</td></tr>
|
|
<tr class="memdesc:gae4bc6ca96070c33d540ad720c5c91fc4"><td class="mdescLeft"> </td><td class="mdescRight">Reset the clipping to normal. <br /></td></tr>
|
|
<tr class="separator:gae4bc6ca96070c33d540ad720c5c91fc4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac59a40807579d718a2c139245b599472" id="r_gac59a40807579d718a2c139245b599472"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gac59a40807579d718a2c139245b599472">GRRLIB_ClipDrawing</a> (const u32 x, const u32 y, const u32 width, const u32 height)</td></tr>
|
|
<tr class="memdesc:gac59a40807579d718a2c139245b599472"><td class="mdescLeft"> </td><td class="mdescRight">Clip the drawing area to an rectangle. <br /></td></tr>
|
|
<tr class="separator:gac59a40807579d718a2c139245b599472"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa0e1bd3df799dc1ee46067f7ce3ca8c7" id="r_gaa0e1bd3df799dc1ee46067f7ce3ca8c7"><td class="memItemLeft" align="right" valign="top">INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaa0e1bd3df799dc1ee46067f7ce3ca8c7">GRRLIB_PtInRect</a> (const int hotx, const int hoty, const int hotw, const int hoth, const int wpadx, const int wpady)</td></tr>
|
|
<tr class="memdesc:gaa0e1bd3df799dc1ee46067f7ce3ca8c7"><td class="mdescLeft"> </td><td class="mdescRight">Determine whether the specified point lies within the specified rectangle. <br /></td></tr>
|
|
<tr class="separator:gaa0e1bd3df799dc1ee46067f7ce3ca8c7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaaaf388fab79085829b2cc886f18a138f" id="r_gaaaf388fab79085829b2cc886f18a138f"><td class="memItemLeft" align="right" valign="top">INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaaaf388fab79085829b2cc886f18a138f">GRRLIB_RectInRect</a> (const int rect1x, const int rect1y, const int rect1w, const int rect1h, const int rect2x, const int rect2y, const int rect2w, const int rect2h)</td></tr>
|
|
<tr class="memdesc:gaaaf388fab79085829b2cc886f18a138f"><td class="mdescLeft"> </td><td class="mdescRight">Determine whether a specified rectangle lies within another rectangle. <br /></td></tr>
|
|
<tr class="separator:gaaaf388fab79085829b2cc886f18a138f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga87b9fd5a8ec33cce9b23a243ccda824d" id="r_ga87b9fd5a8ec33cce9b23a243ccda824d"><td class="memItemLeft" align="right" valign="top">INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga87b9fd5a8ec33cce9b23a243ccda824d">GRRLIB_RectOnRect</a> (const int rect1x, const int rect1y, const int rect1w, const int rect1h, const int rect2x, const int rect2y, const int rect2w, const int rect2h)</td></tr>
|
|
<tr class="memdesc:ga87b9fd5a8ec33cce9b23a243ccda824d"><td class="mdescLeft"> </td><td class="mdescRight">Determine whether a part of a specified rectangle lies on another rectangle. <br /></td></tr>
|
|
<tr class="separator:ga87b9fd5a8ec33cce9b23a243ccda824d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaad6d71991d8257d06591bdee6fe600f5" id="r_gaad6d71991d8257d06591bdee6fe600f5"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaad6d71991d8257d06591bdee6fe600f5">GRRLIB_NPlot</a> (const guVector v[], const u32 color[], const u16 n)</td></tr>
|
|
<tr class="memdesc:gaad6d71991d8257d06591bdee6fe600f5"><td class="mdescLeft"> </td><td class="mdescRight">Draw an array of points. <br /></td></tr>
|
|
<tr class="separator:gaad6d71991d8257d06591bdee6fe600f5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaaaad869c6b2cd0ac502b8ab261fe34e9" id="r_gaaaad869c6b2cd0ac502b8ab261fe34e9"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaaaad869c6b2cd0ac502b8ab261fe34e9">GRRLIB_NGone</a> (const guVector v[], const u32 color[], const u16 n)</td></tr>
|
|
<tr class="memdesc:gaaaad869c6b2cd0ac502b8ab261fe34e9"><td class="mdescLeft"> </td><td class="mdescRight">Draw a polygon. <br /></td></tr>
|
|
<tr class="separator:gaaaad869c6b2cd0ac502b8ab261fe34e9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab848be8b56929c0706da29fe66549ff0" id="r_gab848be8b56929c0706da29fe66549ff0"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gab848be8b56929c0706da29fe66549ff0">GRRLIB_NGoneFilled</a> (const guVector v[], const u32 color[], const u16 n)</td></tr>
|
|
<tr class="memdesc:gab848be8b56929c0706da29fe66549ff0"><td class="mdescLeft"> </td><td class="mdescRight">Draw a filled polygon. <br /></td></tr>
|
|
<tr class="separator:gab848be8b56929c0706da29fe66549ff0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5aad414db04673ea5142519600856419" id="r_ga5aad414db04673ea5142519600856419"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga5aad414db04673ea5142519600856419">GRRLIB_GXEngine</a> (const guVector v[], const u32 color[], const u16 n, const u8 fmt)</td></tr>
|
|
<tr class="memdesc:ga5aad414db04673ea5142519600856419"><td class="mdescLeft"> </td><td class="mdescRight">Draws a vector. <br /></td></tr>
|
|
<tr class="separator:ga5aad414db04673ea5142519600856419"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa4334df3b160f01ae4cf49c616fe0949" id="r_gaa4334df3b160f01ae4cf49c616fe0949"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaa4334df3b160f01ae4cf49c616fe0949">GRRLIB_FillScreen</a> (const u32 color)</td></tr>
|
|
<tr class="memdesc:gaa4334df3b160f01ae4cf49c616fe0949"><td class="mdescLeft"> </td><td class="mdescRight">Clear screen with a specific color. <br /></td></tr>
|
|
<tr class="separator:gaa4334df3b160f01ae4cf49c616fe0949"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga3d9c6c2d1661d8cbe149b27ad5f6e288" id="r_ga3d9c6c2d1661d8cbe149b27ad5f6e288"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga3d9c6c2d1661d8cbe149b27ad5f6e288">GRRLIB_Plot</a> (const f32 x, const f32 y, const u32 color)</td></tr>
|
|
<tr class="memdesc:ga3d9c6c2d1661d8cbe149b27ad5f6e288"><td class="mdescLeft"> </td><td class="mdescRight">Draw a dot. <br /></td></tr>
|
|
<tr class="separator:ga3d9c6c2d1661d8cbe149b27ad5f6e288"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6b0172d719954b1d876138d3e71b188c" id="r_ga6b0172d719954b1d876138d3e71b188c"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga6b0172d719954b1d876138d3e71b188c">GRRLIB_Line</a> (const f32 x1, const f32 y1, const f32 x2, const f32 y2, const u32 color)</td></tr>
|
|
<tr class="memdesc:ga6b0172d719954b1d876138d3e71b188c"><td class="mdescLeft"> </td><td class="mdescRight">Draw a line. <br /></td></tr>
|
|
<tr class="separator:ga6b0172d719954b1d876138d3e71b188c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga4d8e2d39ff349f77b0400431f35e55c3" id="r_ga4d8e2d39ff349f77b0400431f35e55c3"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga4d8e2d39ff349f77b0400431f35e55c3">GRRLIB_Rectangle</a> (const f32 x, const f32 y, const f32 width, const f32 height, const u32 color, const bool filled)</td></tr>
|
|
<tr class="memdesc:ga4d8e2d39ff349f77b0400431f35e55c3"><td class="mdescLeft"> </td><td class="mdescRight">Draw a rectangle. <br /></td></tr>
|
|
<tr class="separator:ga4d8e2d39ff349f77b0400431f35e55c3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0c98022975900b36e91bb1bf78b64a9b" id="r_ga0c98022975900b36e91bb1bf78b64a9b"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga0c98022975900b36e91bb1bf78b64a9b">GRRLIB_SetHandle</a> (<a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const int x, const int y)</td></tr>
|
|
<tr class="memdesc:ga0c98022975900b36e91bb1bf78b64a9b"><td class="mdescLeft"> </td><td class="mdescRight">Set a texture's X and Y handles. <br /></td></tr>
|
|
<tr class="separator:ga0c98022975900b36e91bb1bf78b64a9b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf9765f9f9f807396e554cb32e50dd1d6" id="r_gaf9765f9f9f807396e554cb32e50dd1d6"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaf9765f9f9f807396e554cb32e50dd1d6">GRRLIB_SetMidHandle</a> (<a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const bool enabled)</td></tr>
|
|
<tr class="memdesc:gaf9765f9f9f807396e554cb32e50dd1d6"><td class="mdescLeft"> </td><td class="mdescRight">Center a texture's handles. <br /></td></tr>
|
|
<tr class="separator:gaf9765f9f9f807396e554cb32e50dd1d6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf0efaaeacbc18ff40d02dfe8104def56" id="r_gaf0efaaeacbc18ff40d02dfe8104def56"><td class="memItemLeft" align="right" valign="top">INLINE u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaf0efaaeacbc18ff40d02dfe8104def56">GRRLIB_GetPixelFromtexImg</a> (const int x, const int y, const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex)</td></tr>
|
|
<tr class="memdesc:gaf0efaaeacbc18ff40d02dfe8104def56"><td class="mdescLeft"> </td><td class="mdescRight">Return the color value of a pixel from a <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a>. <br /></td></tr>
|
|
<tr class="separator:gaf0efaaeacbc18ff40d02dfe8104def56"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga56e0544dd2fbf62ed03dbd2d91478c79" id="r_ga56e0544dd2fbf62ed03dbd2d91478c79"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga56e0544dd2fbf62ed03dbd2d91478c79">GRRLIB_SetPixelTotexImg</a> (const int x, const int y, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const u32 color)</td></tr>
|
|
<tr class="memdesc:ga56e0544dd2fbf62ed03dbd2d91478c79"><td class="mdescLeft"> </td><td class="mdescRight">Set the color value of a pixel to a <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a>. <br /></td></tr>
|
|
<tr class="separator:ga56e0544dd2fbf62ed03dbd2d91478c79"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga454dafae2dfd9829789aa73810163858" id="r_ga454dafae2dfd9829789aa73810163858"><td class="memItemLeft" align="right" valign="top">INLINE u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga454dafae2dfd9829789aa73810163858">GRRLIB_GetPixelFromFB</a> (int x, int y)</td></tr>
|
|
<tr class="memdesc:ga454dafae2dfd9829789aa73810163858"><td class="mdescLeft"> </td><td class="mdescRight">Reads a pixel directly from the FrontBuffer. <br /></td></tr>
|
|
<tr class="separator:ga454dafae2dfd9829789aa73810163858"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2de134824b5ecc4d5011e98e7428ed31" id="r_ga2de134824b5ecc4d5011e98e7428ed31"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga2de134824b5ecc4d5011e98e7428ed31">GRRLIB_SetPixelToFB</a> (int x, int y, u32 pokeColor)</td></tr>
|
|
<tr class="memdesc:ga2de134824b5ecc4d5011e98e7428ed31"><td class="mdescLeft"> </td><td class="mdescRight">Writes a pixel directly from the FrontBuffer. <br /></td></tr>
|
|
<tr class="separator:ga2de134824b5ecc4d5011e98e7428ed31"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga18217682c9ef5d1fb4a12bfd9b964ce8" id="r_ga18217682c9ef5d1fb4a12bfd9b964ce8"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga18217682c9ef5d1fb4a12bfd9b964ce8">GRRLIB_SetBlend</a> (const <a class="el" href="#ga84c65877bb197763cda6669c473be692">GRRLIB_blendMode</a> blendmode)</td></tr>
|
|
<tr class="memdesc:ga18217682c9ef5d1fb4a12bfd9b964ce8"><td class="mdescLeft"> </td><td class="mdescRight">Set a blending mode. <br /></td></tr>
|
|
<tr class="separator:ga18217682c9ef5d1fb4a12bfd9b964ce8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2a1ef7de190db2f090526ef0cc5dee30" id="r_ga2a1ef7de190db2f090526ef0cc5dee30"><td class="memItemLeft" align="right" valign="top">INLINE <a class="el" href="#ga84c65877bb197763cda6669c473be692">GRRLIB_blendMode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga2a1ef7de190db2f090526ef0cc5dee30">GRRLIB_GetBlend</a> (void)</td></tr>
|
|
<tr class="memdesc:ga2a1ef7de190db2f090526ef0cc5dee30"><td class="mdescLeft"> </td><td class="mdescRight">Get the current blending mode. <br /></td></tr>
|
|
<tr class="separator:ga2a1ef7de190db2f090526ef0cc5dee30"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6a685c604592b6f219f101b1f47d87bd" id="r_ga6a685c604592b6f219f101b1f47d87bd"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga6a685c604592b6f219f101b1f47d87bd">GRRLIB_SetAntiAliasing</a> (const bool aa)</td></tr>
|
|
<tr class="memdesc:ga6a685c604592b6f219f101b1f47d87bd"><td class="mdescLeft"> </td><td class="mdescRight">Turn anti-aliasing on/off. <br /></td></tr>
|
|
<tr class="separator:ga6a685c604592b6f219f101b1f47d87bd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac63e5050865fd77b0e72d950ffd033e0" id="r_gac63e5050865fd77b0e72d950ffd033e0"><td class="memItemLeft" align="right" valign="top">INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#gac63e5050865fd77b0e72d950ffd033e0">GRRLIB_GetAntiAliasing</a> (void)</td></tr>
|
|
<tr class="memdesc:gac63e5050865fd77b0e72d950ffd033e0"><td class="mdescLeft"> </td><td class="mdescRight">Get current anti-aliasing setting. <br /></td></tr>
|
|
<tr class="separator:gac63e5050865fd77b0e72d950ffd033e0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gadf667fd892b2f24dfcfe1542e086630e" id="r_gadf667fd892b2f24dfcfe1542e086630e"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gadf667fd892b2f24dfcfe1542e086630e">GRRLIB_ClearTex</a> (<a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex)</td></tr>
|
|
<tr class="memdesc:gadf667fd892b2f24dfcfe1542e086630e"><td class="mdescLeft"> </td><td class="mdescRight">Clear a texture to transparent black. <br /></td></tr>
|
|
<tr class="separator:gadf667fd892b2f24dfcfe1542e086630e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5e6a52737806ffb075cc8be7724f3fdd" id="r_ga5e6a52737806ffb075cc8be7724f3fdd"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd">GRRLIB_FlushTex</a> (<a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex)</td></tr>
|
|
<tr class="memdesc:ga5e6a52737806ffb075cc8be7724f3fdd"><td class="mdescLeft"> </td><td class="mdescRight">Write the contents of a texture in the data cache down to main memory. <br /></td></tr>
|
|
<tr class="separator:ga5e6a52737806ffb075cc8be7724f3fdd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga57309da8aaeefe4092eda55cf38a9c7f" id="r_ga57309da8aaeefe4092eda55cf38a9c7f"><td class="memItemLeft" align="right" valign="top">INLINE void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga57309da8aaeefe4092eda55cf38a9c7f">GRRLIB_FreeTexture</a> (<a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex)</td></tr>
|
|
<tr class="memdesc:ga57309da8aaeefe4092eda55cf38a9c7f"><td class="mdescLeft"> </td><td class="mdescRight">Free memory allocated for texture. <br /></td></tr>
|
|
<tr class="separator:ga57309da8aaeefe4092eda55cf38a9c7f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab2bdca506ed98e85f6543137738a1aa2" id="r_gab2bdca506ed98e85f6543137738a1aa2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_g_r_r_l_i_b__bytemap_font.html">GRRLIB_bytemapFont</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#gab2bdca506ed98e85f6543137738a1aa2">GRRLIB_LoadBMF</a> (const u8 my_bmf[])</td></tr>
|
|
<tr class="memdesc:gab2bdca506ed98e85f6543137738a1aa2"><td class="mdescLeft"> </td><td class="mdescRight">Load a ByteMap font structure from a buffer. <br /></td></tr>
|
|
<tr class="separator:gab2bdca506ed98e85f6543137738a1aa2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga092169c6cbff1f1713f66fffff3dd8a2" id="r_ga092169c6cbff1f1713f66fffff3dd8a2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga092169c6cbff1f1713f66fffff3dd8a2">GRRLIB_FreeBMF</a> (<a class="el" href="struct_g_r_r_l_i_b__bytemap_font.html">GRRLIB_bytemapFont</a> *bmf)</td></tr>
|
|
<tr class="memdesc:ga092169c6cbff1f1713f66fffff3dd8a2"><td class="mdescLeft"> </td><td class="mdescRight">Free memory allocated by ByteMap fonts. <br /></td></tr>
|
|
<tr class="separator:ga092169c6cbff1f1713f66fffff3dd8a2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9a25f472b099163469251ec7ad52d270" id="r_ga9a25f472b099163469251ec7ad52d270"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga9a25f472b099163469251ec7ad52d270">GRRLIB_InitTileSet</a> (<a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const u32 tilew, const u32 tileh, const u32 tilestart)</td></tr>
|
|
<tr class="memdesc:ga9a25f472b099163469251ec7ad52d270"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a tile set. <br /></td></tr>
|
|
<tr class="separator:ga9a25f472b099163469251ec7ad52d270"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7f0c146d1ca8d8697097034d58400881" id="r_ga7f0c146d1ca8d8697097034d58400881"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga7f0c146d1ca8d8697097034d58400881">GRRLIB_BMFX_FlipH</a> (const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texsrc, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texdest)</td></tr>
|
|
<tr class="memdesc:ga7f0c146d1ca8d8697097034d58400881"><td class="mdescLeft"> </td><td class="mdescRight">Flip texture horizontal. <br /></td></tr>
|
|
<tr class="separator:ga7f0c146d1ca8d8697097034d58400881"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga4970b35be663bb10c9045d85dcf3cede" id="r_ga4970b35be663bb10c9045d85dcf3cede"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga4970b35be663bb10c9045d85dcf3cede">GRRLIB_BMFX_FlipV</a> (const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texsrc, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texdest)</td></tr>
|
|
<tr class="memdesc:ga4970b35be663bb10c9045d85dcf3cede"><td class="mdescLeft"> </td><td class="mdescRight">Flip texture vertical. <br /></td></tr>
|
|
<tr class="separator:ga4970b35be663bb10c9045d85dcf3cede"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9c529da9664148234c1690b87f1b0cf9" id="r_ga9c529da9664148234c1690b87f1b0cf9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga9c529da9664148234c1690b87f1b0cf9">GRRLIB_BMFX_Grayscale</a> (const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texsrc, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texdest)</td></tr>
|
|
<tr class="memdesc:ga9c529da9664148234c1690b87f1b0cf9"><td class="mdescLeft"> </td><td class="mdescRight">Change a texture to gray scale. <br /></td></tr>
|
|
<tr class="separator:ga9c529da9664148234c1690b87f1b0cf9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5c5986c87237874d005ad419bafa6bf1" id="r_ga5c5986c87237874d005ad419bafa6bf1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga5c5986c87237874d005ad419bafa6bf1">GRRLIB_BMFX_Sepia</a> (const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texsrc, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texdest)</td></tr>
|
|
<tr class="memdesc:ga5c5986c87237874d005ad419bafa6bf1"><td class="mdescLeft"> </td><td class="mdescRight">Change a texture to sepia (old photo style). <br /></td></tr>
|
|
<tr class="separator:ga5c5986c87237874d005ad419bafa6bf1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga81202b219fae613429c7e6ee4c5c9267" id="r_ga81202b219fae613429c7e6ee4c5c9267"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga81202b219fae613429c7e6ee4c5c9267">GRRLIB_BMFX_Invert</a> (const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texsrc, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texdest)</td></tr>
|
|
<tr class="memdesc:ga81202b219fae613429c7e6ee4c5c9267"><td class="mdescLeft"> </td><td class="mdescRight">Invert colors of the texture. <br /></td></tr>
|
|
<tr class="separator:ga81202b219fae613429c7e6ee4c5c9267"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0094a9b1d6a2eca97e821de3448d320d" id="r_ga0094a9b1d6a2eca97e821de3448d320d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga0094a9b1d6a2eca97e821de3448d320d">GRRLIB_BMFX_Blur</a> (const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texsrc, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texdest, const u32 factor)</td></tr>
|
|
<tr class="memdesc:ga0094a9b1d6a2eca97e821de3448d320d"><td class="mdescLeft"> </td><td class="mdescRight">A texture effect (Blur). <br /></td></tr>
|
|
<tr class="separator:ga0094a9b1d6a2eca97e821de3448d320d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gabe98ae9417c3177ef3f6bf000d0f0466" id="r_gabe98ae9417c3177ef3f6bf000d0f0466"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gabe98ae9417c3177ef3f6bf000d0f0466">GRRLIB_BMFX_Scatter</a> (const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texsrc, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texdest, const u32 factor)</td></tr>
|
|
<tr class="memdesc:gabe98ae9417c3177ef3f6bf000d0f0466"><td class="mdescLeft"> </td><td class="mdescRight">A texture effect (Scatter). <br /></td></tr>
|
|
<tr class="separator:gabe98ae9417c3177ef3f6bf000d0f0466"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga47d87d72cbf8883e99650cf3027ca2c1" id="r_ga47d87d72cbf8883e99650cf3027ca2c1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga47d87d72cbf8883e99650cf3027ca2c1">GRRLIB_BMFX_Pixelate</a> (const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texsrc, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *texdest, const u32 factor)</td></tr>
|
|
<tr class="memdesc:ga47d87d72cbf8883e99650cf3027ca2c1"><td class="mdescLeft"> </td><td class="mdescRight">A texture effect (Pixelate). <br /></td></tr>
|
|
<tr class="separator:ga47d87d72cbf8883e99650cf3027ca2c1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad3186c7e10e4e6c46a743e062971e89a" id="r_gad3186c7e10e4e6c46a743e062971e89a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#gad3186c7e10e4e6c46a743e062971e89a">GRRLIB_Init</a> (void)</td></tr>
|
|
<tr class="memdesc:gad3186c7e10e4e6c46a743e062971e89a"><td class="mdescLeft"> </td><td class="mdescRight">Initialize GRRLIB. <br /></td></tr>
|
|
<tr class="separator:gad3186c7e10e4e6c46a743e062971e89a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga15b1f7d9224e25e77d2806847344f651" id="r_ga15b1f7d9224e25e77d2806847344f651"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga15b1f7d9224e25e77d2806847344f651">GRRLIB_Exit</a> (void)</td></tr>
|
|
<tr class="memdesc:ga15b1f7d9224e25e77d2806847344f651"><td class="mdescLeft"> </td><td class="mdescRight">Call this before exiting your application. <br /></td></tr>
|
|
<tr class="separator:ga15b1f7d9224e25e77d2806847344f651"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6bef7c5bd9550225b7ee0cc3da207738" id="r_ga6bef7c5bd9550225b7ee0cc3da207738"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga6bef7c5bd9550225b7ee0cc3da207738">GRRLIB_Ellipse</a> (const f32 x, const f32 y, const f32 radiusX, const f32 radiusY, const u32 color, const u8 filled)</td></tr>
|
|
<tr class="memdesc:ga6bef7c5bd9550225b7ee0cc3da207738"><td class="mdescLeft"> </td><td class="mdescRight">Draw an ellipse. <br /></td></tr>
|
|
<tr class="separator:ga6bef7c5bd9550225b7ee0cc3da207738"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga23a8ac948a2f606256f981ec7665f7a3" id="r_ga23a8ac948a2f606256f981ec7665f7a3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga23a8ac948a2f606256f981ec7665f7a3">GRRLIB_Circle</a> (const f32 x, const f32 y, const f32 radius, const u32 color, const u8 filled)</td></tr>
|
|
<tr class="memdesc:ga23a8ac948a2f606256f981ec7665f7a3"><td class="mdescLeft"> </td><td class="mdescRight">Draw a circle. <br /></td></tr>
|
|
<tr class="separator:ga23a8ac948a2f606256f981ec7665f7a3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad0e9150a261df8642375ce0b51e891dc" id="r_gad0e9150a261df8642375ce0b51e891dc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#gad0e9150a261df8642375ce0b51e891dc">GRRLIB_LoadFile</a> (const char *filename, u8 **data)</td></tr>
|
|
<tr class="memdesc:gad0e9150a261df8642375ce0b51e891dc"><td class="mdescLeft"> </td><td class="mdescRight">Load a file to memory. <br /></td></tr>
|
|
<tr class="separator:gad0e9150a261df8642375ce0b51e891dc"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga30161fbcf1c4c3538faf923742562f8d" id="r_ga30161fbcf1c4c3538faf923742562f8d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga30161fbcf1c4c3538faf923742562f8d">GRRLIB_LoadTextureFromFile</a> (const char *filename)</td></tr>
|
|
<tr class="memdesc:ga30161fbcf1c4c3538faf923742562f8d"><td class="mdescLeft"> </td><td class="mdescRight">Load a texture from a file. <br /></td></tr>
|
|
<tr class="separator:ga30161fbcf1c4c3538faf923742562f8d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga402b52f044c46e147e32cc1da4153829" id="r_ga402b52f044c46e147e32cc1da4153829"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga402b52f044c46e147e32cc1da4153829">GRRLIB_LoadTTFFromFile</a> (const char *filename)</td></tr>
|
|
<tr class="memdesc:ga402b52f044c46e147e32cc1da4153829"><td class="mdescLeft"> </td><td class="mdescRight">Load a TTF from a file. <br /></td></tr>
|
|
<tr class="separator:ga402b52f044c46e147e32cc1da4153829"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga3460233a6d9323890a8eefa19f520e25" id="r_ga3460233a6d9323890a8eefa19f520e25"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga3460233a6d9323890a8eefa19f520e25">GRRLIB_ScrShot</a> (const char *filename)</td></tr>
|
|
<tr class="memdesc:ga3460233a6d9323890a8eefa19f520e25"><td class="mdescLeft"> </td><td class="mdescRight">Make a PNG screenshot. <br /></td></tr>
|
|
<tr class="separator:ga3460233a6d9323890a8eefa19f520e25"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5539140382d9563e4e42dbda1694d21d" id="r_ga5539140382d9563e4e42dbda1694d21d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga5539140382d9563e4e42dbda1694d21d">GRRLIB_Printf</a> (const f32 xpos, const f32 ypos, const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const u32 color, const f32 zoom, const char *text,...)</td></tr>
|
|
<tr class="memdesc:ga5539140382d9563e4e42dbda1694d21d"><td class="mdescLeft"> </td><td class="mdescRight">Print formatted output. <br /></td></tr>
|
|
<tr class="separator:ga5539140382d9563e4e42dbda1694d21d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gabc7a3deff6baf1923bbde413c036ef96" id="r_gabc7a3deff6baf1923bbde413c036ef96"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gabc7a3deff6baf1923bbde413c036ef96">GRRLIB_PrintBMF</a> (const f32 xpos, const f32 ypos, const <a class="el" href="struct_g_r_r_l_i_b__bytemap_font.html">GRRLIB_bytemapFont</a> *bmf, const char *text,...)</td></tr>
|
|
<tr class="memdesc:gabc7a3deff6baf1923bbde413c036ef96"><td class="mdescLeft"> </td><td class="mdescRight">Print formatted output with a ByteMap font. <br /></td></tr>
|
|
<tr class="separator:gabc7a3deff6baf1923bbde413c036ef96"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac93fa62dac7639bd2fe626aae5fef150" id="r_gac93fa62dac7639bd2fe626aae5fef150"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gac93fa62dac7639bd2fe626aae5fef150">GRRLIB_DrawImg</a> (const f32 xpos, const f32 ypos, const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const f32 degrees, const f32 scaleX, const f32 scaleY, const u32 color)</td></tr>
|
|
<tr class="memdesc:gac93fa62dac7639bd2fe626aae5fef150"><td class="mdescLeft"> </td><td class="mdescRight">Draw a texture. <br /></td></tr>
|
|
<tr class="separator:gac93fa62dac7639bd2fe626aae5fef150"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga852b2b23d242d8cdd0a1cbcbe89d7317" id="r_ga852b2b23d242d8cdd0a1cbcbe89d7317"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga852b2b23d242d8cdd0a1cbcbe89d7317">GRRLIB_DrawImgQuad</a> (const guVector pos[4], <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const u32 color)</td></tr>
|
|
<tr class="memdesc:ga852b2b23d242d8cdd0a1cbcbe89d7317"><td class="mdescLeft"> </td><td class="mdescRight">Draw a textured quad. <br /></td></tr>
|
|
<tr class="separator:ga852b2b23d242d8cdd0a1cbcbe89d7317"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga8225b76416869d90c10ff90e9f2215d2" id="r_ga8225b76416869d90c10ff90e9f2215d2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga8225b76416869d90c10ff90e9f2215d2">GRRLIB_DrawTile</a> (const f32 xpos, const f32 ypos, const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const f32 degrees, const f32 scaleX, const f32 scaleY, const u32 color, const int frame)</td></tr>
|
|
<tr class="memdesc:ga8225b76416869d90c10ff90e9f2215d2"><td class="mdescLeft"> </td><td class="mdescRight">Draw a tile. <br /></td></tr>
|
|
<tr class="separator:ga8225b76416869d90c10ff90e9f2215d2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gabafe0b9297e020c440851543c028575e" id="r_gabafe0b9297e020c440851543c028575e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gabafe0b9297e020c440851543c028575e">GRRLIB_DrawPart</a> (const f32 xpos, const f32 ypos, const f32 partx, const f32 party, const f32 partw, const f32 parth, const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const f32 degrees, const f32 scaleX, const f32 scaleY, const u32 color)</td></tr>
|
|
<tr class="memdesc:gabafe0b9297e020c440851543c028575e"><td class="mdescLeft"> </td><td class="mdescRight">Draw a part of a texture. <br /></td></tr>
|
|
<tr class="separator:gabafe0b9297e020c440851543c028575e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaeb7bef5310d7a764278d3f91810de701" id="r_gaeb7bef5310d7a764278d3f91810de701"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaeb7bef5310d7a764278d3f91810de701">GRRLIB_DrawTileQuad</a> (const guVector pos[4], <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, const u32 color, const int frame)</td></tr>
|
|
<tr class="memdesc:gaeb7bef5310d7a764278d3f91810de701"><td class="mdescLeft"> </td><td class="mdescRight">Draw a tile in a quad. <br /></td></tr>
|
|
<tr class="separator:gaeb7bef5310d7a764278d3f91810de701"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9840a19154f1e0cf9de14ad81ba23aef" id="r_ga9840a19154f1e0cf9de14ad81ba23aef"><td class="memItemLeft" align="right" valign="top"><a id="ga9840a19154f1e0cf9de14ad81ba23aef" name="ga9840a19154f1e0cf9de14ad81ba23aef"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>GRRLIB_Render</b> (void)</td></tr>
|
|
<tr class="memdesc:ga9840a19154f1e0cf9de14ad81ba23aef"><td class="mdescLeft"> </td><td class="mdescRight">Call this function after drawing. <br /></td></tr>
|
|
<tr class="separator:ga9840a19154f1e0cf9de14ad81ba23aef"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2679d0fa70341fa428857a776b9db970" id="r_ga2679d0fa70341fa428857a776b9db970"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga2679d0fa70341fa428857a776b9db970">GRRLIB_Screen2Texture</a> (u16 posx, u16 posy, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, bool clear)</td></tr>
|
|
<tr class="memdesc:ga2679d0fa70341fa428857a776b9db970"><td class="mdescLeft"> </td><td class="mdescRight">Make a snapshot of the screen in a texture WITHOUT ALPHA LAYER. <br /></td></tr>
|
|
<tr class="separator:ga2679d0fa70341fa428857a776b9db970"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab46283be3128415bf0ab2969bf7fda95" id="r_gab46283be3128415bf0ab2969bf7fda95"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gab46283be3128415bf0ab2969bf7fda95">GRRLIB_CompoStart</a> (void)</td></tr>
|
|
<tr class="memdesc:gab46283be3128415bf0ab2969bf7fda95"><td class="mdescLeft"> </td><td class="mdescRight">Start GX compositing process. <br /></td></tr>
|
|
<tr class="separator:gab46283be3128415bf0ab2969bf7fda95"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0af29f5435a5cbdee720afb8c375ca71" id="r_ga0af29f5435a5cbdee720afb8c375ca71"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga0af29f5435a5cbdee720afb8c375ca71">GRRLIB_CompoEnd</a> (u16 posx, u16 posy, <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex)</td></tr>
|
|
<tr class="memdesc:ga0af29f5435a5cbdee720afb8c375ca71"><td class="mdescLeft"> </td><td class="mdescRight">End GX compositing process (Make a snapshot of the screen in a texture WITH ALPHA LAYER). <br /></td></tr>
|
|
<tr class="separator:ga0af29f5435a5cbdee720afb8c375ca71"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5ace4f7f4fae5016fe7c009b0e6331c9" id="r_ga5ace4f7f4fae5016fe7c009b0e6331c9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga5ace4f7f4fae5016fe7c009b0e6331c9">GRRLIB_CreateEmptyTexture</a> (const u32 width, const u32 height)</td></tr>
|
|
<tr class="memdesc:ga5ace4f7f4fae5016fe7c009b0e6331c9"><td class="mdescLeft"> </td><td class="mdescRight">Create an empty texture in GX_TF_RGBA8 format. <br /></td></tr>
|
|
<tr class="separator:ga5ace4f7f4fae5016fe7c009b0e6331c9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gade2d994a5f55dd91c8cd1268add6970a" id="r_gade2d994a5f55dd91c8cd1268add6970a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#gade2d994a5f55dd91c8cd1268add6970a">GRRLIB_CreateEmptyTextureFmt</a> (const u32 width, const u32 height, const u32 format)</td></tr>
|
|
<tr class="memdesc:gade2d994a5f55dd91c8cd1268add6970a"><td class="mdescLeft"> </td><td class="mdescRight">Create an empty texture with a given format. <br /></td></tr>
|
|
<tr class="separator:gade2d994a5f55dd91c8cd1268add6970a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga3bcf05b86d1d2345eef642fd6eb9912d" id="r_ga3bcf05b86d1d2345eef642fd6eb9912d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga3bcf05b86d1d2345eef642fd6eb9912d">GRRLIB_LoadTexture</a> (const u8 *my_img)</td></tr>
|
|
<tr class="memdesc:ga3bcf05b86d1d2345eef642fd6eb9912d"><td class="mdescLeft"> </td><td class="mdescRight">Load a texture from a buffer. <br /></td></tr>
|
|
<tr class="separator:ga3bcf05b86d1d2345eef642fd6eb9912d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae95b019b590751cdc6bc64c823ca84e0" id="r_gae95b019b590751cdc6bc64c823ca84e0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#gae95b019b590751cdc6bc64c823ca84e0">GRRLIB_LoadTexturePNG</a> (const u8 *my_png)</td></tr>
|
|
<tr class="memdesc:gae95b019b590751cdc6bc64c823ca84e0"><td class="mdescLeft"> </td><td class="mdescRight">Load a texture from a buffer. <br /></td></tr>
|
|
<tr class="separator:gae95b019b590751cdc6bc64c823ca84e0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0ae563450041c8a09e3121ba39fba777" id="r_ga0ae563450041c8a09e3121ba39fba777"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga0ae563450041c8a09e3121ba39fba777">GRRLIB_LoadTextureJPG</a> (const u8 *my_jpg)</td></tr>
|
|
<tr class="memdesc:ga0ae563450041c8a09e3121ba39fba777"><td class="mdescLeft"> </td><td class="mdescRight">Load a texture from a buffer. <br /></td></tr>
|
|
<tr class="separator:ga0ae563450041c8a09e3121ba39fba777"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2bcf92846d3a47066e4303c889a5c784" id="r_ga2bcf92846d3a47066e4303c889a5c784"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga2bcf92846d3a47066e4303c889a5c784">GRRLIB_LoadTextureJPGEx</a> (const u8 *my_jpg, const u32 my_size)</td></tr>
|
|
<tr class="memdesc:ga2bcf92846d3a47066e4303c889a5c784"><td class="mdescLeft"> </td><td class="mdescRight">Load a texture from a buffer. <br /></td></tr>
|
|
<tr class="separator:ga2bcf92846d3a47066e4303c889a5c784"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaac10127eaaf08e2668b25d34e9077d24" id="r_gaac10127eaaf08e2668b25d34e9077d24"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaac10127eaaf08e2668b25d34e9077d24">GRRLIB_LoadTextureBMP</a> (const u8 *my_bmp)</td></tr>
|
|
<tr class="memdesc:gaac10127eaaf08e2668b25d34e9077d24"><td class="mdescLeft"> </td><td class="mdescRight">Load a texture from a buffer. <br /></td></tr>
|
|
<tr class="separator:gaac10127eaaf08e2668b25d34e9077d24"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1895b209f1c873575c22b4a5e33c8ced" id="r_ga1895b209f1c873575c22b4a5e33c8ced"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga1895b209f1c873575c22b4a5e33c8ced">GRRLIB_GeckoInit</a> (void)</td></tr>
|
|
<tr class="memdesc:ga1895b209f1c873575c22b4a5e33c8ced"><td class="mdescLeft"> </td><td class="mdescRight">Initialize USB Gecko. <br /></td></tr>
|
|
<tr class="separator:ga1895b209f1c873575c22b4a5e33c8ced"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa82c6313b26687aaea494b91d77dc140" id="r_gaa82c6313b26687aaea494b91d77dc140"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaa82c6313b26687aaea494b91d77dc140">GRRLIB_GeckoPrintf</a> (const char *text,...)</td></tr>
|
|
<tr class="memdesc:gaa82c6313b26687aaea494b91d77dc140"><td class="mdescLeft"> </td><td class="mdescRight">Print Gecko. <br /></td></tr>
|
|
<tr class="separator:gaa82c6313b26687aaea494b91d77dc140"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga73ea335f801066d4c13114124e70f82f" id="r_ga73ea335f801066d4c13114124e70f82f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga73ea335f801066d4c13114124e70f82f">GRRLIB_SetBackgroundColour</a> (u8 r, u8 g, u8 b, u8 a)</td></tr>
|
|
<tr class="memdesc:ga73ea335f801066d4c13114124e70f82f"><td class="mdescLeft"> </td><td class="mdescRight">Set the background parameter when screen is cleared. <br /></td></tr>
|
|
<tr class="separator:ga73ea335f801066d4c13114124e70f82f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7300940a38526ab5aa9be0f4abe4a32a" id="r_ga7300940a38526ab5aa9be0f4abe4a32a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga7300940a38526ab5aa9be0f4abe4a32a">GRRLIB_Camera3dSettings</a> (f32 posx, f32 posy, f32 posz, f32 upx, f32 upy, f32 upz, f32 lookx, f32 looky, f32 lookz)</td></tr>
|
|
<tr class="memdesc:ga7300940a38526ab5aa9be0f4abe4a32a"><td class="mdescLeft"> </td><td class="mdescRight">Set the camera parameter (contributed by chris_c aka DaShAmAn). <br /></td></tr>
|
|
<tr class="separator:ga7300940a38526ab5aa9be0f4abe4a32a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac82c972dedc617360eb425ad1604c517" id="r_gac82c972dedc617360eb425ad1604c517"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gac82c972dedc617360eb425ad1604c517">GRRLIB_3dMode</a> (f32 minDist, f32 maxDist, f32 fov, bool texturemode, bool normalmode)</td></tr>
|
|
<tr class="memdesc:gac82c972dedc617360eb425ad1604c517"><td class="mdescLeft"> </td><td class="mdescRight">Set up the position matrix (contributed by chris_c aka DaShAmAn). <br /></td></tr>
|
|
<tr class="separator:gac82c972dedc617360eb425ad1604c517"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga85fe9e93b1c1dd5ecbc2824015c9573f" id="r_ga85fe9e93b1c1dd5ecbc2824015c9573f"><td class="memItemLeft" align="right" valign="top"><a id="ga85fe9e93b1c1dd5ecbc2824015c9573f" name="ga85fe9e93b1c1dd5ecbc2824015c9573f"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>GRRLIB_2dMode</b> (void)</td></tr>
|
|
<tr class="memdesc:ga85fe9e93b1c1dd5ecbc2824015c9573f"><td class="mdescLeft"> </td><td class="mdescRight">Go back to 2D mode (contributed by chris_c aka DaShAmAn). <br /></td></tr>
|
|
<tr class="separator:ga85fe9e93b1c1dd5ecbc2824015c9573f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf7f2e67faf4659534f18a6077522eaf6" id="r_gaf7f2e67faf4659534f18a6077522eaf6"><td class="memItemLeft" align="right" valign="top"><a id="gaf7f2e67faf4659534f18a6077522eaf6" name="gaf7f2e67faf4659534f18a6077522eaf6"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>GRRLIB_ObjectViewBegin</b> (void)</td></tr>
|
|
<tr class="memdesc:gaf7f2e67faf4659534f18a6077522eaf6"><td class="mdescLeft"> </td><td class="mdescRight">Init the object matrix to draw object. <br /></td></tr>
|
|
<tr class="separator:gaf7f2e67faf4659534f18a6077522eaf6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga8e03d189c20637432df8dbf7d8c6948a" id="r_ga8e03d189c20637432df8dbf7d8c6948a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga8e03d189c20637432df8dbf7d8c6948a">GRRLIB_ObjectViewScale</a> (f32 scalx, f32 scaly, f32 scalz)</td></tr>
|
|
<tr class="memdesc:ga8e03d189c20637432df8dbf7d8c6948a"><td class="mdescLeft"> </td><td class="mdescRight">Scale the object matrix to draw object. <br /></td></tr>
|
|
<tr class="separator:ga8e03d189c20637432df8dbf7d8c6948a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga50ff0217cfeb128711fb1f3db3df4c8d" id="r_ga50ff0217cfeb128711fb1f3db3df4c8d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga50ff0217cfeb128711fb1f3db3df4c8d">GRRLIB_ObjectViewRotate</a> (f32 angx, f32 angy, f32 angz)</td></tr>
|
|
<tr class="memdesc:ga50ff0217cfeb128711fb1f3db3df4c8d"><td class="mdescLeft"> </td><td class="mdescRight">Rotate the object matrix to draw object. <br /></td></tr>
|
|
<tr class="separator:ga50ff0217cfeb128711fb1f3db3df4c8d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6991c87a4e1eff876be3733caa9b5947" id="r_ga6991c87a4e1eff876be3733caa9b5947"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga6991c87a4e1eff876be3733caa9b5947">GRRLIB_ObjectViewTrans</a> (f32 posx, f32 posy, f32 posz)</td></tr>
|
|
<tr class="memdesc:ga6991c87a4e1eff876be3733caa9b5947"><td class="mdescLeft"> </td><td class="mdescRight">Translate the object matrix to draw object. <br /></td></tr>
|
|
<tr class="separator:ga6991c87a4e1eff876be3733caa9b5947"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac174d61b9a21730a97a8aa6ba59c8e2e" id="r_gac174d61b9a21730a97a8aa6ba59c8e2e"><td class="memItemLeft" align="right" valign="top"><a id="gac174d61b9a21730a97a8aa6ba59c8e2e" name="gac174d61b9a21730a97a8aa6ba59c8e2e"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>GRRLIB_ObjectViewEnd</b> (void)</td></tr>
|
|
<tr class="memdesc:gac174d61b9a21730a97a8aa6ba59c8e2e"><td class="mdescLeft"> </td><td class="mdescRight">Concat the object and the view matrix and calculate the inverse normal matrix. <br /></td></tr>
|
|
<tr class="separator:gac174d61b9a21730a97a8aa6ba59c8e2e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac02a14d2556b5ec92e28f41c9888b530" id="r_gac02a14d2556b5ec92e28f41c9888b530"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gac02a14d2556b5ec92e28f41c9888b530">GRRLIB_ObjectView</a> (f32 posx, f32 posy, f32 posz, f32 angx, f32 angy, f32 angz, f32 scalx, f32 scaly, f32 scalz)</td></tr>
|
|
<tr class="memdesc:gac02a14d2556b5ec92e28f41c9888b530"><td class="mdescLeft"> </td><td class="mdescRight">Set the view matrix to draw object (in this order scale, rotate AND trans). <br /></td></tr>
|
|
<tr class="separator:gac02a14d2556b5ec92e28f41c9888b530"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga03814286ada96c4a38fa36b9477bbd7c" id="r_ga03814286ada96c4a38fa36b9477bbd7c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga03814286ada96c4a38fa36b9477bbd7c">GRRLIB_ObjectViewInv</a> (f32 posx, f32 posy, f32 posz, f32 angx, f32 angy, f32 angz, f32 scalx, f32 scaly, f32 scalz)</td></tr>
|
|
<tr class="memdesc:ga03814286ada96c4a38fa36b9477bbd7c"><td class="mdescLeft"> </td><td class="mdescRight">Set the view matrix to draw object (in this order scale, trans AND rotate). <br /></td></tr>
|
|
<tr class="separator:ga03814286ada96c4a38fa36b9477bbd7c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gacdda772743d08b1e060f2b3dbf4795ed" id="r_gacdda772743d08b1e060f2b3dbf4795ed"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gacdda772743d08b1e060f2b3dbf4795ed">GRRLIB_SetTexture</a> (<a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *tex, bool rep)</td></tr>
|
|
<tr class="memdesc:gacdda772743d08b1e060f2b3dbf4795ed"><td class="mdescLeft"> </td><td class="mdescRight">Set the texture to an object (contributed by chris_c aka DaShAmAn). <br /></td></tr>
|
|
<tr class="separator:gacdda772743d08b1e060f2b3dbf4795ed"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6410ce395aeab56d3166a45724cb6a32" id="r_ga6410ce395aeab56d3166a45724cb6a32"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga6410ce395aeab56d3166a45724cb6a32">GRRLIB_DrawTorus</a> (f32 r, f32 <a class="el" href="#ga2cde25567f177a6cd9191d536764235e">R</a>, int nsides, int rings, bool filled, u32 col)</td></tr>
|
|
<tr class="memdesc:ga6410ce395aeab56d3166a45724cb6a32"><td class="mdescLeft"> </td><td class="mdescRight">Draw a torus (with normal). <br /></td></tr>
|
|
<tr class="separator:ga6410ce395aeab56d3166a45724cb6a32"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaea4b4858892b197b94c0a2b331eb9c91" id="r_gaea4b4858892b197b94c0a2b331eb9c91"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaea4b4858892b197b94c0a2b331eb9c91">GRRLIB_DrawSphere</a> (f32 r, int lats, int longs, bool filled, u32 col)</td></tr>
|
|
<tr class="memdesc:gaea4b4858892b197b94c0a2b331eb9c91"><td class="mdescLeft"> </td><td class="mdescRight">Draw a sphere (with normal). <br /></td></tr>
|
|
<tr class="separator:gaea4b4858892b197b94c0a2b331eb9c91"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad029080b2bb31c61feb5af6b60e59ec2" id="r_gad029080b2bb31c61feb5af6b60e59ec2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gad029080b2bb31c61feb5af6b60e59ec2">GRRLIB_DrawCube</a> (f32 size, bool filled, u32 col)</td></tr>
|
|
<tr class="memdesc:gad029080b2bb31c61feb5af6b60e59ec2"><td class="mdescLeft"> </td><td class="mdescRight">Draw a cube (with normal). <br /></td></tr>
|
|
<tr class="separator:gad029080b2bb31c61feb5af6b60e59ec2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac6ecd421da6885c7ee3f1b41f36acad2" id="r_gac6ecd421da6885c7ee3f1b41f36acad2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gac6ecd421da6885c7ee3f1b41f36acad2">GRRLIB_DrawCylinder</a> (f32 r, f32 h, u16 d, bool filled, u32 col)</td></tr>
|
|
<tr class="memdesc:gac6ecd421da6885c7ee3f1b41f36acad2"><td class="mdescLeft"> </td><td class="mdescRight">Draw a cylinder (with normal). <br /></td></tr>
|
|
<tr class="separator:gac6ecd421da6885c7ee3f1b41f36acad2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga09c1572feadf21c46678b3a7bb0944e2" id="r_ga09c1572feadf21c46678b3a7bb0944e2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga09c1572feadf21c46678b3a7bb0944e2">GRRLIB_DrawCone</a> (f32 r, f32 h, u16 d, bool filled, u32 col)</td></tr>
|
|
<tr class="memdesc:ga09c1572feadf21c46678b3a7bb0944e2"><td class="mdescLeft"> </td><td class="mdescRight">Draw a cone (with normal). <br /></td></tr>
|
|
<tr class="separator:ga09c1572feadf21c46678b3a7bb0944e2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga654851a42dbdefae806f1793cf6a69d0" id="r_ga654851a42dbdefae806f1793cf6a69d0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga654851a42dbdefae806f1793cf6a69d0">GRRLIB_DrawTessPanel</a> (f32 w, f32 wstep, f32 h, f32 hstep, bool filled, u32 col)</td></tr>
|
|
<tr class="memdesc:ga654851a42dbdefae806f1793cf6a69d0"><td class="mdescLeft"> </td><td class="mdescRight">Draw a Tesselated panel (with normal). <br /></td></tr>
|
|
<tr class="separator:ga654851a42dbdefae806f1793cf6a69d0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae2db782b9842924329956daaeefbac20" id="r_gae2db782b9842924329956daaeefbac20"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gae2db782b9842924329956daaeefbac20">GRRLIB_SetLightAmbient</a> (u32 ambientcolor)</td></tr>
|
|
<tr class="memdesc:gae2db782b9842924329956daaeefbac20"><td class="mdescLeft"> </td><td class="mdescRight">Set ambient color. <br /></td></tr>
|
|
<tr class="separator:gae2db782b9842924329956daaeefbac20"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga160f23daf580d4d41e491135f2f86027" id="r_ga160f23daf580d4d41e491135f2f86027"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga160f23daf580d4d41e491135f2f86027">GRRLIB_SetLightDiff</a> (u8 num, guVector pos, f32 distattn, f32 brightness, u32 lightcolor)</td></tr>
|
|
<tr class="memdesc:ga160f23daf580d4d41e491135f2f86027"><td class="mdescLeft"> </td><td class="mdescRight">Set diffuse light parameters. <br /></td></tr>
|
|
<tr class="separator:ga160f23daf580d4d41e491135f2f86027"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab7f3bf4fbc8b4dad8902e95894f1419f" id="r_gab7f3bf4fbc8b4dad8902e95894f1419f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gab7f3bf4fbc8b4dad8902e95894f1419f">GRRLIB_SetLightSpec</a> (u8 num, guVector dir, f32 shininess, u32 lightcolor, u32 speccolor)</td></tr>
|
|
<tr class="memdesc:gab7f3bf4fbc8b4dad8902e95894f1419f"><td class="mdescLeft"> </td><td class="mdescRight">Set specular light parameters. <br /></td></tr>
|
|
<tr class="separator:gab7f3bf4fbc8b4dad8902e95894f1419f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac4ae6bb35e12d59405c842c93e860462" id="r_gac4ae6bb35e12d59405c842c93e860462"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gac4ae6bb35e12d59405c842c93e860462">GRRLIB_SetLightSpot</a> (u8 num, guVector pos, guVector lookat, f32 angAttn0, f32 angAttn1, f32 angAttn2, f32 distAttn0, f32 distAttn1, f32 distAttn2, u32 lightcolor)</td></tr>
|
|
<tr class="memdesc:gac4ae6bb35e12d59405c842c93e860462"><td class="mdescLeft"> </td><td class="mdescRight">Set Spot light parameters. <br /></td></tr>
|
|
<tr class="separator:gac4ae6bb35e12d59405c842c93e860462"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga4b4e22c02cf692d254f32da348299b78" id="r_ga4b4e22c02cf692d254f32da348299b78"><td class="memItemLeft" align="right" valign="top"><a id="ga4b4e22c02cf692d254f32da348299b78" name="ga4b4e22c02cf692d254f32da348299b78"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>GRRLIB_SetLightOff</b> (void)</td></tr>
|
|
<tr class="memdesc:ga4b4e22c02cf692d254f32da348299b78"><td class="mdescLeft"> </td><td class="mdescRight">Set all lights off, like at init. <br /></td></tr>
|
|
<tr class="separator:ga4b4e22c02cf692d254f32da348299b78"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac5989e925eceea3da6a44a90ac431dd7" id="r_gac5989e925eceea3da6a44a90ac431dd7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#gac5989e925eceea3da6a44a90ac431dd7">GRRLIB_LoadTTF</a> (const u8 *file_base, s32 file_size)</td></tr>
|
|
<tr class="memdesc:gac5989e925eceea3da6a44a90ac431dd7"><td class="mdescLeft"> </td><td class="mdescRight">Load a TTF from a buffer. <br /></td></tr>
|
|
<tr class="separator:gac5989e925eceea3da6a44a90ac431dd7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga977ef3ec2aaa49cae6c7492066e35640" id="r_ga977ef3ec2aaa49cae6c7492066e35640"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga977ef3ec2aaa49cae6c7492066e35640">GRRLIB_FreeTTF</a> (<a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *myFont)</td></tr>
|
|
<tr class="memdesc:ga977ef3ec2aaa49cae6c7492066e35640"><td class="mdescLeft"> </td><td class="mdescRight">Free memory allocated by TTF fonts. <br /></td></tr>
|
|
<tr class="separator:ga977ef3ec2aaa49cae6c7492066e35640"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga358e206bb75caac5bf850bd6f8f17d2a" id="r_ga358e206bb75caac5bf850bd6f8f17d2a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga358e206bb75caac5bf850bd6f8f17d2a">GRRLIB_PrintfTTF</a> (int x, int y, <a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *myFont, const char *string, unsigned int fontSize, const u32 color)</td></tr>
|
|
<tr class="memdesc:ga358e206bb75caac5bf850bd6f8f17d2a"><td class="mdescLeft"> </td><td class="mdescRight">Print function for TTF font. <br /></td></tr>
|
|
<tr class="separator:ga358e206bb75caac5bf850bd6f8f17d2a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaba31ba538f5ee4f1abf0fb604a34d45b" id="r_gaba31ba538f5ee4f1abf0fb604a34d45b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#gaba31ba538f5ee4f1abf0fb604a34d45b">GRRLIB_PrintfTTFW</a> (int x, int y, <a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *myFont, const wchar_t *string, unsigned int fontSize, const u32 color)</td></tr>
|
|
<tr class="memdesc:gaba31ba538f5ee4f1abf0fb604a34d45b"><td class="mdescLeft"> </td><td class="mdescRight">Print function for TTF font. <br /></td></tr>
|
|
<tr class="separator:gaba31ba538f5ee4f1abf0fb604a34d45b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga53429ddacb34b9fd89635ae412e57227" id="r_ga53429ddacb34b9fd89635ae412e57227"><td class="memItemLeft" align="right" valign="top">u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="#ga53429ddacb34b9fd89635ae412e57227">GRRLIB_WidthTTF</a> (<a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *myFont, const char *, unsigned int)</td></tr>
|
|
<tr class="memdesc:ga53429ddacb34b9fd89635ae412e57227"><td class="mdescLeft"> </td><td class="mdescRight">Get the width of a text in pixel. <br /></td></tr>
|
|
<tr class="separator:ga53429ddacb34b9fd89635ae412e57227"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac8b9bb428ec8328f2954f74cf8a6edab" id="r_gac8b9bb428ec8328f2954f74cf8a6edab"><td class="memItemLeft" align="right" valign="top">u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="#gac8b9bb428ec8328f2954f74cf8a6edab">GRRLIB_WidthTTFW</a> (<a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *myFont, const wchar_t *, unsigned int)</td></tr>
|
|
<tr class="memdesc:gac8b9bb428ec8328f2954f74cf8a6edab"><td class="mdescLeft"> </td><td class="mdescRight">Get the width of a text in pixel. <br /></td></tr>
|
|
<tr class="separator:gac8b9bb428ec8328f2954f74cf8a6edab"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
|
|
Variables</h2></td></tr>
|
|
<tr class="memitem:ga10c3414080fff8aeaccb0b1584d51edc" id="r_ga10c3414080fff8aeaccb0b1584d51edc"><td class="memItemLeft" align="right" valign="top"><a id="ga10c3414080fff8aeaccb0b1584d51edc" name="ga10c3414080fff8aeaccb0b1584d51edc"></a>
|
|
GRR_EXTERN GXRModeObj * </td><td class="memItemRight" valign="bottom"><b>rmode</b></td></tr>
|
|
<tr class="memdesc:ga10c3414080fff8aeaccb0b1584d51edc"><td class="mdescLeft"> </td><td class="mdescRight">Video mode. <br /></td></tr>
|
|
<tr class="separator:ga10c3414080fff8aeaccb0b1584d51edc"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>This is the complete list of functions, structures, defines, typedefs, enumerations and variables you may want to used to make your homebrew with GRRLIB. </p>
|
|
<p>You simply need to include <a class="el" href="grrlib_8h.html" title="GRRLIB user include file.">grrlib.h</a> in your project to have access to all of these. </p>
|
|
<h2 class="groupheader">Macro Definition Documentation</h2>
|
|
<a id="gaba32782053c6a2b01e3706d632d77895" name="gaba32782053c6a2b01e3706d632d77895"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaba32782053c6a2b01e3706d632d77895">◆ </a></span>RGBA</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define RGBA</td>
|
|
<td>(</td>
|
|
<td class="paramtype"></td> <td class="paramname"><span class="paramname">r, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"></td> <td class="paramname"><span class="paramname">g, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"></td> <td class="paramname"><span class="paramname">b, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"></td> <td class="paramname"><span class="paramname">a</span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Value:</b><div class="fragment"><div class="line"> ( (u32)( ( ((u32)(r)) <<24) | \</div>
|
|
<div class="line"> ((((u32)(g)) &0xFF) <<16) | \</div>
|
|
<div class="line"> ((((u32)(b)) &0xFF) << 8) | \</div>
|
|
<div class="line"> ( ((u32)(a)) &0xFF ) ) )</div>
|
|
</div><!-- fragment -->
|
|
<p>Build an RGB pixel from components. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">r</td><td>Red component. </td></tr>
|
|
<tr><td class="paramname">g</td><td>Green component. </td></tr>
|
|
<tr><td class="paramname">b</td><td>Blue component. </td></tr>
|
|
<tr><td class="paramname">a</td><td>Alpha component. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Enumeration Type Documentation</h2>
|
|
<a id="ga84c65877bb197763cda6669c473be692" name="ga84c65877bb197763cda6669c473be692"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga84c65877bb197763cda6669c473be692">◆ </a></span>GRRLIB_blendMode</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="#ga84c65877bb197763cda6669c473be692">GRRLIB_blendMode</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>GRRLIB Blending Modes. </p>
|
|
<table class="fieldtable">
|
|
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga84c65877bb197763cda6669c473be692aeded8fce060bcb04b096c17cea237c23" name="gga84c65877bb197763cda6669c473be692aeded8fce060bcb04b096c17cea237c23"></a>GRRLIB_BLEND_ALPHA </td><td class="fielddoc"><p>Alpha Blending. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="gga84c65877bb197763cda6669c473be692ad4f0554f7bfc19410c4fedaeab1a10fd" name="gga84c65877bb197763cda6669c473be692ad4f0554f7bfc19410c4fedaeab1a10fd"></a>GRRLIB_BLEND_ADD </td><td class="fielddoc"><p>Additive Blending. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="gga84c65877bb197763cda6669c473be692ad026c10937b34f2e3e5dd462f528ef00" name="gga84c65877bb197763cda6669c473be692ad026c10937b34f2e3e5dd462f528ef00"></a>GRRLIB_BLEND_SCREEN </td><td class="fielddoc"><p>Alpha Light Blending. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="gga84c65877bb197763cda6669c473be692a4a7b1a0e143ad522128a7c8f5f7dc7fb" name="gga84c65877bb197763cda6669c473be692a4a7b1a0e143ad522128a7c8f5f7dc7fb"></a>GRRLIB_BLEND_MULTI </td><td class="fielddoc"><p>Multiply Blending. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a id="gga84c65877bb197763cda6669c473be692ab3aacba447b6cee253fc713e45ab49fd" name="gga84c65877bb197763cda6669c473be692ab3aacba447b6cee253fc713e45ab49fd"></a>GRRLIB_BLEND_INV </td><td class="fielddoc"><p>Invert Color Blending. </p>
|
|
</td></tr>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a id="gac82c972dedc617360eb425ad1604c517" name="gac82c972dedc617360eb425ad1604c517"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac82c972dedc617360eb425ad1604c517">◆ </a></span>GRRLIB_3dMode()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_3dMode </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>minDist</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>maxDist</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>fov</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>texturemode</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>normalmode</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set up the position matrix (contributed by chris_c aka DaShAmAn). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">minDist</td><td>Minimal distance for the camera. </td></tr>
|
|
<tr><td class="paramname">maxDist</td><td>Maximal distance for the camera. </td></tr>
|
|
<tr><td class="paramname">fov</td><td>Field of view for the camera. </td></tr>
|
|
<tr><td class="paramname">texturemode</td><td>False, GX won't need texture coordinate, True, GX will need texture coordinate. </td></tr>
|
|
<tr><td class="paramname">normalmode</td><td>False, GX won't need normal coordinate, True, GX will need normal coordinate. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga0094a9b1d6a2eca97e821de3448d320d" name="ga0094a9b1d6a2eca97e821de3448d320d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga0094a9b1d6a2eca97e821de3448d320d">◆ </a></span>GRRLIB_BMFX_Blur()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_BMFX_Blur </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texsrc</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texdest</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>factor</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>A texture effect (Blur). </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd" title="Write the contents of a texture in the data cache down to main memory.">GRRLIB_FlushTex</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">texsrc</td><td>The texture source. </td></tr>
|
|
<tr><td class="paramname">texdest</td><td>The texture destination. </td></tr>
|
|
<tr><td class="paramname">factor</td><td>The blur factor. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga7f0c146d1ca8d8697097034d58400881" name="ga7f0c146d1ca8d8697097034d58400881"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga7f0c146d1ca8d8697097034d58400881">◆ </a></span>GRRLIB_BMFX_FlipH()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_BMFX_FlipH </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texsrc</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texdest</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Flip texture horizontal. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd" title="Write the contents of a texture in the data cache down to main memory.">GRRLIB_FlushTex</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">texsrc</td><td>The texture source. </td></tr>
|
|
<tr><td class="paramname">texdest</td><td>The texture destination. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga4970b35be663bb10c9045d85dcf3cede" name="ga4970b35be663bb10c9045d85dcf3cede"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga4970b35be663bb10c9045d85dcf3cede">◆ </a></span>GRRLIB_BMFX_FlipV()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_BMFX_FlipV </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texsrc</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texdest</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Flip texture vertical. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd" title="Write the contents of a texture in the data cache down to main memory.">GRRLIB_FlushTex</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">texsrc</td><td>The texture source. </td></tr>
|
|
<tr><td class="paramname">texdest</td><td>The texture destination. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga9c529da9664148234c1690b87f1b0cf9" name="ga9c529da9664148234c1690b87f1b0cf9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga9c529da9664148234c1690b87f1b0cf9">◆ </a></span>GRRLIB_BMFX_Grayscale()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_BMFX_Grayscale </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texsrc</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texdest</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Change a texture to gray scale. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd" title="Write the contents of a texture in the data cache down to main memory.">GRRLIB_FlushTex</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">texsrc</td><td>The texture source. </td></tr>
|
|
<tr><td class="paramname">texdest</td><td>The texture grayscaled destination. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga81202b219fae613429c7e6ee4c5c9267" name="ga81202b219fae613429c7e6ee4c5c9267"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga81202b219fae613429c7e6ee4c5c9267">◆ </a></span>GRRLIB_BMFX_Invert()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_BMFX_Invert </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texsrc</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texdest</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Invert colors of the texture. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd" title="Write the contents of a texture in the data cache down to main memory.">GRRLIB_FlushTex</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">texsrc</td><td>The texture source. </td></tr>
|
|
<tr><td class="paramname">texdest</td><td>The texture destination. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga47d87d72cbf8883e99650cf3027ca2c1" name="ga47d87d72cbf8883e99650cf3027ca2c1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga47d87d72cbf8883e99650cf3027ca2c1">◆ </a></span>GRRLIB_BMFX_Pixelate()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_BMFX_Pixelate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texsrc</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texdest</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>factor</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>A texture effect (Pixelate). </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd" title="Write the contents of a texture in the data cache down to main memory.">GRRLIB_FlushTex</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">texsrc</td><td>The texture source. </td></tr>
|
|
<tr><td class="paramname">texdest</td><td>The texture destination. </td></tr>
|
|
<tr><td class="paramname">factor</td><td>The factor level of the effect. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gabe98ae9417c3177ef3f6bf000d0f0466" name="gabe98ae9417c3177ef3f6bf000d0f0466"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gabe98ae9417c3177ef3f6bf000d0f0466">◆ </a></span>GRRLIB_BMFX_Scatter()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_BMFX_Scatter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texsrc</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texdest</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>factor</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>A texture effect (Scatter). </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd" title="Write the contents of a texture in the data cache down to main memory.">GRRLIB_FlushTex</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">texsrc</td><td>The texture source. </td></tr>
|
|
<tr><td class="paramname">texdest</td><td>The texture destination. </td></tr>
|
|
<tr><td class="paramname">factor</td><td>The factor level of the effect. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga5c5986c87237874d005ad419bafa6bf1" name="ga5c5986c87237874d005ad419bafa6bf1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga5c5986c87237874d005ad419bafa6bf1">◆ </a></span>GRRLIB_BMFX_Sepia()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_BMFX_Sepia </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texsrc</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>texdest</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Change a texture to sepia (old photo style). </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd" title="Write the contents of a texture in the data cache down to main memory.">GRRLIB_FlushTex</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">texsrc</td><td>The texture source. </td></tr>
|
|
<tr><td class="paramname">texdest</td><td>The texture destination. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section author"><dt>Author</dt><dd>elisherer </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga7300940a38526ab5aa9be0f4abe4a32a" name="ga7300940a38526ab5aa9be0f4abe4a32a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga7300940a38526ab5aa9be0f4abe4a32a">◆ </a></span>GRRLIB_Camera3dSettings()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_Camera3dSettings </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posz</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>upx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>upy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>upz</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>lookx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>looky</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>lookz</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set the camera parameter (contributed by chris_c aka DaShAmAn). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">posx</td><td>x position of the camera. </td></tr>
|
|
<tr><td class="paramname">posy</td><td>y position of the camera. </td></tr>
|
|
<tr><td class="paramname">posz</td><td>z position of the camera. </td></tr>
|
|
<tr><td class="paramname">upx</td><td>x up position of the camera. </td></tr>
|
|
<tr><td class="paramname">upy</td><td>y up position of the camera. </td></tr>
|
|
<tr><td class="paramname">upz</td><td>z up position of the camera. </td></tr>
|
|
<tr><td class="paramname">lookx</td><td>x position of the target. </td></tr>
|
|
<tr><td class="paramname">looky</td><td>y position of the target. </td></tr>
|
|
<tr><td class="paramname">lookz</td><td>z position of the target. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga23a8ac948a2f606256f981ec7665f7a3" name="ga23a8ac948a2f606256f981ec7665f7a3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga23a8ac948a2f606256f981ec7665f7a3">◆ </a></span>GRRLIB_Circle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_Circle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>radius</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u8</td> <td class="paramname"><span class="paramname"><em>filled</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a circle. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>Specifies the x-coordinate of the circle. </td></tr>
|
|
<tr><td class="paramname">y</td><td>Specifies the y-coordinate of the circle. </td></tr>
|
|
<tr><td class="paramname">radius</td><td>The radius of the circle. </td></tr>
|
|
<tr><td class="paramname">color</td><td>The color of the circle in RGBA format. </td></tr>
|
|
<tr><td class="paramname">filled</td><td>Set to <code>true</code> to fill the circle. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gadf667fd892b2f24dfcfe1542e086630e" name="gadf667fd892b2f24dfcfe1542e086630e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gadf667fd892b2f24dfcfe1542e086630e">◆ </a></span>GRRLIB_ClearTex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_ClearTex </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Clear a texture to transparent black. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">tex</td><td>Texture to clear. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gac59a40807579d718a2c139245b599472" name="gac59a40807579d718a2c139245b599472"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac59a40807579d718a2c139245b599472">◆ </a></span>GRRLIB_ClipDrawing()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_ClipDrawing </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>width</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>height</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Clip the drawing area to an rectangle. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>The x-coordinate of the rectangle. </td></tr>
|
|
<tr><td class="paramname">y</td><td>The y-coordinate of the rectangle. </td></tr>
|
|
<tr><td class="paramname">width</td><td>The width of the rectangle. </td></tr>
|
|
<tr><td class="paramname">height</td><td>The height of the rectangle. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga0af29f5435a5cbdee720afb8c375ca71" name="ga0af29f5435a5cbdee720afb8c375ca71"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga0af29f5435a5cbdee720afb8c375ca71">◆ </a></span>GRRLIB_CompoEnd()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_CompoEnd </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u16</td> <td class="paramname"><span class="paramname"><em>posx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u16</td> <td class="paramname"><span class="paramname"><em>posy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>End GX compositing process (Make a snapshot of the screen in a texture WITH ALPHA LAYER). </p>
|
|
<p>EFB is cleared after this function. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="#gab46283be3128415bf0ab2969bf7fda95" title="Start GX compositing process.">GRRLIB_CompoStart</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">posx</td><td>Top left corner of the grabbed part. </td></tr>
|
|
<tr><td class="paramname">posy</td><td>Top left corner of the grabbed part. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>A pointer to a texture representing the screen. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gab46283be3128415bf0ab2969bf7fda95" name="gab46283be3128415bf0ab2969bf7fda95"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gab46283be3128415bf0ab2969bf7fda95">◆ </a></span>GRRLIB_CompoStart()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_CompoStart </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Start GX compositing process. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga0af29f5435a5cbdee720afb8c375ca71" title="End GX compositing process (Make a snapshot of the screen in a texture WITH ALPHA LAYER).">GRRLIB_CompoEnd</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga5ace4f7f4fae5016fe7c009b0e6331c9" name="ga5ace4f7f4fae5016fe7c009b0e6331c9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga5ace4f7f4fae5016fe7c009b0e6331c9">◆ </a></span>GRRLIB_CreateEmptyTexture()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * GRRLIB_CreateEmptyTexture </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>width</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>height</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Create an empty texture in GX_TF_RGBA8 format. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">width</td><td>Width of the new texture to create. </td></tr>
|
|
<tr><td class="paramname">height</td><td>Height of the new texture to create. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> structure newly created. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gade2d994a5f55dd91c8cd1268add6970a" name="gade2d994a5f55dd91c8cd1268add6970a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gade2d994a5f55dd91c8cd1268add6970a">◆ </a></span>GRRLIB_CreateEmptyTextureFmt()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * GRRLIB_CreateEmptyTextureFmt </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>width</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>height</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>format</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Create an empty texture with a given format. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">width</td><td>Width of the new texture to create. </td></tr>
|
|
<tr><td class="paramname">height</td><td>Height of the new texture to create. </td></tr>
|
|
<tr><td class="paramname">format</td><td>Format of the new texture to create. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> structure newly created. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga09c1572feadf21c46678b3a7bb0944e2" name="ga09c1572feadf21c46678b3a7bb0944e2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga09c1572feadf21c46678b3a7bb0944e2">◆ </a></span>GRRLIB_DrawCone()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawCone </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>r</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>h</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u16</td> <td class="paramname"><span class="paramname"><em>d</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>filled</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>col</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a cone (with normal). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">r</td><td>Radius of the cone. </td></tr>
|
|
<tr><td class="paramname">h</td><td>High of the cone. </td></tr>
|
|
<tr><td class="paramname">d</td><td>Density of slice. </td></tr>
|
|
<tr><td class="paramname">filled</td><td>Wired or not. </td></tr>
|
|
<tr><td class="paramname">col</td><td>Color of the cone. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gad029080b2bb31c61feb5af6b60e59ec2" name="gad029080b2bb31c61feb5af6b60e59ec2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gad029080b2bb31c61feb5af6b60e59ec2">◆ </a></span>GRRLIB_DrawCube()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawCube </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>size</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>filled</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>col</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a cube (with normal). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">size</td><td>Size of the cube edge. </td></tr>
|
|
<tr><td class="paramname">filled</td><td>Wired or not. </td></tr>
|
|
<tr><td class="paramname">col</td><td>Color of the cube. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gac6ecd421da6885c7ee3f1b41f36acad2" name="gac6ecd421da6885c7ee3f1b41f36acad2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac6ecd421da6885c7ee3f1b41f36acad2">◆ </a></span>GRRLIB_DrawCylinder()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawCylinder </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>r</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>h</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u16</td> <td class="paramname"><span class="paramname"><em>d</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>filled</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>col</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a cylinder (with normal). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">r</td><td>Radius of the cylinder. </td></tr>
|
|
<tr><td class="paramname">h</td><td>High of the cylinder. </td></tr>
|
|
<tr><td class="paramname">d</td><td>Density of slice. </td></tr>
|
|
<tr><td class="paramname">filled</td><td>Wired or not. </td></tr>
|
|
<tr><td class="paramname">col</td><td>Color of the cylinder. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gac93fa62dac7639bd2fe626aae5fef150" name="gac93fa62dac7639bd2fe626aae5fef150"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac93fa62dac7639bd2fe626aae5fef150">◆ </a></span>GRRLIB_DrawImg()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawImg </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>xpos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>ypos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>degrees</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>scaleX</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>scaleY</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a texture. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">xpos</td><td>Specifies the x-coordinate of the upper-left corner. </td></tr>
|
|
<tr><td class="paramname">ypos</td><td>Specifies the y-coordinate of the upper-left corner. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>The texture to draw. </td></tr>
|
|
<tr><td class="paramname">degrees</td><td>Angle of rotation. </td></tr>
|
|
<tr><td class="paramname">scaleX</td><td>Specifies the x-coordinate scale. -1 could be used for flipping the texture horizontally. </td></tr>
|
|
<tr><td class="paramname">scaleY</td><td>Specifies the y-coordinate scale. -1 could be used for flipping the texture vertically. </td></tr>
|
|
<tr><td class="paramname">color</td><td>Color in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga852b2b23d242d8cdd0a1cbcbe89d7317" name="ga852b2b23d242d8cdd0a1cbcbe89d7317"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga852b2b23d242d8cdd0a1cbcbe89d7317">◆ </a></span>GRRLIB_DrawImgQuad()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawImgQuad </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const guVector</td> <td class="paramname"><span class="paramname"><em>pos</em>[4], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a textured quad. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">pos</td><td>Vector array of the 4 points. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>The texture to draw. </td></tr>
|
|
<tr><td class="paramname">color</td><td>Color in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gabafe0b9297e020c440851543c028575e" name="gabafe0b9297e020c440851543c028575e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gabafe0b9297e020c440851543c028575e">◆ </a></span>GRRLIB_DrawPart()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawPart </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>xpos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>ypos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>partx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>party</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>partw</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>parth</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>degrees</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>scaleX</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>scaleY</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a part of a texture. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">xpos</td><td>Specifies the x-coordinate of the upper-left corner. </td></tr>
|
|
<tr><td class="paramname">ypos</td><td>Specifies the y-coordinate of the upper-left corner. </td></tr>
|
|
<tr><td class="paramname">partx</td><td>Specifies the x-coordinate of the upper-left corner in the texture. </td></tr>
|
|
<tr><td class="paramname">party</td><td>Specifies the y-coordinate of the upper-left corner in the texture. </td></tr>
|
|
<tr><td class="paramname">partw</td><td>Specifies the width in the texture. </td></tr>
|
|
<tr><td class="paramname">parth</td><td>Specifies the height in the texture. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>The texture containing the tile to draw. </td></tr>
|
|
<tr><td class="paramname">degrees</td><td>Angle of rotation. </td></tr>
|
|
<tr><td class="paramname">scaleX</td><td>Specifies the x-coordinate scale. -1 could be used for flipping the texture horizontally. </td></tr>
|
|
<tr><td class="paramname">scaleY</td><td>Specifies the y-coordinate scale. -1 could be used for flipping the texture vertically. </td></tr>
|
|
<tr><td class="paramname">color</td><td>Color in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaea4b4858892b197b94c0a2b331eb9c91" name="gaea4b4858892b197b94c0a2b331eb9c91"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaea4b4858892b197b94c0a2b331eb9c91">◆ </a></span>GRRLIB_DrawSphere()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawSphere </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>r</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>lats</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>longs</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>filled</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>col</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a sphere (with normal). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">r</td><td>Radius of the sphere. </td></tr>
|
|
<tr><td class="paramname">lats</td><td>Number of latitudes. </td></tr>
|
|
<tr><td class="paramname">longs</td><td>Number of longitudes. </td></tr>
|
|
<tr><td class="paramname">filled</td><td>Wired or not. </td></tr>
|
|
<tr><td class="paramname">col</td><td>Color of the sphere. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga654851a42dbdefae806f1793cf6a69d0" name="ga654851a42dbdefae806f1793cf6a69d0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga654851a42dbdefae806f1793cf6a69d0">◆ </a></span>GRRLIB_DrawTessPanel()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawTessPanel </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>w</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>wstep</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>h</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>hstep</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>filled</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>col</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a Tesselated panel (with normal). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">w</td><td>Width of the panel. </td></tr>
|
|
<tr><td class="paramname">wstep</td><td>Size of width slices. </td></tr>
|
|
<tr><td class="paramname">h</td><td>Height of the panel. </td></tr>
|
|
<tr><td class="paramname">hstep</td><td>Size the de height slices. </td></tr>
|
|
<tr><td class="paramname">filled</td><td>Wired or not. </td></tr>
|
|
<tr><td class="paramname">col</td><td>Color in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga8225b76416869d90c10ff90e9f2215d2" name="ga8225b76416869d90c10ff90e9f2215d2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga8225b76416869d90c10ff90e9f2215d2">◆ </a></span>GRRLIB_DrawTile()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawTile </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>xpos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>ypos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>degrees</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>scaleX</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>scaleY</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>frame</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a tile. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">xpos</td><td>Specifies the x-coordinate of the upper-left corner. </td></tr>
|
|
<tr><td class="paramname">ypos</td><td>Specifies the y-coordinate of the upper-left corner. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>The texture containing the tile to draw. </td></tr>
|
|
<tr><td class="paramname">degrees</td><td>Angle of rotation. </td></tr>
|
|
<tr><td class="paramname">scaleX</td><td>Specifies the x-coordinate scale. -1 could be used for flipping the texture horizontally. </td></tr>
|
|
<tr><td class="paramname">scaleY</td><td>Specifies the y-coordinate scale. -1 could be used for flipping the texture vertically. </td></tr>
|
|
<tr><td class="paramname">color</td><td>Color in RGBA format. </td></tr>
|
|
<tr><td class="paramname">frame</td><td>Specifies the frame to draw. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaeb7bef5310d7a764278d3f91810de701" name="gaeb7bef5310d7a764278d3f91810de701"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaeb7bef5310d7a764278d3f91810de701">◆ </a></span>GRRLIB_DrawTileQuad()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawTileQuad </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const guVector</td> <td class="paramname"><span class="paramname"><em>pos</em>[4], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>frame</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a tile in a quad. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">pos</td><td>Vector array of the 4 points. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>The texture to draw. </td></tr>
|
|
<tr><td class="paramname">color</td><td>Color in RGBA format. </td></tr>
|
|
<tr><td class="paramname">frame</td><td>Specifies the frame to draw. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga6410ce395aeab56d3166a45724cb6a32" name="ga6410ce395aeab56d3166a45724cb6a32"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga6410ce395aeab56d3166a45724cb6a32">◆ </a></span>GRRLIB_DrawTorus()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_DrawTorus </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>r</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>R</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>nsides</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>rings</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>filled</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>col</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a torus (with normal). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">r</td><td>Radius of the ring. </td></tr>
|
|
<tr><td class="paramname">R</td><td>Radius of the torus. </td></tr>
|
|
<tr><td class="paramname">nsides</td><td>Number of faces per ring. </td></tr>
|
|
<tr><td class="paramname">rings</td><td>Number of rings. </td></tr>
|
|
<tr><td class="paramname">filled</td><td>Wired or not. </td></tr>
|
|
<tr><td class="paramname">col</td><td>Color of the torus. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga6bef7c5bd9550225b7ee0cc3da207738" name="ga6bef7c5bd9550225b7ee0cc3da207738"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga6bef7c5bd9550225b7ee0cc3da207738">◆ </a></span>GRRLIB_Ellipse()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_Ellipse </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>radiusX</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>radiusY</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u8</td> <td class="paramname"><span class="paramname"><em>filled</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw an ellipse. </p>
|
|
<dl class="section author"><dt>Author</dt><dd>Dark_Link </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>Specifies the x-coordinate of the ellipse. </td></tr>
|
|
<tr><td class="paramname">y</td><td>Specifies the y-coordinate of the ellipse. </td></tr>
|
|
<tr><td class="paramname">radiusX</td><td>The X radius of the ellipse. </td></tr>
|
|
<tr><td class="paramname">radiusY</td><td>The Y radius of the ellipse. </td></tr>
|
|
<tr><td class="paramname">color</td><td>The color of the ellipse in RGBA format. </td></tr>
|
|
<tr><td class="paramname">filled</td><td>Set to <code>true</code> to fill the ellipse. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga15b1f7d9224e25e77d2806847344f651" name="ga15b1f7d9224e25e77d2806847344f651"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga15b1f7d9224e25e77d2806847344f651">◆ </a></span>GRRLIB_Exit()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_Exit </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Call this before exiting your application. </p>
|
|
<p>Ensure this function is only ever called once and only if the setup function has been called. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaa4334df3b160f01ae4cf49c616fe0949" name="gaa4334df3b160f01ae4cf49c616fe0949"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaa4334df3b160f01ae4cf49c616fe0949">◆ </a></span>GRRLIB_FillScreen()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_FillScreen </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Clear screen with a specific color. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">color</td><td>The color to use to fill the screen. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga5e6a52737806ffb075cc8be7724f3fdd" name="ga5e6a52737806ffb075cc8be7724f3fdd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga5e6a52737806ffb075cc8be7724f3fdd">◆ </a></span>GRRLIB_FlushTex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_FlushTex </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Write the contents of a texture in the data cache down to main memory. </p>
|
|
<p>For performance the CPU holds a data cache where modifications are stored before they get written down to main memory. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">tex</td><td>The texture to flush. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga092169c6cbff1f1713f66fffff3dd8a2" name="ga092169c6cbff1f1713f66fffff3dd8a2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga092169c6cbff1f1713f66fffff3dd8a2">◆ </a></span>GRRLIB_FreeBMF()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_FreeBMF </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__bytemap_font.html">GRRLIB_bytemapFont</a> *</td> <td class="paramname"><span class="paramname"><em>bmf</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Free memory allocated by ByteMap fonts. </p>
|
|
<p>If <em>bmf</em> is a null pointer, the function does nothing. </p><dl class="section note"><dt>Note</dt><dd>This function does not change the value of <em>bmf</em> itself, hence it still points to the same (now invalid) location. </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">bmf</td><td>A <a class="el" href="struct_g_r_r_l_i_b__bytemap_font.html" title="Structure to hold the bytemap font information.">GRRLIB_bytemapFont</a> structure. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga57309da8aaeefe4092eda55cf38a9c7f" name="ga57309da8aaeefe4092eda55cf38a9c7f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga57309da8aaeefe4092eda55cf38a9c7f">◆ </a></span>GRRLIB_FreeTexture()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_FreeTexture </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Free memory allocated for texture. </p>
|
|
<p>If <em>tex</em> is a null pointer, the function does nothing. </p><dl class="section note"><dt>Note</dt><dd>This function does not change the value of <em>tex</em> itself, hence it still points to the same (now invalid) location. </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">tex</td><td>A <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> structure. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga977ef3ec2aaa49cae6c7492066e35640" name="ga977ef3ec2aaa49cae6c7492066e35640"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga977ef3ec2aaa49cae6c7492066e35640">◆ </a></span>GRRLIB_FreeTTF()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_FreeTTF </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *</td> <td class="paramname"><span class="paramname"><em>myFont</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Free memory allocated by TTF fonts. </p>
|
|
<p>If <em>myFont</em> is a null pointer, the function does nothing. </p><dl class="section note"><dt>Note</dt><dd>This function does not change the value of <em>myFont</em> itself, hence it still points to the same (now invalid) location. </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">myFont</td><td>A TTF. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga1895b209f1c873575c22b4a5e33c8ced" name="ga1895b209f1c873575c22b4a5e33c8ced"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga1895b209f1c873575c22b4a5e33c8ced">◆ </a></span>GRRLIB_GeckoInit()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool GRRLIB_GeckoInit </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Initialize USB Gecko. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns <code>true</code> if everything worked, <code>false</code> if problems occurred. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaa82c6313b26687aaea494b91d77dc140" name="gaa82c6313b26687aaea494b91d77dc140"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaa82c6313b26687aaea494b91d77dc140">◆ </a></span>GRRLIB_GeckoPrintf()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_GeckoPrintf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>text</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"></td> <td class="paramname"><span class="paramname"><em>...</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Print Gecko. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">text</td><td>Text to print. </td></tr>
|
|
<tr><td class="paramname">...</td><td>Optional arguments. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gac63e5050865fd77b0e72d950ffd033e0" name="gac63e5050865fd77b0e72d950ffd033e0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac63e5050865fd77b0e72d950ffd033e0">◆ </a></span>GRRLIB_GetAntiAliasing()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE bool GRRLIB_GetAntiAliasing </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get current anti-aliasing setting. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns <code>true</code> if anti-aliasing is enabled. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga2a1ef7de190db2f090526ef0cc5dee30" name="ga2a1ef7de190db2f090526ef0cc5dee30"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga2a1ef7de190db2f090526ef0cc5dee30">◆ </a></span>GRRLIB_GetBlend()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE <a class="el" href="#ga84c65877bb197763cda6669c473be692">GRRLIB_blendMode</a> GRRLIB_GetBlend </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the current blending mode. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>The current blending mode. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga454dafae2dfd9829789aa73810163858" name="ga454dafae2dfd9829789aa73810163858"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga454dafae2dfd9829789aa73810163858">◆ </a></span>GRRLIB_GetPixelFromFB()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE u32 GRRLIB_GetPixelFromFB </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>y</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Reads a pixel directly from the FrontBuffer. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>The x-coordinate within the FB. </td></tr>
|
|
<tr><td class="paramname">y</td><td>The y-coordinate within the FB. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>The color of a pixel in RGBA format. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaf0efaaeacbc18ff40d02dfe8104def56" name="gaf0efaaeacbc18ff40d02dfe8104def56"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaf0efaaeacbc18ff40d02dfe8104def56">◆ </a></span>GRRLIB_GetPixelFromtexImg()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE u32 GRRLIB_GetPixelFromtexImg </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Return the color value of a pixel from a <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a>. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>Specifies the x-coordinate of the pixel in the texture. </td></tr>
|
|
<tr><td class="paramname">y</td><td>Specifies the y-coordinate of the pixel in the texture. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>The texture to get the color from. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>The color of a pixel in RGBA format. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga5aad414db04673ea5142519600856419" name="ga5aad414db04673ea5142519600856419"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga5aad414db04673ea5142519600856419">◆ </a></span>GRRLIB_GXEngine()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_GXEngine </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const guVector</td> <td class="paramname"><span class="paramname"><em>v</em>[], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>[], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u16</td> <td class="paramname"><span class="paramname"><em>n</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u8</td> <td class="paramname"><span class="paramname"><em>fmt</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draws a vector. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">v</td><td>The vector to draw. </td></tr>
|
|
<tr><td class="paramname">color</td><td>The color of the vector in RGBA format. </td></tr>
|
|
<tr><td class="paramname">n</td><td>Number of points in the vector. The maximum is 65536. </td></tr>
|
|
<tr><td class="paramname">fmt</td><td>Type of primitive. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gad3186c7e10e4e6c46a743e062971e89a" name="gad3186c7e10e4e6c46a743e062971e89a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gad3186c7e10e4e6c46a743e062971e89a">◆ </a></span>GRRLIB_Init()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int GRRLIB_Init </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Initialize GRRLIB. </p>
|
|
<p>Call this once at the beginning your code. </p><dl class="section return"><dt>Returns</dt><dd>A integer representing a code:<ul>
|
|
<li>0 : The operation completed successfully.</li>
|
|
<li>-1 : Not enough memory is available to initialize GRRLIB.</li>
|
|
<li>-2 : Failed to add the fat device driver to the devoptab.</li>
|
|
<li>-3 : Failed to initialize the font engine. </li>
|
|
</ul>
|
|
</dd></dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga15b1f7d9224e25e77d2806847344f651" title="Call this before exiting your application.">GRRLIB_Exit</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga9a25f472b099163469251ec7ad52d270" name="ga9a25f472b099163469251ec7ad52d270"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga9a25f472b099163469251ec7ad52d270">◆ </a></span>GRRLIB_InitTileSet()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_InitTileSet </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>tilew</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>tileh</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>tilestart</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Initialize a tile set. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">tex</td><td>The texture to initialize. </td></tr>
|
|
<tr><td class="paramname">tilew</td><td>Width of the tile. </td></tr>
|
|
<tr><td class="paramname">tileh</td><td>Height of the tile. </td></tr>
|
|
<tr><td class="paramname">tilestart</td><td>Offset for starting position (Used in fonts). </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga6b0172d719954b1d876138d3e71b188c" name="ga6b0172d719954b1d876138d3e71b188c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga6b0172d719954b1d876138d3e71b188c">◆ </a></span>GRRLIB_Line()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_Line </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>x1</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>y1</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>x2</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>y2</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a line. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x1</td><td>Starting point for line for the x coordinate. </td></tr>
|
|
<tr><td class="paramname">y1</td><td>Starting point for line for the y coordinate. </td></tr>
|
|
<tr><td class="paramname">x2</td><td>Ending point for line for the x coordinate. </td></tr>
|
|
<tr><td class="paramname">y2</td><td>Ending point for line for the x coordinate. </td></tr>
|
|
<tr><td class="paramname">color</td><td>Line color in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section author"><dt>Author</dt><dd>JESPA </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gab2bdca506ed98e85f6543137738a1aa2" name="gab2bdca506ed98e85f6543137738a1aa2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gab2bdca506ed98e85f6543137738a1aa2">◆ </a></span>GRRLIB_LoadBMF()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_g_r_r_l_i_b__bytemap_font.html">GRRLIB_bytemapFont</a> * GRRLIB_LoadBMF </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u8</td> <td class="paramname"><span class="paramname"><em>my_bmf</em>[]</span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a ByteMap font structure from a buffer. </p>
|
|
<p>File format version 1.1 is used, more information could be found at <a href="https://bmf.php5.cz/?page=format">https://bmf.php5.cz/?page=format</a> </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">my_bmf</td><td>The ByteMap font buffer to load. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_g_r_r_l_i_b__bytemap_font.html" title="Structure to hold the bytemap font information.">GRRLIB_bytemapFont</a> structure filled with BMF information. </dd></dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga092169c6cbff1f1713f66fffff3dd8a2" title="Free memory allocated by ByteMap fonts.">GRRLIB_FreeBMF</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gad0e9150a261df8642375ce0b51e891dc" name="gad0e9150a261df8642375ce0b51e891dc"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gad0e9150a261df8642375ce0b51e891dc">◆ </a></span>GRRLIB_LoadFile()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int GRRLIB_LoadFile </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>filename</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 **</td> <td class="paramname"><span class="paramname"><em>data</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a file to memory. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">filename</td><td>Name of the file to be loaded. </td></tr>
|
|
<tr><td class="paramname">data</td><td>Pointer-to-your-pointer. Ie. { u8 *data; GRRLIB_LoadFile("file", &data); }. It is your responsibility to free the memory allocated by this function. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A integer representing a code:<ul>
|
|
<li>0 : EmptyFile.</li>
|
|
<li>-1 : FileNotFound.</li>
|
|
<li>-2 : OutOfMemory.</li>
|
|
<li>-3 : FileReadError.</li>
|
|
<li>>0 : FileLength. </li>
|
|
</ul>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga3bcf05b86d1d2345eef642fd6eb9912d" name="ga3bcf05b86d1d2345eef642fd6eb9912d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga3bcf05b86d1d2345eef642fd6eb9912d">◆ </a></span>GRRLIB_LoadTexture()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * GRRLIB_LoadTexture </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u8 *</td> <td class="paramname"><span class="paramname"><em>my_img</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a texture from a buffer. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">my_img</td><td>The JPEG, PNG or Bitmap buffer to load. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> structure filled with image information. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaac10127eaaf08e2668b25d34e9077d24" name="gaac10127eaaf08e2668b25d34e9077d24"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaac10127eaaf08e2668b25d34e9077d24">◆ </a></span>GRRLIB_LoadTextureBMP()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * GRRLIB_LoadTextureBMP </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u8 *</td> <td class="paramname"><span class="paramname"><em>my_bmp</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a texture from a buffer. </p>
|
|
<p>It only works for the MS-Windows standard format uncompressed (1-bit, 4-bit, 8-bit, 24-bit and 32-bit). </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">my_bmp</td><td>The Bitmap buffer to load. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> structure filled with image information. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga30161fbcf1c4c3538faf923742562f8d" name="ga30161fbcf1c4c3538faf923742562f8d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga30161fbcf1c4c3538faf923742562f8d">◆ </a></span>GRRLIB_LoadTextureFromFile()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * GRRLIB_LoadTextureFromFile </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>filename</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a texture from a file. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">filename</td><td>The JPEG, PNG or Bitmap filename to load. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> structure filled with image information. If an error occurs NULL will be returned. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga0ae563450041c8a09e3121ba39fba777" name="ga0ae563450041c8a09e3121ba39fba777"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga0ae563450041c8a09e3121ba39fba777">◆ </a></span>GRRLIB_LoadTextureJPG()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * GRRLIB_LoadTextureJPG </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u8 *</td> <td class="paramname"><span class="paramname"><em>my_jpg</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a texture from a buffer. </p>
|
|
<p>Take care to have the JPG finish with 0xFF 0xD9! </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">my_jpg</td><td>The JPEG buffer to load. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> structure filled with image information. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga2bcf92846d3a47066e4303c889a5c784" name="ga2bcf92846d3a47066e4303c889a5c784"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga2bcf92846d3a47066e4303c889a5c784">◆ </a></span>GRRLIB_LoadTextureJPGEx()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * GRRLIB_LoadTextureJPGEx </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u8 *</td> <td class="paramname"><span class="paramname"><em>my_jpg</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>my_size</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a texture from a buffer. </p>
|
|
<dl class="section author"><dt>Author</dt><dd>DrTwox </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">my_jpg</td><td>The JPEG buffer to load. </td></tr>
|
|
<tr><td class="paramname">my_size</td><td>Size of the JPEG buffer to load. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> structure filled with image information. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gae95b019b590751cdc6bc64c823ca84e0" name="gae95b019b590751cdc6bc64c823ca84e0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gae95b019b590751cdc6bc64c823ca84e0">◆ </a></span>GRRLIB_LoadTexturePNG()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> * GRRLIB_LoadTexturePNG </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u8 *</td> <td class="paramname"><span class="paramname"><em>my_png</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a texture from a buffer. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">my_png</td><td>the PNG buffer to load. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> structure filled with image information. If image size is not correct, the texture will be completely transparent. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gac5989e925eceea3da6a44a90ac431dd7" name="gac5989e925eceea3da6a44a90ac431dd7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac5989e925eceea3da6a44a90ac431dd7">◆ </a></span>GRRLIB_LoadTTF()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> * GRRLIB_LoadTTF </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const u8 *</td> <td class="paramname"><span class="paramname"><em>file_base</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">s32</td> <td class="paramname"><span class="paramname"><em>file_size</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a TTF from a buffer. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">file_base</td><td>Buffer with TTF data. You must not deallocate the memory before calling GRRLIB_FreeTTF. </td></tr>
|
|
<tr><td class="paramname">file_size</td><td>Size of the TTF buffer. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A handle to a given TTF font object or NULL if it fails to load the font. </dd></dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga977ef3ec2aaa49cae6c7492066e35640" title="Free memory allocated by TTF fonts.">GRRLIB_FreeTTF</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga402b52f044c46e147e32cc1da4153829" name="ga402b52f044c46e147e32cc1da4153829"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga402b52f044c46e147e32cc1da4153829">◆ </a></span>GRRLIB_LoadTTFFromFile()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> * GRRLIB_LoadTTFFromFile </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>filename</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Load a TTF from a file. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">filename</td><td>The TTF filename to load. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>A GRRLIB_ttfFont structure filled with font information. If an error occurs NULL will be returned. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaaaad869c6b2cd0ac502b8ab261fe34e9" name="gaaaad869c6b2cd0ac502b8ab261fe34e9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaaaad869c6b2cd0ac502b8ab261fe34e9">◆ </a></span>GRRLIB_NGone()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_NGone </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const guVector</td> <td class="paramname"><span class="paramname"><em>v</em>[], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>[], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u16</td> <td class="paramname"><span class="paramname"><em>n</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a polygon. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">v</td><td>The vector containing the coordinates of the polygon. </td></tr>
|
|
<tr><td class="paramname">color</td><td>The color of the filled polygon in RGBA format. </td></tr>
|
|
<tr><td class="paramname">n</td><td>Number of points in the vector. The maximum is 65536. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gab848be8b56929c0706da29fe66549ff0" name="gab848be8b56929c0706da29fe66549ff0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gab848be8b56929c0706da29fe66549ff0">◆ </a></span>GRRLIB_NGoneFilled()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_NGoneFilled </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const guVector</td> <td class="paramname"><span class="paramname"><em>v</em>[], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>[], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u16</td> <td class="paramname"><span class="paramname"><em>n</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a filled polygon. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">v</td><td>The vector containing the coordinates of the polygon. </td></tr>
|
|
<tr><td class="paramname">color</td><td>The color of the filled polygon in RGBA format. </td></tr>
|
|
<tr><td class="paramname">n</td><td>Number of points in the vector. The maximum is 65536. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaad6d71991d8257d06591bdee6fe600f5" name="gaad6d71991d8257d06591bdee6fe600f5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaad6d71991d8257d06591bdee6fe600f5">◆ </a></span>GRRLIB_NPlot()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_NPlot </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const guVector</td> <td class="paramname"><span class="paramname"><em>v</em>[], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>[], </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u16</td> <td class="paramname"><span class="paramname"><em>n</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw an array of points. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">v</td><td>Array containing the points. </td></tr>
|
|
<tr><td class="paramname">color</td><td>The color of the points in RGBA format. </td></tr>
|
|
<tr><td class="paramname">n</td><td>Number of points in the vector array. The maximum is 65536. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gac02a14d2556b5ec92e28f41c9888b530" name="gac02a14d2556b5ec92e28f41c9888b530"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac02a14d2556b5ec92e28f41c9888b530">◆ </a></span>GRRLIB_ObjectView()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_ObjectView </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posz</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angz</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>scalx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>scaly</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>scalz</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set the view matrix to draw object (in this order scale, rotate AND trans). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">posx</td><td>x position of the object. </td></tr>
|
|
<tr><td class="paramname">posy</td><td>y position of the object. </td></tr>
|
|
<tr><td class="paramname">posz</td><td>z position of the object. </td></tr>
|
|
<tr><td class="paramname">angx</td><td>x rotation angle of the object. </td></tr>
|
|
<tr><td class="paramname">angy</td><td>y rotation angle of the object. </td></tr>
|
|
<tr><td class="paramname">angz</td><td>z rotation angle of the object. </td></tr>
|
|
<tr><td class="paramname">scalx</td><td>x scale of the object. </td></tr>
|
|
<tr><td class="paramname">scaly</td><td>y scale of the object. </td></tr>
|
|
<tr><td class="paramname">scalz</td><td>z scale of the object. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga03814286ada96c4a38fa36b9477bbd7c" name="ga03814286ada96c4a38fa36b9477bbd7c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga03814286ada96c4a38fa36b9477bbd7c">◆ </a></span>GRRLIB_ObjectViewInv()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_ObjectViewInv </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posz</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angz</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>scalx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>scaly</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>scalz</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set the view matrix to draw object (in this order scale, trans AND rotate). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">posx</td><td>x position of the object. </td></tr>
|
|
<tr><td class="paramname">posy</td><td>y position of the object. </td></tr>
|
|
<tr><td class="paramname">posz</td><td>z position of the object. </td></tr>
|
|
<tr><td class="paramname">angx</td><td>x rotation angle of the object. </td></tr>
|
|
<tr><td class="paramname">angy</td><td>y rotation angle of the object. </td></tr>
|
|
<tr><td class="paramname">angz</td><td>z rotation angle of the object. </td></tr>
|
|
<tr><td class="paramname">scalx</td><td>x scale of the object. </td></tr>
|
|
<tr><td class="paramname">scaly</td><td>y scale of the object. </td></tr>
|
|
<tr><td class="paramname">scalz</td><td>z scale of the object. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga50ff0217cfeb128711fb1f3db3df4c8d" name="ga50ff0217cfeb128711fb1f3db3df4c8d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga50ff0217cfeb128711fb1f3db3df4c8d">◆ </a></span>GRRLIB_ObjectViewRotate()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_ObjectViewRotate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angz</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Rotate the object matrix to draw object. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">angx</td><td>x rotation angle of the object. </td></tr>
|
|
<tr><td class="paramname">angy</td><td>y rotation angle of the object. </td></tr>
|
|
<tr><td class="paramname">angz</td><td>z rotation angle of the object. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga8e03d189c20637432df8dbf7d8c6948a" name="ga8e03d189c20637432df8dbf7d8c6948a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga8e03d189c20637432df8dbf7d8c6948a">◆ </a></span>GRRLIB_ObjectViewScale()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_ObjectViewScale </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>scalx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>scaly</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>scalz</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Scale the object matrix to draw object. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">scalx</td><td>x scale of the object. </td></tr>
|
|
<tr><td class="paramname">scaly</td><td>y scale of the object. </td></tr>
|
|
<tr><td class="paramname">scalz</td><td>z scale of the object. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga6991c87a4e1eff876be3733caa9b5947" name="ga6991c87a4e1eff876be3733caa9b5947"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga6991c87a4e1eff876be3733caa9b5947">◆ </a></span>GRRLIB_ObjectViewTrans()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_ObjectViewTrans </td>
|
|
<td>(</td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>posz</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Translate the object matrix to draw object. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">posx</td><td>x position of the object. </td></tr>
|
|
<tr><td class="paramname">posy</td><td>y position of the object. </td></tr>
|
|
<tr><td class="paramname">posz</td><td>z position of the object. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga3d9c6c2d1661d8cbe149b27ad5f6e288" name="ga3d9c6c2d1661d8cbe149b27ad5f6e288"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga3d9c6c2d1661d8cbe149b27ad5f6e288">◆ </a></span>GRRLIB_Plot()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_Plot </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a dot. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>Specifies the x-coordinate of the dot. </td></tr>
|
|
<tr><td class="paramname">y</td><td>Specifies the y-coordinate of the dot. </td></tr>
|
|
<tr><td class="paramname">color</td><td>The color of the dot in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section author"><dt>Author</dt><dd>Jespa </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gabc7a3deff6baf1923bbde413c036ef96" name="gabc7a3deff6baf1923bbde413c036ef96"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gabc7a3deff6baf1923bbde413c036ef96">◆ </a></span>GRRLIB_PrintBMF()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_PrintBMF </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>xpos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>ypos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__bytemap_font.html">GRRLIB_bytemapFont</a> *</td> <td class="paramname"><span class="paramname"><em>bmf</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>text</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"></td> <td class="paramname"><span class="paramname"><em>...</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Print formatted output with a ByteMap font. </p>
|
|
<p>This function could be slow, it should be used with GRRLIB_CompoStart and GRRLIB_CompoEnd. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">xpos</td><td>Specifies the x-coordinate of the upper-left corner of the text. </td></tr>
|
|
<tr><td class="paramname">ypos</td><td>Specifies the y-coordinate of the upper-left corner of the text. </td></tr>
|
|
<tr><td class="paramname">bmf</td><td>The ByteMap font to use. </td></tr>
|
|
<tr><td class="paramname">text</td><td>Text to draw. </td></tr>
|
|
<tr><td class="paramname">...</td><td>Optional arguments. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga5539140382d9563e4e42dbda1694d21d" name="ga5539140382d9563e4e42dbda1694d21d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga5539140382d9563e4e42dbda1694d21d">◆ </a></span>GRRLIB_Printf()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_Printf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>xpos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>ypos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>zoom</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>text</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"></td> <td class="paramname"><span class="paramname"><em>...</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Print formatted output. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">xpos</td><td>Specifies the x-coordinate of the upper-left corner of the text. </td></tr>
|
|
<tr><td class="paramname">ypos</td><td>Specifies the y-coordinate of the upper-left corner of the text. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>The texture containing the character set. </td></tr>
|
|
<tr><td class="paramname">color</td><td>Text color in RGBA format. The alpha channel is used to change the opacity of the text. </td></tr>
|
|
<tr><td class="paramname">zoom</td><td>This is a factor by which the text size will be increase or decrease. </td></tr>
|
|
<tr><td class="paramname">text</td><td>Text to draw. </td></tr>
|
|
<tr><td class="paramname">...</td><td>Optional arguments. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga358e206bb75caac5bf850bd6f8f17d2a" name="ga358e206bb75caac5bf850bd6f8f17d2a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga358e206bb75caac5bf850bd6f8f17d2a">◆ </a></span>GRRLIB_PrintfTTF()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_PrintfTTF </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *</td> <td class="paramname"><span class="paramname"><em>myFont</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>string</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned int</td> <td class="paramname"><span class="paramname"><em>fontSize</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Print function for TTF font. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>Specifies the x-coordinate of the upper-left corner of the text. </td></tr>
|
|
<tr><td class="paramname">y</td><td>Specifies the y-coordinate of the upper-left corner of the text. </td></tr>
|
|
<tr><td class="paramname">myFont</td><td>A TTF. </td></tr>
|
|
<tr><td class="paramname">string</td><td>Text to draw. </td></tr>
|
|
<tr><td class="paramname">fontSize</td><td>Size of the font. </td></tr>
|
|
<tr><td class="paramname">color</td><td>Text color in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaba31ba538f5ee4f1abf0fb604a34d45b" name="gaba31ba538f5ee4f1abf0fb604a34d45b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaba31ba538f5ee4f1abf0fb604a34d45b">◆ </a></span>GRRLIB_PrintfTTFW()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_PrintfTTFW </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *</td> <td class="paramname"><span class="paramname"><em>myFont</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const wchar_t *</td> <td class="paramname"><span class="paramname"><em>utf32</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned int</td> <td class="paramname"><span class="paramname"><em>fontSize</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Print function for TTF font. </p>
|
|
<dl class="section author"><dt>Author</dt><dd>wplaat and DrTwox </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>Specifies the x-coordinate of the upper-left corner of the text. </td></tr>
|
|
<tr><td class="paramname">y</td><td>Specifies the y-coordinate of the upper-left corner of the text. </td></tr>
|
|
<tr><td class="paramname">myFont</td><td>A TTF. </td></tr>
|
|
<tr><td class="paramname">utf32</td><td>Text to draw. </td></tr>
|
|
<tr><td class="paramname">fontSize</td><td>Size of the font. </td></tr>
|
|
<tr><td class="paramname">color</td><td>Text color in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaa0e1bd3df799dc1ee46067f7ce3ca8c7" name="gaa0e1bd3df799dc1ee46067f7ce3ca8c7"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaa0e1bd3df799dc1ee46067f7ce3ca8c7">◆ </a></span>GRRLIB_PtInRect()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE bool GRRLIB_PtInRect </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>hotx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>hoty</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>hotw</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>hoth</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>wpadx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>wpady</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Determine whether the specified point lies within the specified rectangle. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">hotx</td><td>Specifies the x-coordinate of the upper-left corner of the rectangle. </td></tr>
|
|
<tr><td class="paramname">hoty</td><td>Specifies the y-coordinate of the upper-left corner of the rectangle. </td></tr>
|
|
<tr><td class="paramname">hotw</td><td>The width of the rectangle. </td></tr>
|
|
<tr><td class="paramname">hoth</td><td>The height of the rectangle. </td></tr>
|
|
<tr><td class="paramname">wpadx</td><td>Specifies the x-coordinate of the point. </td></tr>
|
|
<tr><td class="paramname">wpady</td><td>Specifies the y-coordinate of the point. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>If the specified point lies within the rectangle, the return value is <code>true</code> otherwise it's <code>false</code>. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga4d8e2d39ff349f77b0400431f35e55c3" name="ga4d8e2d39ff349f77b0400431f35e55c3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga4d8e2d39ff349f77b0400431f35e55c3">◆ </a></span>GRRLIB_Rectangle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_Rectangle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>width</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const f32</td> <td class="paramname"><span class="paramname"><em>height</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const bool</td> <td class="paramname"><span class="paramname"><em>filled</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Draw a rectangle. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>Specifies the x-coordinate of the upper-left corner of the rectangle. </td></tr>
|
|
<tr><td class="paramname">y</td><td>Specifies the y-coordinate of the upper-left corner of the rectangle. </td></tr>
|
|
<tr><td class="paramname">width</td><td>The width of the rectangle. </td></tr>
|
|
<tr><td class="paramname">height</td><td>The height of the rectangle. </td></tr>
|
|
<tr><td class="paramname">color</td><td>The color of the rectangle in RGBA format. </td></tr>
|
|
<tr><td class="paramname">filled</td><td>Set to <code>true</code> to fill the rectangle. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaaaf388fab79085829b2cc886f18a138f" name="gaaaf388fab79085829b2cc886f18a138f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaaaf388fab79085829b2cc886f18a138f">◆ </a></span>GRRLIB_RectInRect()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE bool GRRLIB_RectInRect </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect1x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect1y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect1w</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect1h</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect2x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect2y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect2w</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect2h</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Determine whether a specified rectangle lies within another rectangle. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">rect1x</td><td>Specifies the x-coordinate of the upper-left corner of the rectangle. </td></tr>
|
|
<tr><td class="paramname">rect1y</td><td>Specifies the y-coordinate of the upper-left corner of the rectangle. </td></tr>
|
|
<tr><td class="paramname">rect1w</td><td>Specifies the width of the rectangle. </td></tr>
|
|
<tr><td class="paramname">rect1h</td><td>Specifies the height of the rectangle. </td></tr>
|
|
<tr><td class="paramname">rect2x</td><td>Specifies the x-coordinate of the upper-left corner of the rectangle. </td></tr>
|
|
<tr><td class="paramname">rect2y</td><td>Specifies the y-coordinate of the upper-left corner of the rectangle. </td></tr>
|
|
<tr><td class="paramname">rect2w</td><td>Specifies the width of the rectangle. </td></tr>
|
|
<tr><td class="paramname">rect2h</td><td>Specifies the height of the rectangle. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>If the specified rectangle lies within the other rectangle, the return value is <code>true</code> otherwise it's <code>false</code>. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga87b9fd5a8ec33cce9b23a243ccda824d" name="ga87b9fd5a8ec33cce9b23a243ccda824d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga87b9fd5a8ec33cce9b23a243ccda824d">◆ </a></span>GRRLIB_RectOnRect()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE bool GRRLIB_RectOnRect </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect1x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect1y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect1w</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect1h</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect2x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect2y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect2w</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>rect2h</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Determine whether a part of a specified rectangle lies on another rectangle. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">rect1x</td><td>Specifies the x-coordinate of the upper-left corner of the first rectangle. </td></tr>
|
|
<tr><td class="paramname">rect1y</td><td>Specifies the y-coordinate of the upper-left corner of the first rectangle. </td></tr>
|
|
<tr><td class="paramname">rect1w</td><td>Specifies the width of the first rectangle. </td></tr>
|
|
<tr><td class="paramname">rect1h</td><td>Specifies the height of the first rectangle. </td></tr>
|
|
<tr><td class="paramname">rect2x</td><td>Specifies the x-coordinate of the upper-left corner of the second rectangle. </td></tr>
|
|
<tr><td class="paramname">rect2y</td><td>Specifies the y-coordinate of the upper-left corner of the second rectangle. </td></tr>
|
|
<tr><td class="paramname">rect2w</td><td>Specifies the width of the second rectangle. </td></tr>
|
|
<tr><td class="paramname">rect2h</td><td>Specifies the height of the second rectangle. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>If the specified rectangle lies on the other rectangle, the return value is <code>true</code> otherwise it's <code>false</code>. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga2679d0fa70341fa428857a776b9db970" name="ga2679d0fa70341fa428857a776b9db970"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga2679d0fa70341fa428857a776b9db970">◆ </a></span>GRRLIB_Screen2Texture()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_Screen2Texture </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u16</td> <td class="paramname"><span class="paramname"><em>posx</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u16</td> <td class="paramname"><span class="paramname"><em>posy</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>clear</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Make a snapshot of the screen in a texture WITHOUT ALPHA LAYER. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">posx</td><td>Top left corner of the grabbed part. </td></tr>
|
|
<tr><td class="paramname">posy</td><td>Top left corner of the grabbed part. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>A pointer to a texture representing the screen. </td></tr>
|
|
<tr><td class="paramname">clear</td><td>When this flag is set to <code>true</code>, the screen is cleared after copy. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga3460233a6d9323890a8eefa19f520e25" name="ga3460233a6d9323890a8eefa19f520e25"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga3460233a6d9323890a8eefa19f520e25">◆ </a></span>GRRLIB_ScrShot()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool GRRLIB_ScrShot </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>filename</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Make a PNG screenshot. </p>
|
|
<p>It should be called after drawing stuff on the screen, but before <a class="el" href="#ga9840a19154f1e0cf9de14ad81ba23aef" title="Call this function after drawing.">GRRLIB_Render()</a>. libfat is required to use the function. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">filename</td><td>Name of the file to write. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>Returns <code>true</code> if everything worked, <code>false</code> if problems occurred. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga6a685c604592b6f219f101b1f47d87bd" name="ga6a685c604592b6f219f101b1f47d87bd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga6a685c604592b6f219f101b1f47d87bd">◆ </a></span>GRRLIB_SetAntiAliasing()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_SetAntiAliasing </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const bool</td> <td class="paramname"><span class="paramname"><em>aa</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Turn anti-aliasing on/off. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">aa</td><td>Set to <code>true</code> to enable anti-aliasing (Default: Enabled). </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga73ea335f801066d4c13114124e70f82f" name="ga73ea335f801066d4c13114124e70f82f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga73ea335f801066d4c13114124e70f82f">◆ </a></span>GRRLIB_SetBackgroundColour()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_SetBackgroundColour </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8</td> <td class="paramname"><span class="paramname"><em>r</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8</td> <td class="paramname"><span class="paramname"><em>g</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8</td> <td class="paramname"><span class="paramname"><em>b</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8</td> <td class="paramname"><span class="paramname"><em>a</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set the background parameter when screen is cleared. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">r</td><td>Red component. </td></tr>
|
|
<tr><td class="paramname">g</td><td>Green component. </td></tr>
|
|
<tr><td class="paramname">b</td><td>Blue component. </td></tr>
|
|
<tr><td class="paramname">a</td><td>Alpha component. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga18217682c9ef5d1fb4a12bfd9b964ce8" name="ga18217682c9ef5d1fb4a12bfd9b964ce8"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga18217682c9ef5d1fb4a12bfd9b964ce8">◆ </a></span>GRRLIB_SetBlend()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_SetBlend </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="#ga84c65877bb197763cda6669c473be692">GRRLIB_blendMode</a></td> <td class="paramname"><span class="paramname"><em>blendmode</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a blending mode. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">blendmode</td><td>The blending mode to use (Default: GRRLIB_BLEND_ALPHA). </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga0c98022975900b36e91bb1bf78b64a9b" name="ga0c98022975900b36e91bb1bf78b64a9b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga0c98022975900b36e91bb1bf78b64a9b">◆ </a></span>GRRLIB_SetHandle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_SetHandle </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>y</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set a texture's X and Y handles. </p>
|
|
<p>For example, it could be used for the rotation of a texture. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">tex</td><td>The texture to set the handle on. </td></tr>
|
|
<tr><td class="paramname">x</td><td>The x-coordinate of the handle. </td></tr>
|
|
<tr><td class="paramname">y</td><td>The y-coordinate of the handle. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gae2db782b9842924329956daaeefbac20" name="gae2db782b9842924329956daaeefbac20"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gae2db782b9842924329956daaeefbac20">◆ </a></span>GRRLIB_SetLightAmbient()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_SetLightAmbient </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>ambientcolor</em></span></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set ambient color. </p>
|
|
<p>When no diffuse light is shining on a object, the color is equal to ambient color. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">ambientcolor</td><td>Ambient color in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga160f23daf580d4d41e491135f2f86027" name="ga160f23daf580d4d41e491135f2f86027"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga160f23daf580d4d41e491135f2f86027">◆ </a></span>GRRLIB_SetLightDiff()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_SetLightDiff </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8</td> <td class="paramname"><span class="paramname"><em>num</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">guVector</td> <td class="paramname"><span class="paramname"><em>pos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>distattn</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>brightness</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>lightcolor</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set diffuse light parameters. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">num</td><td>Number of the light. It's a number from 0 to 7. </td></tr>
|
|
<tr><td class="paramname">pos</td><td>Position of the diffuse light (x/y/z). </td></tr>
|
|
<tr><td class="paramname">distattn</td><td>Distance attenuation. </td></tr>
|
|
<tr><td class="paramname">brightness</td><td>Brightness of the light. The value should be between 0 and 1. </td></tr>
|
|
<tr><td class="paramname">lightcolor</td><td>Color of the light in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gab7f3bf4fbc8b4dad8902e95894f1419f" name="gab7f3bf4fbc8b4dad8902e95894f1419f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gab7f3bf4fbc8b4dad8902e95894f1419f">◆ </a></span>GRRLIB_SetLightSpec()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_SetLightSpec </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8</td> <td class="paramname"><span class="paramname"><em>num</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">guVector</td> <td class="paramname"><span class="paramname"><em>dir</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>shininess</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>lightcolor</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>speccolor</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set specular light parameters. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">num</td><td>Number of the light. It's a number from 0 to 7. </td></tr>
|
|
<tr><td class="paramname">dir</td><td>Direction of the specular ray (x/y/z). </td></tr>
|
|
<tr><td class="paramname">shininess</td><td>Shininess of the specular. ( between 4 and 254) </td></tr>
|
|
<tr><td class="paramname">lightcolor</td><td>Color of the light in RGBA format. </td></tr>
|
|
<tr><td class="paramname">speccolor</td><td>Specular color in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gac4ae6bb35e12d59405c842c93e860462" name="gac4ae6bb35e12d59405c842c93e860462"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac4ae6bb35e12d59405c842c93e860462">◆ </a></span>GRRLIB_SetLightSpot()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_SetLightSpot </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8</td> <td class="paramname"><span class="paramname"><em>num</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">guVector</td> <td class="paramname"><span class="paramname"><em>pos</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">guVector</td> <td class="paramname"><span class="paramname"><em>lookat</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angAttn0</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angAttn1</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>angAttn2</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>distAttn0</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>distAttn1</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">f32</td> <td class="paramname"><span class="paramname"><em>distAttn2</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>lightcolor</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set Spot light parameters. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">num</td><td>Number of the light. It's a number from 0 to 7. </td></tr>
|
|
<tr><td class="paramname">pos</td><td>Position of the spot light (x/y/z). </td></tr>
|
|
<tr><td class="paramname">lookat</td><td>Where spot light look at (x/y/z). </td></tr>
|
|
<tr><td class="paramname">angAttn0</td><td>cone attenuation factor 0. </td></tr>
|
|
<tr><td class="paramname">angAttn1</td><td>cone attenuation factor 1. </td></tr>
|
|
<tr><td class="paramname">angAttn2</td><td>cone attenuation factor 2. </td></tr>
|
|
<tr><td class="paramname">distAttn0</td><td>Distance attenuation factor 0. </td></tr>
|
|
<tr><td class="paramname">distAttn1</td><td>Distance attenuation factor 1. </td></tr>
|
|
<tr><td class="paramname">distAttn2</td><td>Distance attenuation factor 2. </td></tr>
|
|
<tr><td class="paramname">lightcolor</td><td>Color of the light in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gaf9765f9f9f807396e554cb32e50dd1d6" name="gaf9765f9f9f807396e554cb32e50dd1d6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gaf9765f9f9f807396e554cb32e50dd1d6">◆ </a></span>GRRLIB_SetMidHandle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_SetMidHandle </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const bool</td> <td class="paramname"><span class="paramname"><em>enabled</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Center a texture's handles. </p>
|
|
<p>For example, it could be used for the rotation of a texture. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">tex</td><td>The texture to center. </td></tr>
|
|
<tr><td class="paramname">enabled</td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga2de134824b5ecc4d5011e98e7428ed31" name="ga2de134824b5ecc4d5011e98e7428ed31"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga2de134824b5ecc4d5011e98e7428ed31">◆ </a></span>GRRLIB_SetPixelToFB()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_SetPixelToFB </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u32</td> <td class="paramname"><span class="paramname"><em>pokeColor</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Writes a pixel directly from the FrontBuffer. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>The x-coordinate within the FB. </td></tr>
|
|
<tr><td class="paramname">y</td><td>The y-coordinate within the FB. </td></tr>
|
|
<tr><td class="paramname">pokeColor</td><td>The color of the pixel in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga56e0544dd2fbf62ed03dbd2d91478c79" name="ga56e0544dd2fbf62ed03dbd2d91478c79"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga56e0544dd2fbf62ed03dbd2d91478c79">◆ </a></span>GRRLIB_SetPixelTotexImg()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">INLINE void GRRLIB_SetPixelTotexImg </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>x</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const int</td> <td class="paramname"><span class="paramname"><em>y</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const u32</td> <td class="paramname"><span class="paramname"><em>color</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set the color value of a pixel to a <a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a>. </p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="#ga5e6a52737806ffb075cc8be7724f3fdd" title="Write the contents of a texture in the data cache down to main memory.">GRRLIB_FlushTex</a> </dd></dl>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">x</td><td>Specifies the x-coordinate of the pixel in the texture. </td></tr>
|
|
<tr><td class="paramname">y</td><td>Specifies the y-coordinate of the pixel in the texture. </td></tr>
|
|
<tr><td class="paramname">tex</td><td>The texture to set the color to. </td></tr>
|
|
<tr><td class="paramname">color</td><td>The color of the pixel in RGBA format. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gacdda772743d08b1e060f2b3dbf4795ed" name="gacdda772743d08b1e060f2b3dbf4795ed"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gacdda772743d08b1e060f2b3dbf4795ed">◆ </a></span>GRRLIB_SetTexture()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void GRRLIB_SetTexture </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="struct_g_r_r_l_i_b__tex_img.html">GRRLIB_texImg</a> *</td> <td class="paramname"><span class="paramname"><em>tex</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>rep</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set the texture to an object (contributed by chris_c aka DaShAmAn). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">tex</td><td>Pointer to an image texture (<a class="el" href="struct_g_r_r_l_i_b__tex_img.html" title="Structure to hold the texture information.">GRRLIB_texImg</a> format). </td></tr>
|
|
<tr><td class="paramname">rep</td><td>Texture Repeat Mode, <code>true</code> will repeat it, <code>false</code> won't. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ga53429ddacb34b9fd89635ae412e57227" name="ga53429ddacb34b9fd89635ae412e57227"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ga53429ddacb34b9fd89635ae412e57227">◆ </a></span>GRRLIB_WidthTTF()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">u32 GRRLIB_WidthTTF </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *</td> <td class="paramname"><span class="paramname"><em>myFont</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>string</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned int</td> <td class="paramname"><span class="paramname"><em>fontSize</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the width of a text in pixel. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">myFont</td><td>A TTF. </td></tr>
|
|
<tr><td class="paramname">string</td><td>The text to check. </td></tr>
|
|
<tr><td class="paramname">fontSize</td><td>The size of the font. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>The width of a text in pixel. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="gac8b9bb428ec8328f2954f74cf8a6edab" name="gac8b9bb428ec8328f2954f74cf8a6edab"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#gac8b9bb428ec8328f2954f74cf8a6edab">◆ </a></span>GRRLIB_WidthTTFW()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">u32 GRRLIB_WidthTTFW </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="#gac8a079ae4566c590762c46b8210bb9f4">GRRLIB_ttfFont</a> *</td> <td class="paramname"><span class="paramname"><em>myFont</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const wchar_t *</td> <td class="paramname"><span class="paramname"><em>utf32</em>, </span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned int</td> <td class="paramname"><span class="paramname"><em>fontSize</em></span> )</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the width of a text in pixel. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">myFont</td><td>A TTF. </td></tr>
|
|
<tr><td class="paramname">utf32</td><td>The text to check. </td></tr>
|
|
<tr><td class="paramname">fontSize</td><td>The size of the font. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>The width of a text in pixel. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
|
|
</small></address>
|
|
</body>
|
|
</html>
|