nishbox/engine/gf__macro_8h_source.html

223 lines
20 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_macro.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__macro_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_macro.h</div></div>
</div><!--header-->
<div class="contents">
<a href="gf__macro_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="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#ifndef __GF_MACRO_H__</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#define __GF_MACRO_H__</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#ifdef GF_EXPOSE_ALL</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#ifndef GF_EXPOSE_CORE</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a697eb08d834a4889d84940e79575779d"> 17</a></span><span class="preprocessor">#define GF_EXPOSE_CORE</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#endif</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="preprocessor">#ifndef GF_EXPOSE_DRAW</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a438e60b3ef2df2ad0a220523e95d6dca"> 25</a></span><span class="preprocessor">#define GF_EXPOSE_DRAW</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#ifndef GF_EXPOSE_DRAW_PLATFORM</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a5a117ced8c73165c3cc6144a49bf5af0"> 33</a></span><span class="preprocessor">#define GF_EXPOSE_DRAW_PLATFORM</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor">#ifndef GF_EXPOSE_DRAW_DRIVER</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a25f301eb3d5e8c3bfb8187876fa36efa"> 41</a></span><span class="preprocessor">#define GF_EXPOSE_DRAW_DRIVER</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="preprocessor">#ifndef GF_EXPOSE_MESH</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#ac44de892fe92937b0c6bf471ed7c39d3"> 49</a></span><span class="preprocessor">#define GF_EXPOSE_MESH</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="preprocessor">#ifndef GF_EXPOSE_MODEL</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a162dc93ccefb746c38c3874a79b42eca"> 57</a></span><span class="preprocessor">#define GF_EXPOSE_MODEL</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="preprocessor">#ifndef GF_EXPOSE_TEXTURE</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a1b10588ebedb9c8ea44c1e4d2dd11086"> 65</a></span><span class="preprocessor">#define GF_EXPOSE_TEXTURE</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span><span class="preprocessor">#ifndef GF_EXPOSE_PHYSICS</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#aeb8d09c8509f1bbb5c2647be76806117"> 73</a></span><span class="preprocessor">#define GF_EXPOSE_PHYSICS</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="preprocessor">#ifndef GF_EXPOSE_GUI</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a4a8b5bd4a3f26e4e775db703d383e315"> 81</a></span><span class="preprocessor">#define GF_EXPOSE_GUI</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="preprocessor">#ifndef GF_EXPOSE_THREAD</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#aeddf0443a9813483ca6bfc05190915e0"> 89</a></span><span class="preprocessor">#define GF_EXPOSE_THREAD</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span><span class="preprocessor">#ifndef GF_EXPOSE_CLIENT</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a13d820c4f195f0f38ce7d791a9a4ddeb"> 97</a></span><span class="preprocessor">#define GF_EXPOSE_CLIENT</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span><span class="preprocessor">#ifndef GF_EXPOSE_SERVER</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a7bbb6e42ee5fdf2e1dbbb4678e46973a"> 105</a></span><span class="preprocessor">#define GF_EXPOSE_SERVER</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span><span class="preprocessor">#ifndef GF_EXPOSE_FONT</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a44fcf2830dd68160e7745e6c93a0fc15"> 113</a></span><span class="preprocessor">#define GF_EXPOSE_FONT</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span><span class="preprocessor">#ifndef GF_EXPOSE_INPUT</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a8412a96f3ebbf985b342603585944166"> 121</a></span><span class="preprocessor">#define GF_EXPOSE_INPUT</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span><span class="preprocessor">#ifndef GF_EXPOSE_AUDIO</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a0c037da6649bf5ca0c58c12ec3a422ff"> 129</a></span><span class="preprocessor">#define GF_EXPOSE_AUDIO</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span><span class="preprocessor">#ifndef GF_EXPOSE_GRAPHIC</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a9c8f57368c8d0b9a005e88951bb6b999"> 138</a></span><span class="preprocessor">#define GF_EXPOSE_GRAPHIC</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span><span class="preprocessor">#ifndef GF_EXPOSE_MATH</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a0741ff0ae6d4298a707cb24a2b88d13e"> 147</a></span><span class="preprocessor">#define GF_EXPOSE_MATH</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span><span class="preprocessor">#ifndef GF_EXPOSE_VERSION</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a522da62928e59f2d7e01a128eb2441f2"> 156</a></span><span class="preprocessor">#define GF_EXPOSE_VERSION</span></div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span><span class="preprocessor">#ifndef __FUNCTION_NAME__</span></div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span><span class="preprocessor">#ifdef _MSC_VER</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span><span class="preprocessor">#define __FUNCTION_NAME__ __FUNCTION__</span></div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a25e2d509981e06719691d7b1b4b25b12"> 170</a></span><span class="preprocessor">#define __FUNCTION_NAME__ __func__</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> </div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a018031ff5fba22b9d5052a55f8c9a377"> 180</a></span><span class="preprocessor">#define GF_DECLARE_TYPE(n, b) typedef struct gf_##n##_t b gf_##n##_t;</span></div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span><span class="preprocessor">#if defined(_WIN32) &amp;&amp; defined(GF_DLL)</span></div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span><span class="preprocessor">#define GF_EXPORT extern __declspec(dllexport)</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="gf__macro_8h.html#a64ddd31b0795e397b5d944e6f1821357"> 190</a></span><span class="preprocessor">#define GF_EXPORT extern</span></div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span><span class="comment">/* Expose them by default */</span></div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span><span class="preprocessor">#ifndef GF_EXPOSE_GRAPHIC</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span><span class="preprocessor">#define GF_EXPOSE_GRAPHIC</span></div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> </div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span><span class="preprocessor">#ifndef GF_EXPOSE_MATH</span></div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span><span class="preprocessor">#define GF_EXPOSE_MATH</span></div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span><span class="preprocessor">#ifndef GF_EXPOSE_VERSION</span></div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span><span class="preprocessor">#define GF_EXPOSE_VERSION</span></div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> </div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span><span class="preprocessor">#endif</span></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__macro_8h.html">gf_macro.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>