diff options
Diffstat (limited to 'Doc/doxygen/html/_graphic_8h_source.html')
-rw-r--r-- | Doc/doxygen/html/_graphic_8h_source.html | 256 |
1 files changed, 256 insertions, 0 deletions
diff --git a/Doc/doxygen/html/_graphic_8h_source.html b/Doc/doxygen/html/_graphic_8h_source.html new file mode 100644 index 0000000..99549eb --- /dev/null +++ b/Doc/doxygen/html/_graphic_8h_source.html @@ -0,0 +1,256 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<title>Starshatter_Open: D:/SRC/StarshatterSVN/nGenEx/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="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { searchBox.OnSelectItem(0); }); +</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 style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Starshatter_Open + </div> + <div id="projectbrief">Open source Starshatter engine</div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.1 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('_graphic_8h.html','');}); +</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)"> +<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a></div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</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 name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Project nGenEx</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Destroyer Studios LLC</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright © 1997-2004. All Rights Reserved.</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> SUBSYSTEM: nGenEx.lib</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> FILE: Graphic.h</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> AUTHOR: John DiCamillo</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> OVERVIEW</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ========</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> Abstract 3D Graphic Object</span></div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">*/</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#ifndef Graphic_h</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span><span class="preprocessor">#define Graphic_h</span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="_geometry_8h.html">Geometry.h</a>"</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="_color_8h.html">Color.h</a>"</span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="_list_8h.html">List.h</a>"</span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> +<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="_graphic_8h.html#a6cf60e4cf1961361db679c04b7a896ed"> 24</a></span> <span class="preprocessor">#define GRAPHIC_DESTROY(x) if (x) { x->Destroy(); x = 0; }</span></div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">class </span><a class="code" href="class_projector.html">Projector</a>;</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">class </span><a class="code" href="class_light.html">Light</a>;</div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">class </span><a class="code" href="class_scene.html">Scene</a>;</div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">class </span><a class="code" href="class_video.html">Video</a>;</div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> +<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="class_graphic.html"> 35</a></span> <span class="keyword">class </span><a class="code" href="class_graphic.html">Graphic</a></div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="class_graphic.html#a2a7a5f7512a645629d89c83f2a3ab0ff"> 38</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_graphic.html#a2a7a5f7512a645629d89c83f2a3ab0ff">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Graphic"</span>; }</div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> +<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="class_graphic.html#a560615913229aa332d099fd69d352a14"> 40</a></span>  <span class="keyword">enum</span> <a class="code" href="class_graphic.html#a560615913229aa332d099fd69d352a14">TYPE</a> { <a class="code" href="class_graphic.html#a560615913229aa332d099fd69d352a14a3e3e9a050175b8ccf56ac286f1abb29b">OTHER</a>, <a class="code" href="class_graphic.html#a560615913229aa332d099fd69d352a14a409fa0529769024d59f3a0d60e4d764e">SOLID</a>, <a class="code" href="class_graphic.html#a560615913229aa332d099fd69d352a14ae53dcb65eaea8c73a56329cebc2d6c96">SPRITE</a>, <a class="code" href="class_graphic.html#a560615913229aa332d099fd69d352a14a84504006453a4c1c2af212aa70c59dbd">BOLT</a>, <a class="code" href="class_graphic.html#a560615913229aa332d099fd69d352a14aa1c36fafba2d7256b5003d9404977b7c">QUAD</a> };</div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> +<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923b"> 42</a></span>  <span class="keyword">enum</span> <a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923b">RENDER_FLAGS</a> {</div> +<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923ba1faab5f4112d9db7299affa38e1d02ec"> 43</a></span>  <a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923ba1faab5f4112d9db7299affa38e1d02ec">RENDER_SOLID</a> = 0x0001,</div> +<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923bac2a4e4e9170842409b49c2fce642bfe0"> 44</a></span>  <a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923bac2a4e4e9170842409b49c2fce642bfe0">RENDER_ALPHA</a> = 0x0002,</div> +<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923ba29558b48b11569eddf097dde625072af"> 45</a></span>  <a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923ba29558b48b11569eddf097dde625072af">RENDER_ADDITIVE</a> = 0x0004,</div> +<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923ba9e1053e8356d18ad10fa9e81fb971d57"> 46</a></span>  <a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923ba9e1053e8356d18ad10fa9e81fb971d57">RENDER_FIRST_LIGHT</a> = 0x1000,</div> +<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923baf8ce820255bbf2c5498560e237e7f95a"> 47</a></span>  <a class="code" href="class_graphic.html#a9916b73164fa91ae51d5d1964a19923baf8ce820255bbf2c5498560e237e7f95a">RENDER_ADD_LIGHT</a> = 0x2000</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  };</div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="class_graphic.html#ab2fe7b2c8975ecf21bcd727d37cb33c7">Graphic</a>();</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">virtual</span> <a class="code" href="class_graphic.html#a19b3149c0c1527532b85b4cfaa8c141f">~Graphic</a>();</div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div> +<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="class_graphic.html#a21b9f238ac49ba73821a724411e694f7"> 53</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a21b9f238ac49ba73821a724411e694f7">operator == </a>(<span class="keyword">const</span> <a class="code" href="class_graphic.html">Graphic</a>& g)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keywordtype">id</span> == g.<a class="code" href="class_graphic.html#a7e4243c1c9493037fcd1d49b9bb48b5a">id</a>; }</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#aa7b0b196e2f8f40578b190f164b884cf">operator < </a>(<span class="keyword">const</span> <a class="code" href="class_graphic.html">Graphic</a>& g) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a0c3cf84f3b56edcfd72e21460441a2f5">operator <= </a>(<span class="keyword">const</span> <a class="code" href="class_graphic.html">Graphic</a>& g) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">// operations</span></div> +<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="class_graphic.html#aa70ec2cb489f932a7c1d0b90fd002c53"> 58</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#aa70ec2cb489f932a7c1d0b90fd002c53">Render</a>(<a class="code" href="class_video.html">Video</a>* video, DWORD flags) { }</div> +<div class="line"><a name="l00059"></a><span class="lineno"><a class="code" href="class_graphic.html#af63635b63a9a1917c1683b08cd8887f0"> 59</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#af63635b63a9a1917c1683b08cd8887f0">Update</a>() { }</div> +<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="class_graphic.html#a22f30bba82bd8b78293d7fc3cec4c80f"> 60</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#a22f30bba82bd8b78293d7fc3cec4c80f">SetOrientation</a>(<span class="keyword">const</span> <a class="code" href="struct_matrix.html">Matrix</a>& o) { }</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a82b6b1cbe1beb025e432f72fdb272646">CollidesWith</a>(<a class="code" href="class_graphic.html">Graphic</a>& o);</div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment">// accessors / mutators</span></div> +<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="class_graphic.html#a95de74f4667f84e414c0ae44810cfed8"> 65</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a95de74f4667f84e414c0ae44810cfed8">Identity</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a7e4243c1c9493037fcd1d49b9bb48b5a">id</a>; }</div> +<div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="class_graphic.html#ac534957bfc8b4f280b2e80c6b0335c3e"> 66</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_graphic.html#ac534957bfc8b4f280b2e80c6b0335c3e">Name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a04c19c760ee2e12335ee14352dffd9f4">name</a>; }</div> +<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="class_graphic.html#a410b7ff18bb61c62047f0caba822a666"> 67</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#a410b7ff18bb61c62047f0caba822a666">IsVisible</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#af4000b75e733400ec0dbad1e5feab070">visible</a>; }</div> +<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="class_graphic.html#a8f1ea74cc46e8974ef68ebcbcdf51c4c"> 68</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#a8f1ea74cc46e8974ef68ebcbcdf51c4c">SetVisible</a>(<span class="keywordtype">bool</span> v) { <a class="code" href="class_graphic.html#af4000b75e733400ec0dbad1e5feab070">visible</a> = v; }</div> +<div class="line"><a name="l00069"></a><span class="lineno"><a class="code" href="class_graphic.html#a523f7cb9e66d36edefc3ec12802da621"> 69</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_graphic.html#a523f7cb9e66d36edefc3ec12802da621">Radius</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a375d4c28b1feb40e12fb5a7cbba6a59c">radius</a>; }</div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div> +<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="class_graphic.html#a0b6627c441a7e4e8d5a1ef04bd03880b"> 71</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_graphic.html#a0b6627c441a7e4e8d5a1ef04bd03880b">Location</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a9ce2c536ee7744836ddde006907df8e7">loc</a>; }</div> +<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="class_graphic.html#af8bec5b637e4925c65fb77d8234fb266"> 72</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#af8bec5b637e4925c65fb77d8234fb266">MoveTo</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& p) { <a class="code" href="class_graphic.html#a9ce2c536ee7744836ddde006907df8e7">loc</a> = p; }</div> +<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="class_graphic.html#aa4e91d7e8ca7224886a816a183ce3eff"> 73</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#aa4e91d7e8ca7224886a816a183ce3eff">TranslateBy</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& ref) { <a class="code" href="class_graphic.html#a9ce2c536ee7744836ddde006907df8e7">loc</a> = <a class="code" href="class_graphic.html#a9ce2c536ee7744836ddde006907df8e7">loc</a> - ref; }</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div> +<div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="class_graphic.html#a22c405412ea7a5b157cf28e0d2781689"> 75</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="class_graphic.html#a22c405412ea7a5b157cf28e0d2781689">Depth</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#ace18b045c25a16edddd7043325f510e1">depth</a>; }</div> +<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="class_graphic.html#a1f934057f7212bfe78407d84155e3efd"> 76</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#a1f934057f7212bfe78407d84155e3efd">SetDepth</a>(<span class="keywordtype">float</span> d) { <a class="code" href="class_graphic.html#ace18b045c25a16edddd7043325f510e1">depth</a> = d; }</div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a52f18a192246d2656cddfff42db94728">Nearer</a>(<a class="code" href="class_graphic.html">Graphic</a>* a, <a class="code" href="class_graphic.html">Graphic</a>* b);</div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#af593cd9f6e94e10864b24bcc85ca96ed">Farther</a>(<a class="code" href="class_graphic.html">Graphic</a>* a, <a class="code" href="class_graphic.html">Graphic</a>* b);</div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div> +<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="class_graphic.html#a57da7c3ca8c3c6eb817bdc28d993e5f7"> 80</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a57da7c3ca8c3c6eb817bdc28d993e5f7">IsInfinite</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a20d242e3ef5a0541d82ab6306c59f844">infinite</a>; }</div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#a3a6c2b0f40695d29f254e17d66f4e03e">SetInfinite</a>(<span class="keywordtype">bool</span> b);</div> +<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="class_graphic.html#a2b819adefa78f4e0ec4f8835e873ffdc"> 82</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a2b819adefa78f4e0ec4f8835e873ffdc">IsForeground</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a2db5a56ccc5ada1ec173e0e9ae43c967">foreground</a>; }</div> +<div class="line"><a name="l00083"></a><span class="lineno"><a class="code" href="class_graphic.html#a2a8c15a8d0312c4fa2157878305976d4"> 83</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#a2a8c15a8d0312c4fa2157878305976d4">SetForeground</a>(<span class="keywordtype">bool</span> f){ <a class="code" href="class_graphic.html#a2db5a56ccc5ada1ec173e0e9ae43c967">foreground</a> = f; }</div> +<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="class_graphic.html#a067f2821a2e5c59ce148ec8e2bb18f68"> 84</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a067f2821a2e5c59ce148ec8e2bb18f68">IsBackground</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#aa13f6b8f455b988485d5580a05499909">background</a>; }</div> +<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="class_graphic.html#a16121d76424104bf0a3809ace91a26c8"> 85</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#a16121d76424104bf0a3809ace91a26c8">SetBackground</a>(<span class="keywordtype">bool</span> b){ <a class="code" href="class_graphic.html#aa13f6b8f455b988485d5580a05499909">background</a> = b; }</div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div> +<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="class_graphic.html#ab9f2adb37fb32d55798758c7d85fe139"> 87</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#ab9f2adb37fb32d55798758c7d85fe139">Hidden</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#af103ab0a666852c310e05c5ab2e71df4">hidden</a>; }</div> +<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="class_graphic.html#ac36ce7e1f48d0ba9420d4704c72a2b64"> 88</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#ac36ce7e1f48d0ba9420d4704c72a2b64">Life</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a9c6002a0b627353298e301a8cac2f908">life</a>; }</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#abdc40fa5edafcc583ae536bb89aae6ff">Destroy</a>();</div> +<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="class_graphic.html#a06c7d7600a91914082c6cba1eb87dedf"> 90</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#a06c7d7600a91914082c6cba1eb87dedf">Hide</a>() { <a class="code" href="class_graphic.html#af103ab0a666852c310e05c5ab2e71df4">hidden</a> = <span class="keyword">true</span>; }</div> +<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="class_graphic.html#aab22ee91e157304613b8d54c125fe6ef"> 91</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#aab22ee91e157304613b8d54c125fe6ef">Show</a>() { <a class="code" href="class_graphic.html#af103ab0a666852c310e05c5ab2e71df4">hidden</a> = <span class="keyword">false</span>; }</div> +<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="class_graphic.html#a792a7fdf0b443834025028dbee507cd7"> 92</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#a792a7fdf0b443834025028dbee507cd7">Luminous</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a3a427eeadbeeacedc27c09a07c30769e">luminous</a>;}</div> +<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="class_graphic.html#a1eac3a5cb01a2fae314104d83a6231b1"> 93</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#a1eac3a5cb01a2fae314104d83a6231b1">SetLuminous</a>(<span class="keywordtype">bool</span> l) { <a class="code" href="class_graphic.html#a3a427eeadbeeacedc27c09a07c30769e">luminous</a> = l; }</div> +<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="class_graphic.html#a6e75a3840bef77b57c324d9453379e87"> 94</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#a6e75a3840bef77b57c324d9453379e87">Translucent</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a42a8b66f57ecc1735140a9b7d9a26714">trans</a>; }</div> +<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="class_graphic.html#aa6b06060e7e05b4c9d8be3403d4fd9cf"> 95</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#aa6b06060e7e05b4c9d8be3403d4fd9cf">CastsShadow</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#ad2fbdf4911c40e812fd505dc2790d146">shadow</a>; }</div> +<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="class_graphic.html#afca25acd12f478fe5b3ffd90e481b515"> 96</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#afca25acd12f478fe5b3ffd90e481b515">SetShadow</a>(<span class="keywordtype">bool</span> s) { <a class="code" href="class_graphic.html#ad2fbdf4911c40e812fd505dc2790d146">shadow</a> = s; }</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div> +<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="class_graphic.html#ae23d47d0eeea992b13a1edfac427e1db"> 98</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#ae23d47d0eeea992b13a1edfac427e1db">IsSolid</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div> +<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="class_graphic.html#ac5bcffeb4ef2d2899978e2d18aa3a2c4"> 99</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#ac5bcffeb4ef2d2899978e2d18aa3a2c4">IsSprite</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div> +<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="class_graphic.html#ab27f5823ee4ed4ac68abae2d47ef3617"> 100</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#ab27f5823ee4ed4ac68abae2d47ef3617">IsBolt</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div> +<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="class_graphic.html#a6796d09be7dcff5fb79b5cf2db848fc2"> 101</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#a6796d09be7dcff5fb79b5cf2db848fc2">IsQuad</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div> +<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div> +<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#afa0032605ff4286930c15c4427e8a1e2">ProjectScreenRect</a>(<a class="code" href="class_projector.html">Projector</a>* p);</div> +<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="class_graphic.html#a5fb16d4690c8d15dc440daca59f6ce69"> 104</a></span>  <span class="keyword">const</span> <a class="code" href="struct_rect.html">Rect</a>& <a class="code" href="class_graphic.html#a5fb16d4690c8d15dc440daca59f6ce69">ScreenRect</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#a542f61fed846b20f613e6b34c97a2c4c">screen_rect</a>; }</div> +<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="class_graphic.html#ad61de5b90b46c991775d8fc41a9a1538"> 105</a></span>  <span class="keyword">virtual</span> <a class="code" href="class_scene.html">Scene</a>* <a class="code" href="class_graphic.html#ad61de5b90b46c991775d8fc41a9a1538">GetScene</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_graphic.html#ab3a0ecdf867c61704fdca3d2414ace21">scene</a>; }</div> +<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="class_graphic.html#ab1fabea1e72af003bf3c6c40d9d0504e"> 106</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_graphic.html#ab1fabea1e72af003bf3c6c40d9d0504e">SetScene</a>(<a class="code" href="class_scene.html">Scene</a>*s) { <a class="code" href="class_graphic.html#ab3a0ecdf867c61704fdca3d2414ace21">scene</a> = s; }</div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div> +<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a21666bd4f981a86fd5691fba9288d121">CheckRayIntersection</a>(<a class="code" href="struct_point.html">Point</a> pt, <a class="code" href="struct_point.html">Point</a> vpn, <span class="keywordtype">double</span> len, <a class="code" href="struct_point.html">Point</a>& ipt,</div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">bool</span> treat_translucent_polys_as_solid=<span class="keyword">true</span>);</div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#a4aa480e60ebb6f5e4a3ee4823c824130">CheckVisibility</a>(<a class="code" href="class_projector.html">Projector</a>& projector);</div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div> +<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">protected</span>:</div> +<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="class_graphic.html#aadc61239d71531159b4c1dfbffcc0fef"> 114</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#aadc61239d71531159b4c1dfbffcc0fef">id_key</a>;</div> +<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div> +<div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="class_graphic.html#a7e4243c1c9493037fcd1d49b9bb48b5a"> 116</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a7e4243c1c9493037fcd1d49b9bb48b5a">id</a>;</div> +<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="class_graphic.html#a9ce2c536ee7744836ddde006907df8e7"> 117</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_graphic.html#a9ce2c536ee7744836ddde006907df8e7">loc</a>;</div> +<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="class_graphic.html#ace18b045c25a16edddd7043325f510e1"> 118</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_graphic.html#ace18b045c25a16edddd7043325f510e1">depth</a>;</div> +<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="class_graphic.html#a375d4c28b1feb40e12fb5a7cbba6a59c"> 119</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_graphic.html#a375d4c28b1feb40e12fb5a7cbba6a59c">radius</a>;</div> +<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="class_graphic.html#a9c6002a0b627353298e301a8cac2f908"> 120</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_graphic.html#a9c6002a0b627353298e301a8cac2f908">life</a>;</div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div> +<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="class_graphic.html#af4000b75e733400ec0dbad1e5feab070"> 122</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#af4000b75e733400ec0dbad1e5feab070">visible</a>;</div> +<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="class_graphic.html#a20d242e3ef5a0541d82ab6306c59f844"> 123</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#a20d242e3ef5a0541d82ab6306c59f844">infinite</a>;</div> +<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="class_graphic.html#a2db5a56ccc5ada1ec173e0e9ae43c967"> 124</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#a2db5a56ccc5ada1ec173e0e9ae43c967">foreground</a>;</div> +<div class="line"><a name="l00125"></a><span class="lineno"><a class="code" href="class_graphic.html#aa13f6b8f455b988485d5580a05499909"> 125</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#aa13f6b8f455b988485d5580a05499909">background</a>;</div> +<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="class_graphic.html#af103ab0a666852c310e05c5ab2e71df4"> 126</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#af103ab0a666852c310e05c5ab2e71df4">hidden</a>;</div> +<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="class_graphic.html#a42a8b66f57ecc1735140a9b7d9a26714"> 127</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#a42a8b66f57ecc1735140a9b7d9a26714">trans</a>;</div> +<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="class_graphic.html#ad2fbdf4911c40e812fd505dc2790d146"> 128</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#ad2fbdf4911c40e812fd505dc2790d146">shadow</a>;</div> +<div class="line"><a name="l00129"></a><span class="lineno"><a class="code" href="class_graphic.html#a3a427eeadbeeacedc27c09a07c30769e"> 129</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_graphic.html#a3a427eeadbeeacedc27c09a07c30769e">luminous</a>;</div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div> +<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="class_graphic.html#a542f61fed846b20f613e6b34c97a2c4c"> 131</a></span>  <a class="code" href="struct_rect.html">Rect</a> <a class="code" href="class_graphic.html#a542f61fed846b20f613e6b34c97a2c4c">screen_rect</a>;</div> +<div class="line"><a name="l00132"></a><span class="lineno"><a class="code" href="class_graphic.html#ab3a0ecdf867c61704fdca3d2414ace21"> 132</a></span>  <a class="code" href="class_scene.html">Scene</a>* <a class="code" href="class_graphic.html#ab3a0ecdf867c61704fdca3d2414ace21">scene</a>;</div> +<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="class_graphic.html#a04c19c760ee2e12335ee14352dffd9f4"> 133</a></span>  <span class="keywordtype">char</span> <a class="code" href="class_graphic.html#a04c19c760ee2e12335ee14352dffd9f4">name</a>[32];</div> +<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> };</div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div> +<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="preprocessor">#endif Graphic_h</span></div> +<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="preprocessor"></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_d6625d0f3efd9eb70ff961583505095b.html">nGenEx</a></li><li class="navelem"><a class="el" href="_graphic_8h.html">Graphic.h</a></li> + <li class="footer">Generated on Thu May 31 2012 16:30:54 for Starshatter_Open by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li> + </ul> +</div> +</body> +</html> |