diff options
Diffstat (limited to 'Doc/doxygen/html/_projector_8h_source.html')
-rw-r--r-- | Doc/doxygen/html/_projector_8h_source.html | 223 |
1 files changed, 223 insertions, 0 deletions
diff --git a/Doc/doxygen/html/_projector_8h_source.html b/Doc/doxygen/html/_projector_8h_source.html new file mode 100644 index 0000000..ffa7188 --- /dev/null +++ b/Doc/doxygen/html/_projector_8h_source.html @@ -0,0 +1,223 @@ +<!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/Projector.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('_projector_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">Projector.h</div> </div> +</div><!--header--> +<div class="contents"> +<a href="_projector_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: Projector.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"> 3D Projection Camera class</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 Projector_h</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span><span class="preprocessor">#define Projector_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="_window_8h.html">Window.h</a>"</span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="_camera_8h.html">Camera.h</a>"</span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="_polygon_8h.html">Polygon.h</a>"</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="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> +<div class="line"><a name="l00025"></a><span class="lineno"><a class="code" href="class_projector.html"> 25</a></span> <span class="keyword">class </span><a class="code" href="class_projector.html">Projector</a></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <a class="code" href="class_projector.html#a3dea9ea39ca8ce8aa34d0ef387b3fbd4">Projector</a>(<a class="code" href="class_window.html">Window</a>* win, <a class="code" href="class_camera.html">Camera</a>* cam);</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keyword">virtual</span> <a class="code" href="class_projector.html#a24513cbefdcc21dc3dec3ff76f7483b4">~Projector</a>();</div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="comment">// Operations:</span></div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a67b6267f212570f860a20d0851acb2a8">UseWindow</a>(<a class="code" href="class_window.html">Window</a>* win);</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a26208b90e7d335aaedd874eadb0c03c4">UseCamera</a>(<a class="code" href="class_camera.html">Camera</a>* cam);</div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a0f51a0d909a8de0956c0523daf934d37">SetDepthScale</a>(<span class="keywordtype">float</span> scale);</div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="class_projector.html#a7823eb400424937bf91edcb565f0e989">GetDepthScale</a>() <span class="keyword">const</span>;</div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a5150cfb730462a2ae5be1368a72d1fc1">SetFieldOfView</a>(<span class="keywordtype">double</span> fov);</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="class_projector.html#adf86da1d518865df77b7594fe9c2aca3">GetFieldOfView</a>() <span class="keyword">const</span>;</div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_projector.html#a171bd11f7dd28f6fe87427dfc915ac6a">SetInfinite</a>(<span class="keywordtype">int</span> i);</div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a697cc10897fa7d1ed2b210e8bc8f0416">StartFrame</a>();</div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// accessor:</span></div> +<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="class_projector.html#a93cbaf0c085bfaa8b003148a8206954d"> 42</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_projector.html#a93cbaf0c085bfaa8b003148a8206954d">Pos</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_projector.html#a137a33c132cad67bc756f91573d2ee8d">camera</a>-><a class="code" href="class_camera.html#a2a54ce5f1212212653acafa59809ce49">Pos</a>(); }</div> +<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="class_projector.html#a96bfb757bba52751f57105a08b2682d4"> 43</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_projector.html#a96bfb757bba52751f57105a08b2682d4">vrt</a>() { <span class="keywordflow">return</span> <a class="code" href="class_projector.html#a137a33c132cad67bc756f91573d2ee8d">camera</a>-><a class="code" href="class_camera.html#a276d8f65ae6c09a07add9f63bd356704">vrt</a>(); }</div> +<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="class_projector.html#a325968ea53efb3208e090697074acf30"> 44</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_projector.html#a325968ea53efb3208e090697074acf30">vup</a>() { <span class="keywordflow">return</span> <a class="code" href="class_projector.html#a137a33c132cad67bc756f91573d2ee8d">camera</a>-><a class="code" href="class_camera.html#a38ab2061d58da025e9c95267505686ab">vup</a>(); }</div> +<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="class_projector.html#a2fca456713d9d91ea07df80f1048196f"> 45</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_projector.html#a2fca456713d9d91ea07df80f1048196f">vpn</a>() { <span class="keywordflow">return</span> <a class="code" href="class_projector.html#a137a33c132cad67bc756f91573d2ee8d">camera</a>-><a class="code" href="class_camera.html#a6767fa21da7413fe049cf64eed98f02f">vpn</a>(); }</div> +<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="class_projector.html#a1de8a0966c41a141c1c322dcc2eaa0ee"> 46</a></span>  <span class="keyword">const</span> <a class="code" href="struct_matrix.html">Matrix</a>& <a class="code" href="class_projector.html#a1de8a0966c41a141c1c322dcc2eaa0ee">Orientation</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_projector.html#a137a33c132cad67bc756f91573d2ee8d">camera</a>-><a class="code" href="class_camera.html#a6d34215f3a9eb4a163d0dfbac4a76dab">Orientation</a>(); }</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div> +<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="class_projector.html#ae94b7cd2c8cf79e09af05ede625164e3"> 48</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_projector.html#ae94b7cd2c8cf79e09af05ede625164e3">XAngle</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_projector.html#a1b65a45585dd30f712eddad7225447a4">xangle</a>; }</div> +<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="class_projector.html#a971223ccc29717660854d537defa38e9"> 49</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_projector.html#a971223ccc29717660854d537defa38e9">YAngle</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_projector.html#a30013cdc576214dcd85725e8805deb9d">yangle</a>; }</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div> +<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="class_projector.html#ac5b05be000ab4940841f5bff0203552d"> 51</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_projector.html#ac5b05be000ab4940841f5bff0203552d">IsOrthogonal</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_projector.html#a90464faee2f797a7c9621fd03184cba1">orthogonal</a>; }</div> +<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="class_projector.html#adea640474fa4e930bb1faf72b7a7f5a8"> 52</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_projector.html#adea640474fa4e930bb1faf72b7a7f5a8">SetOrthogonal</a>(<span class="keywordtype">bool</span> o) { <a class="code" href="class_projector.html#a90464faee2f797a7c9621fd03184cba1">orthogonal</a> = o; }</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="comment">// projection and clipping geometry:</span></div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#add21d33e99c41fb24985cd28b31b136c">Transform</a>(<a class="code" href="struct_vec3.html">Vec3</a>& vec) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#add21d33e99c41fb24985cd28b31b136c">Transform</a>(<a class="code" href="struct_point.html">Point</a>& point) <span class="keyword">const</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"> 58</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a29d7a2c159c1ba92c56e24fe2db399ea">Project</a>(<a class="code" href="struct_vec3.html">Vec3</a>& vec, <span class="keywordtype">bool</span> <a class="code" href="_multi_controller_8cpp.html#ab4386a3c477c99034324a61c197c27d4">clamp</a>=<span class="keyword">true</span>) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a29d7a2c159c1ba92c56e24fe2db399ea">Project</a>(<a class="code" href="struct_point.html">Point</a>& point, <span class="keywordtype">bool</span> <a class="code" href="_multi_controller_8cpp.html#ab4386a3c477c99034324a61c197c27d4">clamp</a>=<span class="keyword">true</span>) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a66c25e4f5a1085a1b039b03f9260bf7f">ProjectRect</a>(<a class="code" href="struct_point.html">Point</a>& origin, <span class="keywordtype">double</span>& w, <span class="keywordtype">double</span>& h) <span class="keyword">const</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"> 62</span>  <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="class_projector.html#aff07007f4f61c0eef1676ec218884c27">ProjectRadius</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& vec, <span class="keywordtype">float</span> radius) <span class="keyword">const</span>;</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="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a6b2e7e15c2a2470e772fe82ab2afeea2">Unproject</a>(<a class="code" href="struct_point.html">Point</a>& point) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">int</span> <a class="code" href="class_projector.html#a3bbbe83d9781f286738e24078a500658">IsVisible</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v, <span class="keywordtype">float</span> radius) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">int</span> <a class="code" href="class_projector.html#a5cc78dfff1937c498cc27ae2d15bda4d">IsBoxVisible</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>* p) <span class="keyword">const</span>;</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">float</span> <a class="code" href="class_projector.html#aae65ad2916acf6c48cd118d639509131">ApparentRadius</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3.html">Vec3</a>& v, <span class="keywordtype">float</span> radius) <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"><a class="code" href="class_projector.html#a5df19d18d7709c8fd89d0081da515d12"> 70</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a5df19d18d7709c8fd89d0081da515d12">SetWorldSpace</a>() { <a class="code" href="class_projector.html#a0682d7ef389d83b44dc9b7b88ddaa187">frustum_planes</a> = <a class="code" href="class_projector.html#af7abd1458dadb1a16453bfa7b74580bf">world_planes</a>; }</div> +<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="class_projector.html#a0a2dcc62442989afb83217f8becd66ba"> 71</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a0a2dcc62442989afb83217f8becd66ba">SetViewSpace</a>() { <a class="code" href="class_projector.html#a0682d7ef389d83b44dc9b7b88ddaa187">frustum_planes</a> = <a class="code" href="class_projector.html#ab92dedfb8c690cd9eb11f7050c7174c8">view_planes</a>; }</div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div> +<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="class_projector.html#a612f946d13fb42b05342729c35fa781c"> 73</a></span>  <a class="code" href="struct_plane.html">Plane</a>* <a class="code" href="class_projector.html#a612f946d13fb42b05342729c35fa781c">GetCurrentClipPlanes</a>() { <span class="keywordflow">return</span> <a class="code" href="class_projector.html#a0682d7ef389d83b44dc9b7b88ddaa187">frustum_planes</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"> 75</span>  <span class="keywordtype">void</span> <a class="code" href="class_projector.html#a72f9efe944bf3846c54308c378de6ae9">SetUpFrustum</a>();</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">void</span> <a class="code" href="class_projector.html#af621eadeb953c933d2e490ec5d1e6704">ViewToWorld</a>(<a class="code" href="struct_point.html">Point</a>& pin, <a class="code" href="struct_point.html">Point</a>& pout);</div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">void</span> <a class="code" href="class_projector.html#af621eadeb953c933d2e490ec5d1e6704">ViewToWorld</a>(<a class="code" href="struct_vec3.html">Vec3</a>& vin, <a class="code" href="struct_vec3.html">Vec3</a>& vout);</div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordtype">void</span> <a class="code" href="class_projector.html#aaa9796b992aae72b7b9daa17de393b57">SetWorldspaceClipPlane</a>(<a class="code" href="struct_vec3.html">Vec3</a>& normal, <a class="code" href="struct_plane.html">Plane</a>& plane);</div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div> +<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">protected</span>:</div> +<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="class_projector.html#a137a33c132cad67bc756f91573d2ee8d"> 81</a></span>  <a class="code" href="class_camera.html">Camera</a>* <a class="code" href="class_projector.html#a137a33c132cad67bc756f91573d2ee8d">camera</a>;</div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div> +<div class="line"><a name="l00083"></a><span class="lineno"><a class="code" href="class_projector.html#a6d35ec00348ee119322905288533ae04"> 83</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_projector.html#a6d35ec00348ee119322905288533ae04">width</a>, <a class="code" href="class_projector.html#a20e51ff915afea07c6a4c9a86303f441">height</a>;</div> +<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="class_projector.html#a50e2e1ff4d4124296d2879de4f0dc5e3"> 84</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_projector.html#a50e2e1ff4d4124296d2879de4f0dc5e3">field_of_view</a>;</div> +<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="class_projector.html#a431b0fee5b328f9458f8abb5f253c376"> 85</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_projector.html#a335fc80336e3222305b927276dbd2e5d">xscreenscale</a>, <a class="code" href="class_projector.html#a431b0fee5b328f9458f8abb5f253c376">yscreenscale</a>, <a class="code" href="class_projector.html#af5b4db205941cdf2df576cc4400a1dcb">maxscale</a>;</div> +<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="class_projector.html#a0bb898f0dc68049f9e4018964cb07c30"> 86</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_projector.html#ab77e4a3b1f98bcb89239d50d9e036c0e">xcenter</a>, <a class="code" href="class_projector.html#a0bb898f0dc68049f9e4018964cb07c30">ycenter</a>;</div> +<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="class_projector.html#a30013cdc576214dcd85725e8805deb9d"> 87</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_projector.html#a1b65a45585dd30f712eddad7225447a4">xangle</a>, <a class="code" href="class_projector.html#a30013cdc576214dcd85725e8805deb9d">yangle</a>;</div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div> +<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="class_projector.html#aec9cae6c66bb8c3725198299ddcf0f8d"> 89</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_projector.html#aec9cae6c66bb8c3725198299ddcf0f8d">infinite</a>;</div> +<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="class_projector.html#ad603abce6a07d9f8e34eefc84e738901"> 90</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_projector.html#ad603abce6a07d9f8e34eefc84e738901">depth_scale</a>;</div> +<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="class_projector.html#a90464faee2f797a7c9621fd03184cba1"> 91</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_projector.html#a90464faee2f797a7c9621fd03184cba1">orthogonal</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="class_projector.html#a9ea7a82cdde73f84b5dd34a70e7f5665"> 93</a></span>  <span class="keyword">enum</span> <a class="code" href="class_projector.html#a9ea7a82cdde73f84b5dd34a70e7f5665">DISPLAY_CONST</a> {</div> +<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="class_projector.html#a9ea7a82cdde73f84b5dd34a70e7f5665a28b4c4ad91fe6f01307c97062386ca70"> 94</a></span>  <a class="code" href="class_projector.html#a9ea7a82cdde73f84b5dd34a70e7f5665a28b4c4ad91fe6f01307c97062386ca70">NUM_FRUSTUM_PLANES</a>= 4,</div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  };</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div> +<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="class_projector.html#a0682d7ef389d83b44dc9b7b88ddaa187"> 97</a></span>  <a class="code" href="struct_plane.html">Plane</a>* <a class="code" href="class_projector.html#a0682d7ef389d83b44dc9b7b88ddaa187">frustum_planes</a>;</div> +<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="class_projector.html#af7abd1458dadb1a16453bfa7b74580bf"> 98</a></span>  <a class="code" href="struct_plane.html">Plane</a> <a class="code" href="class_projector.html#af7abd1458dadb1a16453bfa7b74580bf">world_planes</a>[<a class="code" href="class_projector.html#a9ea7a82cdde73f84b5dd34a70e7f5665a28b4c4ad91fe6f01307c97062386ca70">NUM_FRUSTUM_PLANES</a>];</div> +<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="class_projector.html#ab92dedfb8c690cd9eb11f7050c7174c8"> 99</a></span>  <a class="code" href="struct_plane.html">Plane</a> <a class="code" href="class_projector.html#ab92dedfb8c690cd9eb11f7050c7174c8">view_planes</a>[<a class="code" href="class_projector.html#a9ea7a82cdde73f84b5dd34a70e7f5665a28b4c4ad91fe6f01307c97062386ca70">NUM_FRUSTUM_PLANES</a>];</div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div> +<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="class_projector.html#a5740968f97d83d2cb1c5785526b4edfe"> 101</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_projector.html#a7204cf886f4aa8ba1a135a623fe24560">xclip0</a>, <a class="code" href="class_projector.html#a5740968f97d83d2cb1c5785526b4edfe">xclip1</a>;</div> +<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="class_projector.html#abc5cd1f3176630a29e18365da49bde62"> 102</a></span>  <span class="keywordtype">float</span> <a class="code" href="class_projector.html#a313112be1309fa332ec912ec3522eb97">yclip0</a>, <a class="code" href="class_projector.html#abc5cd1f3176630a29e18365da49bde62">yclip1</a>;</div> +<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> };</div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="preprocessor">#endif Projector_h</span></div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</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="_projector_8h.html">Projector.h</a></li> + <li class="footer">Generated on Tue Jun 5 2012 20:46:26 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> |