nishbox/engine/graphic_8h_source.html

148 lines
11 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_type/graphic.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('graphic_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">graphic.h</div></div>
</div><!--header-->
<div class="contents">
<a href="graphic_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_TYPE_GRAPHIC_H__</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#define __GF_TYPE_GRAPHIC_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">#include &lt;<a class="code" href="gf__pre_8h.html">gf_pre.h</a>&gt;</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__macro_8h.html">gf_macro.h</a>&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#ifdef GF_EXPOSE_GRAPHIC</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structgf__graphic__color__t.html">gf_graphic_color_t</a> <a class="code hl_struct" href="structgf__graphic__color__t.html">gf_graphic_color_t</a>;</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment">/* External library */</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">/* Engine */</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="l00039" name="l00039"></a><span class="lineno"> 39</span><a class="code hl_define" href="gf__macro_8h.html#a018031ff5fba22b9d5052a55f8c9a377">GF_DECLARE_TYPE</a>(graphic_color, {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgf__graphic__color__t.html#a5f1ffd7ee29657c6b6c71574b6f12788">r</a>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgf__graphic__color__t.html#a0f0a24017b41658518516306c7e19acf">g</a>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgf__graphic__color__t.html#a26d66ab963cf6822e7eadb7b0a96e040">b</a>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structgf__graphic__color__t.html#a55cf386eda83f15c1aa811626653141c">a</a>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structgf__graphic__color__t.html#a55cf386eda83f15c1aa811626653141c"> 44</a></span>});</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="preprocessor">#error &quot;should not happen!&quot;</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="preprocessor">#endif</span></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_a018031ff5fba22b9d5052a55f8c9a377"><div class="ttname"><a href="gf__macro_8h.html#a018031ff5fba22b9d5052a55f8c9a377">GF_DECLARE_TYPE</a></div><div class="ttdeci">#define GF_DECLARE_TYPE(n, b)</div><div class="ttdoc">Macro to define engine type shorter.</div><div class="ttdef"><b>Definition</b> <a href="gf__macro_8h_source.html#l00180">gf_macro.h:180</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__graphic__color__t_html"><div class="ttname"><a href="structgf__graphic__color__t.html">gf_graphic_color_t</a></div><div class="ttdoc">Color.</div><div class="ttdef"><b>Definition</b> <a href="graphic_8h_source.html#l00044">graphic.h:44</a></div></div>
<div class="ttc" id="astructgf__graphic__color__t_html_a0f0a24017b41658518516306c7e19acf"><div class="ttname"><a href="structgf__graphic__color__t.html#a0f0a24017b41658518516306c7e19acf">gf_graphic_color_t::g</a></div><div class="ttdeci">double g</div><div class="ttdoc">Green.</div><div class="ttdef"><b>Definition</b> <a href="graphic_8h_source.html#l00044">graphic.h:44</a></div></div>
<div class="ttc" id="astructgf__graphic__color__t_html_a26d66ab963cf6822e7eadb7b0a96e040"><div class="ttname"><a href="structgf__graphic__color__t.html#a26d66ab963cf6822e7eadb7b0a96e040">gf_graphic_color_t::b</a></div><div class="ttdeci">double b</div><div class="ttdoc">Blue.</div><div class="ttdef"><b>Definition</b> <a href="graphic_8h_source.html#l00044">graphic.h:44</a></div></div>
<div class="ttc" id="astructgf__graphic__color__t_html_a55cf386eda83f15c1aa811626653141c"><div class="ttname"><a href="structgf__graphic__color__t.html#a55cf386eda83f15c1aa811626653141c">gf_graphic_color_t::a</a></div><div class="ttdeci">double a</div><div class="ttdoc">Alpha.</div><div class="ttdef"><b>Definition</b> <a href="graphic_8h_source.html#l00044">graphic.h:44</a></div></div>
<div class="ttc" id="astructgf__graphic__color__t_html_a5f1ffd7ee29657c6b6c71574b6f12788"><div class="ttname"><a href="structgf__graphic__color__t.html#a5f1ffd7ee29657c6b6c71574b6f12788">gf_graphic_color_t::r</a></div><div class="ttdeci">double r</div><div class="ttdoc">Red.</div><div class="ttdef"><b>Definition</b> <a href="graphic_8h_source.html#l00044">graphic.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="dir_e60f2706c8c207c5a951446d03370319.html">gf_type</a></li><li class="navelem"><a class="el" href="graphic_8h.html">graphic.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>