diff options
Diffstat (limited to 'Doc/doxygen/html/_polygon_8h_source.html')
-rw-r--r-- | Doc/doxygen/html/_polygon_8h_source.html | 276 |
1 files changed, 276 insertions, 0 deletions
diff --git a/Doc/doxygen/html/_polygon_8h_source.html b/Doc/doxygen/html/_polygon_8h_source.html new file mode 100644 index 0000000..cdd0c1c --- /dev/null +++ b/Doc/doxygen/html/_polygon_8h_source.html @@ -0,0 +1,276 @@ +<!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/Polygon.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('_polygon_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">Polygon.h</div> </div> +</div><!--header--> +<div class="contents"> +<a href="_polygon_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: Polygon.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"> Polygon structures: VertexSet, Poly, Material</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 Polygon_h</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span><span class="preprocessor">#define Polygon_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> </div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">class </span><a class="code" href="class_bitmap.html">Bitmap</a>;</div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">struct </span><a class="code" href="struct_poly.html">Poly</a>;</div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">struct </span><a class="code" href="struct_material.html">Material</a>;</div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">struct </span><a class="code" href="struct_vertex_set.html">VertexSet</a>;</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="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> +<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="struct_poly.html"> 30</a></span> <span class="keyword">struct </span><a class="code" href="struct_poly.html">Poly</a></div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> {</div> +<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="struct_poly.html#ac3a80b683db4813a63ff2ed689e36c7b"> 32</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_poly.html#ac3a80b683db4813a63ff2ed689e36c7b">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Poly"</span>; }</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> +<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="struct_poly.html#ae2c92fe9c9142abec17e80275f2a5addadb30b65bd586bb1df9053f215020d66a"> 34</a></span>  <span class="keyword">enum</span> { <a class="code" href="struct_poly.html#ae2c92fe9c9142abec17e80275f2a5addadb30b65bd586bb1df9053f215020d66a">MAX_VERTS</a> = 4 };</div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div> +<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="struct_poly.html#aa3def076b74bed67904976ad4f9fe9b1"> 36</a></span>  <a class="code" href="struct_poly.html#aa3def076b74bed67904976ad4f9fe9b1">Poly</a>() { }</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="struct_poly.html#aa3def076b74bed67904976ad4f9fe9b1">Poly</a>(<span class="keywordtype">int</span> init);</div> +<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="struct_poly.html#a2f8530284140c31c0aa391dd4d0b61be"> 38</a></span>  <a class="code" href="struct_poly.html#a2f8530284140c31c0aa391dd4d0b61be">~Poly</a>() { }</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="struct_poly.html#ae0e61a1cab53f9be63fb997d7880d671"> 40</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_poly.html#ae0e61a1cab53f9be63fb997d7880d671">operator < </a>(<span class="keyword">const</span> <a class="code" href="struct_poly.html">Poly</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_poly.html#ad974f3a8d591a1dc5455d40f7c106dd5">sortval</a> < p.<a class="code" href="struct_poly.html#ad974f3a8d591a1dc5455d40f7c106dd5">sortval</a>; }</div> +<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="struct_poly.html#ad6e9fa2eaedfe63f1ddf8afaeb81d669"> 41</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_poly.html#ad6e9fa2eaedfe63f1ddf8afaeb81d669">operator == </a>(<span class="keyword">const</span> <a class="code" href="struct_poly.html">Poly</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span> == &p; }</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">int</span> <a class="code" href="struct_poly.html#a59d6612e72067b94da2d772b74b3eee9">Contains</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& pt) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> +<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="struct_poly.html#a7c282f5bb936e91855269f710bcbcff7"> 45</a></span>  BYTE <a class="code" href="struct_poly.html#a7c282f5bb936e91855269f710bcbcff7">nverts</a>;</div> +<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="struct_poly.html#ae835e02d0cedbf5229bcb958688f9313"> 46</a></span>  BYTE <a class="code" href="struct_poly.html#ae835e02d0cedbf5229bcb958688f9313">visible</a>;</div> +<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="struct_poly.html#a1b2335f28a4e7bb98956928ee0f0e00e"> 47</a></span>  WORD <a class="code" href="struct_poly.html#a1b2335f28a4e7bb98956928ee0f0e00e">verts</a>[<a class="code" href="struct_poly.html#ae2c92fe9c9142abec17e80275f2a5addadb30b65bd586bb1df9053f215020d66a">MAX_VERTS</a>];</div> +<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="struct_poly.html#a58e80ea7ba4831cbc6384519fd9b728d"> 48</a></span>  WORD <a class="code" href="struct_poly.html#a58e80ea7ba4831cbc6384519fd9b728d">vlocs</a>[<a class="code" href="struct_poly.html#ae2c92fe9c9142abec17e80275f2a5addadb30b65bd586bb1df9053f215020d66a">MAX_VERTS</a>];</div> +<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="struct_poly.html#a17e3c99c231b235ee402eb5ea6982d1b"> 49</a></span>  <a class="code" href="struct_vertex_set.html">VertexSet</a>* <a class="code" href="struct_poly.html#a17e3c99c231b235ee402eb5ea6982d1b">vertex_set</a>;</div> +<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="struct_poly.html#adac6649f5a8a049c8da2c0b34b022bd1"> 50</a></span>  <a class="code" href="struct_material.html">Material</a>* <a class="code" href="struct_poly.html#adac6649f5a8a049c8da2c0b34b022bd1">material</a>;</div> +<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="struct_poly.html#ad974f3a8d591a1dc5455d40f7c106dd5"> 51</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_poly.html#ad974f3a8d591a1dc5455d40f7c106dd5">sortval</a>;</div> +<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="struct_poly.html#a2d4e2e43f3e76c290723f43452f86bf9"> 52</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_poly.html#a2d4e2e43f3e76c290723f43452f86bf9">flatness</a>;</div> +<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="struct_poly.html#a5be012ca0623a37857a9ab897c6c731d"> 53</a></span>  <a class="code" href="struct_plane.html">Plane</a> <a class="code" href="struct_poly.html#a5be012ca0623a37857a9ab897c6c731d">plane</a>;</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> };</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> +<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="struct_material.html"> 58</a></span> <span class="keyword">struct </span><a class="code" href="struct_material.html">Material</a></div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> {</div> +<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="struct_material.html#a4a6a284293154934980998c66e07177a"> 60</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_material.html#a4a6a284293154934980998c66e07177a">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Material"</span>; }</div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div> +<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="struct_material.html#a03682b58e2fa63d7dde835c731ad15d5a1edca6b8a06e4a7b19a7c332aec4a40d"> 62</a></span>  <span class="keyword">enum</span> <a class="code" href="struct_material.html#a03682b58e2fa63d7dde835c731ad15d5">BLEND_TYPE</a> { <a class="code" href="struct_material.html#a03682b58e2fa63d7dde835c731ad15d5aba76a5434b835451b8dd25d629c2607c">MTL_SOLID</a>=1, <a class="code" href="struct_material.html#a03682b58e2fa63d7dde835c731ad15d5a1edca6b8a06e4a7b19a7c332aec4a40d">MTL_TRANSLUCENT</a>=2, <a class="code" href="struct_material.html#a03682b58e2fa63d7dde835c731ad15d5a1f20b657606a788ea3f63d0b71e7a59f">MTL_ADDITIVE</a>=4 };</div> +<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="struct_material.html#a520bcbf3d8b173b0cbbe84e8c22dac1fa89e33f1a5c91b45382a002b9a3ae1570"> 63</a></span>  <span class="keyword">enum</span> { <a class="code" href="struct_material.html#a520bcbf3d8b173b0cbbe84e8c22dac1fa89e33f1a5c91b45382a002b9a3ae1570">NAMELEN</a>=32 };</div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="struct_material.html#a137e987401b63eb7c6c27c3e38bc74b5">Material</a>();</div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="struct_material.html#a2c19452d71f54075df8f5405b03129f4">~Material</a>();</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">int</span> <a class="code" href="struct_material.html#a64899b6820f52ecc9eac8fda9316813c">operator == </a>(<span class="keyword">const</span> <a class="code" href="struct_material.html">Material</a>& m) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">void</span> <a class="code" href="struct_material.html#aaba0d4cf45db1101fa31360fe7a4bdb5">Clear</a>();</div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div> +<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="struct_material.html#ae4469bbe1045ff827b5172edb07ec787"> 72</a></span>  <span class="keywordtype">char</span> <a class="code" href="struct_material.html#ae4469bbe1045ff827b5172edb07ec787">name</a>[<a class="code" href="struct_material.html#a520bcbf3d8b173b0cbbe84e8c22dac1fa89e33f1a5c91b45382a002b9a3ae1570">NAMELEN</a>];</div> +<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="struct_material.html#aec6903f5ffa2346a7fcf5c51ed870d68"> 73</a></span>  <span class="keywordtype">char</span> <a class="code" href="struct_material.html#aec6903f5ffa2346a7fcf5c51ed870d68">shader</a>[<a class="code" href="struct_material.html#a520bcbf3d8b173b0cbbe84e8c22dac1fa89e33f1a5c91b45382a002b9a3ae1570">NAMELEN</a>];</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="struct_material.html#a7ccfd56c0310ca12545afb515e81b85f"> 75</a></span>  <a class="code" href="class_color_value.html">ColorValue</a> <a class="code" href="struct_material.html#a7ccfd56c0310ca12545afb515e81b85f">Ka</a>; <span class="comment">// ambient color</span></div> +<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="struct_material.html#a05b646c99f9ab5df7092109916b506a6"> 76</a></span>  <a class="code" href="class_color_value.html">ColorValue</a> <a class="code" href="struct_material.html#a05b646c99f9ab5df7092109916b506a6">Kd</a>; <span class="comment">// diffuse color</span></div> +<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="struct_material.html#a03326968d7c667605aa2f70f8a551444"> 77</a></span>  <a class="code" href="class_color_value.html">ColorValue</a> <a class="code" href="struct_material.html#a03326968d7c667605aa2f70f8a551444">Ks</a>; <span class="comment">// specular color</span></div> +<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="struct_material.html#ae0c2078b3d06c40fb9f875328e48458b"> 78</a></span>  <a class="code" href="class_color_value.html">ColorValue</a> <a class="code" href="struct_material.html#ae0c2078b3d06c40fb9f875328e48458b">Ke</a>; <span class="comment">// emissive color</span></div> +<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="struct_material.html#a40f9d86ecf678d45c4334f5d57a6cba7"> 79</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_material.html#a40f9d86ecf678d45c4334f5d57a6cba7">power</a>; <span class="comment">// highlight sharpness (big=shiny)</span></div> +<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="struct_material.html#a6d9386e552d54e3af046e6ac82344b08"> 80</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_material.html#a6d9386e552d54e3af046e6ac82344b08">brilliance</a>; <span class="comment">// diffuse power function</span></div> +<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="struct_material.html#a9a2a6dbf9813485b5ff99b4ae823ccb3"> 81</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_material.html#a9a2a6dbf9813485b5ff99b4ae823ccb3">bump</a>; <span class="comment">// bump level (0=none)</span></div> +<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="struct_material.html#a53984e10e1834eceb1b74d18a0f01021"> 82</a></span>  DWORD <a class="code" href="struct_material.html#a53984e10e1834eceb1b74d18a0f01021">blend</a>; <span class="comment">// alpha blend type</span></div> +<div class="line"><a name="l00083"></a><span class="lineno"><a class="code" href="struct_material.html#a0e8b3aa08dcf57340fea05bbdf05ea4a"> 83</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_material.html#a0e8b3aa08dcf57340fea05bbdf05ea4a">shadow</a>; <span class="comment">// casts shadow</span></div> +<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="struct_material.html#a9e0108950d9f5491378521d66ac62cce"> 84</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_material.html#a9e0108950d9f5491378521d66ac62cce">luminous</a>; <span class="comment">// verts have their own lighting</span></div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div> +<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="struct_material.html#a1d848bfac5c7f17f91557fd23c44b101"> 86</a></span>  <a class="code" href="class_bitmap.html">Bitmap</a>* <a class="code" href="struct_material.html#a1d848bfac5c7f17f91557fd23c44b101">tex_diffuse</a>;</div> +<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="struct_material.html#a97ced80ac2d8c1f0ef775477990af075"> 87</a></span>  <a class="code" href="class_bitmap.html">Bitmap</a>* <a class="code" href="struct_material.html#a97ced80ac2d8c1f0ef775477990af075">tex_specular</a>;</div> +<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="struct_material.html#a47ed067eab2b560e370504d81852b935"> 88</a></span>  <a class="code" href="class_bitmap.html">Bitmap</a>* <a class="code" href="struct_material.html#a47ed067eab2b560e370504d81852b935">tex_bumpmap</a>;</div> +<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="struct_material.html#a9fa2bcd7f6ed2b43050629b55b87f030"> 89</a></span>  <a class="code" href="class_bitmap.html">Bitmap</a>* <a class="code" href="struct_material.html#a9fa2bcd7f6ed2b43050629b55b87f030">tex_emissive</a>;</div> +<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="struct_material.html#a626e419ce051501f1e42053556e7da0f"> 90</a></span>  <a class="code" href="class_bitmap.html">Bitmap</a>* <a class="code" href="struct_material.html#a626e419ce051501f1e42053556e7da0f">tex_alternate</a>;</div> +<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="struct_material.html#a84da46b60cffcfa54aec42729a632538"> 91</a></span>  <a class="code" href="class_bitmap.html">Bitmap</a>* <a class="code" href="struct_material.html#a84da46b60cffcfa54aec42729a632538">tex_detail</a>;</div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div> +<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="struct_material.html#a6d91a735da85f4b71e8a3c72cd41791e"> 93</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_material.html#a6d91a735da85f4b71e8a3c72cd41791e">IsSolid</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_material.html#a53984e10e1834eceb1b74d18a0f01021">blend</a> == <a class="code" href="struct_material.html#a03682b58e2fa63d7dde835c731ad15d5aba76a5434b835451b8dd25d629c2607c">MTL_SOLID</a>; }</div> +<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="struct_material.html#a68165fc0818d3dfea81beb28ea82964b"> 94</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_material.html#a68165fc0818d3dfea81beb28ea82964b">IsTranslucent</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_material.html#a53984e10e1834eceb1b74d18a0f01021">blend</a> == <a class="code" href="struct_material.html#a03682b58e2fa63d7dde835c731ad15d5a1edca6b8a06e4a7b19a7c332aec4a40d">MTL_TRANSLUCENT</a>; }</div> +<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="struct_material.html#ada5a8c50624e5e3517a696e724f085af"> 95</a></span>  <span class="keywordtype">bool</span> <a class="code" href="struct_material.html#ada5a8c50624e5e3517a696e724f085af">IsGlowing</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="struct_material.html#a53984e10e1834eceb1b74d18a0f01021">blend</a> == <a class="code" href="struct_material.html#a03682b58e2fa63d7dde835c731ad15d5a1f20b657606a788ea3f63d0b71e7a59f">MTL_ADDITIVE</a>; }</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_material.html#a9dd52a511289bfc29737084df23d2b2d">GetShader</a>(<span class="keywordtype">int</span> n) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="comment">//</span></div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// Support for Magic GUI</span></div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">//</span></div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div> +<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="struct_material.html#ad1352cb440d739d1d1c3cac9206a1882"> 102</a></span>  <a class="code" href="class_color.html">Color</a> <a class="code" href="struct_material.html#ad1352cb440d739d1d1c3cac9206a1882">ambient_color</a>;</div> +<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="struct_material.html#a1547c9ea472db2db3bbe30ce41b701ab"> 103</a></span>  <a class="code" href="class_color.html">Color</a> <a class="code" href="struct_material.html#a1547c9ea472db2db3bbe30ce41b701ab">diffuse_color</a>;</div> +<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="struct_material.html#acf865f0ffed7c19e627cc3a63d2ebafa"> 104</a></span>  <a class="code" href="class_color.html">Color</a> <a class="code" href="struct_material.html#acf865f0ffed7c19e627cc3a63d2ebafa">specular_color</a>;</div> +<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="struct_material.html#a5f0aae034787f03b5007e579e57ad597"> 105</a></span>  <a class="code" href="class_color.html">Color</a> <a class="code" href="struct_material.html#a5f0aae034787f03b5007e579e57ad597">emissive_color</a>;</div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div> +<div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="struct_material.html#a38c5aaa9fa49e490963ed174c5a528a6"> 107</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_material.html#a38c5aaa9fa49e490963ed174c5a528a6">ambient_value</a>;</div> +<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="struct_material.html#a1d317e0043a5f3b63af5f7d15b107024"> 108</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_material.html#a1d317e0043a5f3b63af5f7d15b107024">diffuse_value</a>;</div> +<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="struct_material.html#a0454007b787a706776be8d0e4441f202"> 109</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_material.html#a0454007b787a706776be8d0e4441f202">specular_value</a>;</div> +<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="struct_material.html#a6d8d6fed7762c9cfc002f7de00e3345b"> 110</a></span>  <span class="keywordtype">float</span> <a class="code" href="struct_material.html#a6d8d6fed7762c9cfc002f7de00e3345b">emissive_value</a>;</div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div> +<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="struct_material.html#afef9c383645db3df7ab524bba19ec45f"> 112</a></span>  <a class="code" href="class_bitmap.html">Bitmap</a>* <a class="code" href="struct_material.html#afef9c383645db3df7ab524bba19ec45f">thumbnail</a>; <span class="comment">// preview image</span></div> +<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div> +<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordtype">void</span> <a class="code" href="struct_material.html#aff217998115a778a558e816da9107173">CreateThumbnail</a>(<span class="keywordtype">int</span> size=128);</div> +<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  DWORD <a class="code" href="struct_material.html#a73ffea2fc38dda32225057a5e08f70e5">GetThumbColor</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, <span class="keywordtype">int</span> size);</div> +<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> };</div> +<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div> +<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="struct_vertex_set.html"> 120</a></span> <span class="keyword">struct </span><a class="code" href="struct_vertex_set.html">VertexSet</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="struct_vertex_set.html#acb65486e7a06a1142542540c670aa45b"> 122</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="struct_vertex_set.html#acb65486e7a06a1142542540c670aa45b">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"VertexSet"</span>; }</div> +<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div> +<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#a61963affc5529847bdfd7a180441bb5ba9a4c73aba6c9012403d59cd3500f9317"> 124</a></span>  <span class="keyword">enum</span> <a class="code" href="struct_vertex_set.html#a61963affc5529847bdfd7a180441bb5b">VertexSpaces</a> { <a class="code" href="struct_vertex_set.html#a61963affc5529847bdfd7a180441bb5baeb5a23f3a7e9eff07e4bf7aeea7c56c9">OBJECT_SPACE</a>, <a class="code" href="struct_vertex_set.html#a61963affc5529847bdfd7a180441bb5ba9a4c73aba6c9012403d59cd3500f9317">WORLD_SPACE</a>, <a class="code" href="struct_vertex_set.html#a61963affc5529847bdfd7a180441bb5ba0838d1bb71ec5a8415fef65de055fb68">VIEW_SPACE</a>, <a class="code" href="struct_vertex_set.html#a61963affc5529847bdfd7a180441bb5ba984273c8474612551085ddef31a380e6">SCREEN_SPACE</a> };</div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="struct_vertex_set.html#adf5177428a5141cff437142b6826791d">VertexSet</a>(<span class="keywordtype">int</span> m);</div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="struct_vertex_set.html#a0af0ebaf2ba75c5f3fd5f3c5b3e21d98">~VertexSet</a>();</div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">void</span> <a class="code" href="struct_vertex_set.html#a48c8f140d1ac968858894aec1d7d98eb">Resize</a>(<span class="keywordtype">int</span> m, <span class="keywordtype">bool</span> preserve=<span class="keyword">false</span>);</div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordtype">void</span> <a class="code" href="struct_vertex_set.html#aa822ada7a645fd4a02d0d4e6f73c722f">Delete</a>();</div> +<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordtype">void</span> <a class="code" href="struct_vertex_set.html#a77dc63334e53ad7bf54675637a5688ee">Clear</a>();</div> +<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordtype">void</span> <a class="code" href="struct_vertex_set.html#a703e37a8ea6b3ab593f0c72796a5debb">CreateTangents</a>();</div> +<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordtype">void</span> <a class="code" href="struct_vertex_set.html#aaac6cbe561e8f60d0416d73f95ea8315">CreateAdditionalTexCoords</a>();</div> +<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordtype">bool</span> <a class="code" href="struct_vertex_set.html#a552e9f0f407be380e059a0d2f61102bd">CopyVertex</a>(<span class="keywordtype">int</span> dst, <span class="keywordtype">int</span> src);</div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">void</span> <a class="code" href="struct_vertex_set.html#a7b9612d23f8944a583d9240a599b2b2f">CalcExtents</a>(<a class="code" href="struct_point.html">Point</a>& plus, <a class="code" href="struct_point.html">Point</a>& minus);</div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="struct_vertex_set.html">VertexSet</a>* <a class="code" href="struct_vertex_set.html#aca496bb2c4d95b554207f6ce7d542dcc">Clone</a>() <span class="keyword">const</span>;</div> +<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div> +<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#a4942a5af779580847cfe7036b4ba5c3f"> 139</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_vertex_set.html#a4942a5af779580847cfe7036b4ba5c3f">nverts</a>;</div> +<div class="line"><a name="l00140"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#aef7dccad360b3a24b2b54ca2777fa8fb"> 140</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_vertex_set.html#aef7dccad360b3a24b2b54ca2777fa8fb">space</a>;</div> +<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div> +<div class="line"><a name="l00142"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#ace261b0101f85d89b26e2fbfec6a8c28"> 142</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>* <a class="code" href="struct_vertex_set.html#ace261b0101f85d89b26e2fbfec6a8c28">loc</a>;</div> +<div class="line"><a name="l00143"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#a8ec6916c3e1db17ea271ccaa7a839b07"> 143</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>* <a class="code" href="struct_vertex_set.html#a8ec6916c3e1db17ea271ccaa7a839b07">nrm</a>;</div> +<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#ac12e65ea6e67cd041cbcdf146d92f2b0"> 144</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>* <a class="code" href="struct_vertex_set.html#ac12e65ea6e67cd041cbcdf146d92f2b0">s_loc</a>;</div> +<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#adba10fd9cb37e93c50aa52edab55e757"> 145</a></span>  <span class="keywordtype">float</span>* <a class="code" href="struct_vertex_set.html#adba10fd9cb37e93c50aa52edab55e757">rw</a>;</div> +<div class="line"><a name="l00146"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#af62b2db3dc8405d7061691a67339604d"> 146</a></span>  <span class="keywordtype">float</span>* <a class="code" href="struct_vertex_set.html#af62b2db3dc8405d7061691a67339604d">tu</a>;</div> +<div class="line"><a name="l00147"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#a49d11e5c7d4b3026a5ee92052ff65a9f"> 147</a></span>  <span class="keywordtype">float</span>* <a class="code" href="struct_vertex_set.html#a49d11e5c7d4b3026a5ee92052ff65a9f">tv</a>;</div> +<div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#a596bbe94e0ab7b862ef0cc3f199df8ec"> 148</a></span>  <span class="keywordtype">float</span>* <a class="code" href="struct_vertex_set.html#a596bbe94e0ab7b862ef0cc3f199df8ec">tu1</a>;</div> +<div class="line"><a name="l00149"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#a6a1b57b8faf21a1fabe96f5ca19a65b4"> 149</a></span>  <span class="keywordtype">float</span>* <a class="code" href="struct_vertex_set.html#a6a1b57b8faf21a1fabe96f5ca19a65b4">tv1</a>;</div> +<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#aba2d775c75be70d0d821281d2f02d788"> 150</a></span>  DWORD* <a class="code" href="struct_vertex_set.html#aba2d775c75be70d0d821281d2f02d788">diffuse</a>;</div> +<div class="line"><a name="l00151"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#a2bf3f3497ac0ec9369021a36bd6f50a8"> 151</a></span>  DWORD* <a class="code" href="struct_vertex_set.html#a2bf3f3497ac0ec9369021a36bd6f50a8">specular</a>;</div> +<div class="line"><a name="l00152"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#ace2fcfede30409e0e2f46c436e5a316d"> 152</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>* <a class="code" href="struct_vertex_set.html#ace2fcfede30409e0e2f46c436e5a316d">tangent</a>;</div> +<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="struct_vertex_set.html#a6c7699a062c145796c74db14dd8db5c3"> 153</a></span>  <a class="code" href="struct_vec3.html">Vec3</a>* <a class="code" href="struct_vertex_set.html#a6c7699a062c145796c74db14dd8db5c3">binormal</a>;</div> +<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> };</div> +<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div> +<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div> +<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor">#endif Polygon_h</span></div> +<div class="line"><a name="l00159"></a><span class="lineno"> 159</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="_polygon_8h.html">Polygon.h</a></li> + <li class="footer">Generated on Tue Jun 5 2012 20:46:25 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> |