nishbox/engine/gf__draw_8h_source.html

157 lines
14 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.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GoldFish Engine: include/gf_draw.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="goldfish.png"/></td>
<td id="projectalign">
<div id="projectname">GoldFish Engine
</div>
<div id="projectbrief">Quite simple and lightweight game engine</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;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&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('gf__draw_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<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="headertitle"><div class="title">gf_draw.h</div></div>
</div><!--header-->
<div class="contents">
<a href="gf__draw_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#ifndef __GF_DRAW_H__</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#define __GF_DRAW_H__</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include &lt;<a class="code" href="gf__pre_8h.html">gf_pre.h</a>&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include &lt;<a class="code" href="gf__macro_8h.html">gf_macro.h</a>&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment">/* Type */</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include &lt;<a class="code" href="draw_8h.html">gf_type/draw.h</a>&gt;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">/* Engine */</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include &lt;<a class="code" href="core_8h.html">gf_type/core.h</a>&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="comment">/* Standard */</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><a class="code hl_define" href="gf__macro_8h.html#a64ddd31b0795e397b5d944e6f1821357">GF_EXPORT</a> <a class="code hl_struct" href="structgf__draw__t.html">gf_draw_t</a>* <a class="code hl_function" href="gf__draw_8h.html#af65b9048f8e8b33c560f374a945d1dec">gf_draw_create</a>(<a class="code hl_struct" href="structgf__engine__t.html">gf_engine_t</a>* engine, <span class="keyword">const</span> <span class="keywordtype">char</span>* title);</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><a class="code hl_define" href="gf__macro_8h.html#a64ddd31b0795e397b5d944e6f1821357">GF_EXPORT</a> <span class="keywordtype">void</span> <a class="code hl_function" href="gf__draw_8h.html#aa7c19917300ff10b22de455323f01d83">gf_draw_destroy</a>(<a class="code hl_struct" href="structgf__draw__t.html">gf_draw_t</a>* draw);</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><a class="code hl_define" href="gf__macro_8h.html#a64ddd31b0795e397b5d944e6f1821357">GF_EXPORT</a> <span class="keywordtype">void</span> <a class="code hl_function" href="gf__draw_8h.html#a4887fe11d8dfe55cf784e07b382b046a">gf_draw_frame</a>(<a class="code hl_struct" href="structgf__draw__t.html">gf_draw_t</a>* draw);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span><a class="code hl_define" href="gf__macro_8h.html#a64ddd31b0795e397b5d944e6f1821357">GF_EXPORT</a> <span class="keywordtype">int</span> <a class="code hl_function" href="gf__draw_8h.html#a47934a1eafd8426cc145a97e36867551">gf_draw_step</a>(<a class="code hl_struct" href="structgf__draw__t.html">gf_draw_t</a>* draw);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><a class="code hl_define" href="gf__macro_8h.html#a64ddd31b0795e397b5d944e6f1821357">GF_EXPORT</a> <span class="keywordtype">void</span> <a class="code hl_function" href="gf__draw_8h.html#a4575368fee8a93966d657874a0906aaf">gf_draw_begin</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><a class="code hl_define" href="gf__macro_8h.html#a64ddd31b0795e397b5d944e6f1821357">GF_EXPORT</a> <span class="keywordtype">void</span> <a class="code hl_function" href="gf__draw_8h.html#a11d157bf565b4010f1350dd5329fa4a4">gf_draw_end</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><a class="code hl_define" href="gf__macro_8h.html#a64ddd31b0795e397b5d944e6f1821357">GF_EXPORT</a> <span class="keywordtype">void</span> <a class="code hl_function" href="gf__draw_8h.html#af1d6ba858a1cee357f8626501540e8bf">gf_draw_reshape</a>(<a class="code hl_struct" href="structgf__draw__t.html">gf_draw_t</a>* draw);</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="acore_8h_html"><div class="ttname"><a href="core_8h.html">core.h</a></div><div class="ttdoc">Type definitions related to core.</div></div>
<div class="ttc" id="adraw_8h_html"><div class="ttname"><a href="draw_8h.html">draw.h</a></div><div class="ttdoc">Type definitions related to drawing interface.</div></div>
<div class="ttc" id="agf__draw_8h_html_a11d157bf565b4010f1350dd5329fa4a4"><div class="ttname"><a href="gf__draw_8h.html#a11d157bf565b4010f1350dd5329fa4a4">gf_draw_end</a></div><div class="ttdeci">void gf_draw_end(void)</div><div class="ttdoc">Cleanup drawing stuffs.</div><div class="ttdef"><b>Definition</b> <a href="gf__draw__common_8c_source.html#l00028">gf_draw_common.c:28</a></div></div>
<div class="ttc" id="agf__draw_8h_html_a4575368fee8a93966d657874a0906aaf"><div class="ttname"><a href="gf__draw_8h.html#a4575368fee8a93966d657874a0906aaf">gf_draw_begin</a></div><div class="ttdeci">void gf_draw_begin(void)</div><div class="ttdoc">Initialize drawing stuffs.</div><div class="ttdef"><b>Definition</b> <a href="gf__draw__common_8c_source.html#l00026">gf_draw_common.c:26</a></div></div>
<div class="ttc" id="agf__draw_8h_html_a47934a1eafd8426cc145a97e36867551"><div class="ttname"><a href="gf__draw_8h.html#a47934a1eafd8426cc145a97e36867551">gf_draw_step</a></div><div class="ttdeci">int gf_draw_step(gf_draw_t *draw)</div><div class="ttdoc">Do drawing single step.</div><div class="ttdef"><b>Definition</b> <a href="gf__draw__common_8c_source.html#l00123">gf_draw_common.c:123</a></div></div>
<div class="ttc" id="agf__draw_8h_html_a4887fe11d8dfe55cf784e07b382b046a"><div class="ttname"><a href="gf__draw_8h.html#a4887fe11d8dfe55cf784e07b382b046a">gf_draw_frame</a></div><div class="ttdeci">void gf_draw_frame(gf_draw_t *draw)</div><div class="ttdoc">Draw frame (common part)</div><div class="ttdef"><b>Definition</b> <a href="gf__draw__common_8c_source.html#l00097">gf_draw_common.c:97</a></div></div>
<div class="ttc" id="agf__draw_8h_html_aa7c19917300ff10b22de455323f01d83"><div class="ttname"><a href="gf__draw_8h.html#aa7c19917300ff10b22de455323f01d83">gf_draw_destroy</a></div><div class="ttdeci">void gf_draw_destroy(gf_draw_t *draw)</div><div class="ttdoc">Destroy drawing interface.</div><div class="ttdef"><b>Definition</b> <a href="gf__draw__common_8c_source.html#l00131">gf_draw_common.c:131</a></div></div>
<div class="ttc" id="agf__draw_8h_html_af1d6ba858a1cee357f8626501540e8bf"><div class="ttname"><a href="gf__draw_8h.html#af1d6ba858a1cee357f8626501540e8bf">gf_draw_reshape</a></div><div class="ttdeci">void gf_draw_reshape(gf_draw_t *draw)</div><div class="ttdoc">Do stuffs required on resizing window.</div><div class="ttdef"><b>Definition</b> <a href="gf__draw__common_8c_source.html#l00092">gf_draw_common.c:92</a></div></div>
<div class="ttc" id="agf__draw_8h_html_af65b9048f8e8b33c560f374a945d1dec"><div class="ttname"><a href="gf__draw_8h.html#af65b9048f8e8b33c560f374a945d1dec">gf_draw_create</a></div><div class="ttdeci">gf_draw_t * gf_draw_create(gf_engine_t *engine, const char *title)</div><div class="ttdoc">Create drawing interface.</div><div class="ttdef"><b>Definition</b> <a href="gf__draw__common_8c_source.html#l00032">gf_draw_common.c:32</a></div></div>
<div class="ttc" id="agf__macro_8h_html"><div class="ttname"><a href="gf__macro_8h.html">gf_macro.h</a></div><div class="ttdoc">Macro.</div></div>
<div class="ttc" id="agf__macro_8h_html_a64ddd31b0795e397b5d944e6f1821357"><div class="ttname"><a href="gf__macro_8h.html#a64ddd31b0795e397b5d944e6f1821357">GF_EXPORT</a></div><div class="ttdeci">#define GF_EXPORT</div><div class="ttdoc">Macro for platform-dependent symbol export/import.</div><div class="ttdef"><b>Definition</b> <a href="gf__macro_8h_source.html#l00166">gf_macro.h:166</a></div></div>
<div class="ttc" id="agf__pre_8h_html"><div class="ttname"><a href="gf__pre_8h.html">gf_pre.h</a></div><div class="ttdoc">Required headers before anything.</div></div>
<div class="ttc" id="astructgf__draw__t_html"><div class="ttname"><a href="structgf__draw__t.html">gf_draw_t</a></div><div class="ttdoc">Drawing interface.</div><div class="ttdef"><b>Definition</b> <a href="draw_8h_source.html#l00100">draw.h:100</a></div></div>
<div class="ttc" id="astructgf__engine__t_html"><div class="ttname"><a href="structgf__engine__t.html">gf_engine_t</a></div><div class="ttdoc">Engine instance.</div><div class="ttdef"><b>Definition</b> <a href="core_8h_source.html#l00044">core.h:44</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="gf__draw_8h.html">gf_draw.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
</ul>
</div>
</body>
</html>