mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-06-08 08:13:49 +00:00
256 lines
39 KiB
HTML
256 lines
39 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Recast Navigation: AppState.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
|
|
<td id="projectalign">
|
|
<div id="projectname">Recast Navigation
|
|
</div>
|
|
<div id="projectbrief">Navigation-mesh Toolset for Games</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function(){initNavTree('AppState_8h_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">AppState.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="AppState_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include "SDL.h"</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include "<a class="code" href="SampleInterfaces_8h.html">SampleInterfaces.h</a>"</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <memory></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <string></span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <vector></span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword">class </span><a class="code hl_class" href="classTestCase.html">TestCase</a>;</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">class </span><a class="code hl_class" href="classSample.html">Sample</a>;</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">class </span><a class="code hl_class" href="classInputGeom.html">InputGeom</a>;</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="foldopen" id="foldopen00014" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="structAppState.html"> 14</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structAppState.html">AppState</a></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span>{</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="structAppState.html#abc827eda35d0748f2d981fc184ff89f5"> 16</a></span> SDL_Window* <a class="code hl_variable" href="structAppState.html#abc827eda35d0748f2d981fc184ff89f5">window</a>;</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="structAppState.html#a72f57e35f696036b60696a823470e304"> 17</a></span> SDL_GLContext <a class="code hl_variable" href="structAppState.html#a72f57e35f696036b60696a823470e304">glContext</a>;</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="structAppState.html#afaf277250afa954f377065ca14a28e8d"> 19</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structAppState.html#afaf277250afa954f377065ca14a28e8d">projectionMatrix</a>[16];</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="structAppState.html#a857ee21c4b322f37d519e6fc64392929"> 20</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structAppState.html#a857ee21c4b322f37d519e6fc64392929">viewport</a>[4];</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// Drawable width vs logical width (important for high-dpi screens)</span></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="structAppState.html#a533280f7391345518a40f29e7202622b"> 23</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structAppState.html#a533280f7391345518a40f29e7202622b">width</a>;</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structAppState.html#a676bcdca0ee21f0881443dd655dcba87"> 24</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structAppState.html#a676bcdca0ee21f0881443dd655dcba87">height</a>;</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="structAppState.html#ae29a703bdd3f9240b17ec901aabe0bcb"> 25</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structAppState.html#ae29a703bdd3f9240b17ec901aabe0bcb">drawableWidth</a>;</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structAppState.html#ab4549b83cdaad5cf8c896dfd30e5b774"> 26</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structAppState.html#ab4549b83cdaad5cf8c896dfd30e5b774">drawableHeight</a>;</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// Recast data, samples, and test cases</span></div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="structAppState.html#a780ed9c727453bae74c20881f227e3c9"> 29</a></span> <a class="code hl_class" href="classBuildContext.html">BuildContext</a> <a class="code hl_variable" href="structAppState.html#a780ed9c727453bae74c20881f227e3c9">buildContext</a>;</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structAppState.html#a7f1a9971046c1245f7db26ef7e1e1e1e"> 30</a></span> std::unique_ptr<InputGeom> <a class="code hl_variable" href="structAppState.html#a7f1a9971046c1245f7db26ef7e1e1e1e">inputGeometry</a>;</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structAppState.html#a7b11f502301a5410dce8fc79f619ee75"> 31</a></span> std::unique_ptr<Sample> <a class="code hl_variable" href="structAppState.html#a7b11f502301a5410dce8fc79f619ee75">sample</a>;</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structAppState.html#a39dc3da4c3594cb3d5df3b7236d587ec"> 32</a></span> std::unique_ptr<TestCase> <a class="code hl_variable" href="structAppState.html#a39dc3da4c3594cb3d5df3b7236d587ec">testCase</a>;</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="comment">// Time</span></div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structAppState.html#ad50f6533bbe2de383c5a6de8fee239d9"> 35</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#ad50f6533bbe2de383c5a6de8fee239d9">timeAcc</a> = 0.0f;</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structAppState.html#a9efa3ab7d2ea53f8dc67522bf2eb614a"> 36</a></span> Uint32 <a class="code hl_variable" href="structAppState.html#a9efa3ab7d2ea53f8dc67522bf2eb614a">prevFrameTime</a> = 0;</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="comment">// Input</span></div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structAppState.html#af2b0a337c5381d394a22ef00b71c28f0"> 39</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structAppState.html#af2b0a337c5381d394a22ef00b71c28f0">mousePos</a>[2]{0, 0};</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="structAppState.html#a7bb7b4cf67f2157778a9b6adab22f587"> 40</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structAppState.html#a7bb7b4cf67f2157778a9b6adab22f587">origMousePos</a>[2]{0, 0}; <span class="comment">// Used to compute mouse movement totals across frames.</span></div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// Camera</span></div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="structAppState.html#a590b809f1bb9d3894cd5837a492a4630"> 43</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#a590b809f1bb9d3894cd5837a492a4630">cameraEulers</a>[2]{45, -45};</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structAppState.html#ac0278d0bf8e230abfadd72015075a81e"> 44</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#ac0278d0bf8e230abfadd72015075a81e">cameraPos</a>[3] = {0, 0, 0}; <span class="comment">// world space</span></div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="structAppState.html#a874cb4abd321939c7ddfde619e56024d"> 45</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#a874cb4abd321939c7ddfde619e56024d">camr</a> = 1000;</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="structAppState.html#a23eaacce5d912e3311923ee20ac43e92"> 46</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#a23eaacce5d912e3311923ee20ac43e92">origCameraEulers</a>[2] = {0, 0}; <span class="comment">// Used to compute rotational changes across frames.</span></div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="structAppState.html#a31e4e106de48a1cc53949b01fe6d0a98"> 47</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#a31e4e106de48a1cc53949b01fe6d0a98">scrollZoom</a> = 0;</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// Movement</span></div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structAppState.html#ab9150f73233d6aea478968c1490f17c1"> 50</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#ab9150f73233d6aea478968c1490f17c1">moveFront</a> = 0.0f;</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="structAppState.html#afb94a339018d77aca93fea7473de08aa"> 51</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#afb94a339018d77aca93fea7473de08aa">moveBack</a> = 0.0f;</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="structAppState.html#aa5f99bcf8953b95cab0e36ec6dd6ec05"> 52</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#aa5f99bcf8953b95cab0e36ec6dd6ec05">moveLeft</a> = 0.0f;</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="structAppState.html#ab681e48914af4684da0bdf6bd0bdee3b"> 53</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#ab681e48914af4684da0bdf6bd0bdee3b">moveRight</a> = 0.0f;</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="structAppState.html#aa2e339d5080ebb08d0d504df943fd8cd"> 54</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#aa2e339d5080ebb08d0d504df943fd8cd">moveUp</a> = 0.0f;</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="structAppState.html#ab47db905a5125eb3d45a7a2be937df4b"> 55</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#ab47db905a5125eb3d45a7a2be937df4b">moveDown</a> = 0.0f;</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="comment">// Input state</span></div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="structAppState.html#a1834b3637f381d67100aad1e4f4878f1"> 58</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structAppState.html#a1834b3637f381d67100aad1e4f4878f1">isRotatingCamera</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="structAppState.html#ac3b8bd7cee0a8a5d61a8094b0ed3a162"> 59</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structAppState.html#ac3b8bd7cee0a8a5d61a8094b0ed3a162">movedDuringRotate</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="structAppState.html#a112cb8b09b1a4ee9a7e608b623b27a3b"> 60</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structAppState.html#a112cb8b09b1a4ee9a7e608b623b27a3b">mouseOverMenu</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// Raycasts</span></div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="structAppState.html#a5f429a558a7af7b23b4364c220c2adae"> 63</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#a5f429a558a7af7b23b4364c220c2adae">rayStart</a>[3]; <span class="comment">// world space</span></div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="structAppState.html#a5e3e8fb41393bab4b0b8bc65d2aac436"> 64</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="structAppState.html#a5e3e8fb41393bab4b0b8bc65d2aac436">rayEnd</a>[3]; <span class="comment">// world space</span></div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="comment">// UI state</span></div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="structAppState.html#a55bb81ee09f80ba292888016dd12de18"> 67</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structAppState.html#a55bb81ee09f80ba292888016dd12de18">sampleIndex</a> = -1;</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structAppState.html#aa144c049c13f6d918b3d72d9791fe0b9"> 68</a></span> std::string <a class="code hl_variable" href="structAppState.html#aa144c049c13f6d918b3d72d9791fe0b9">meshName</a> = <span class="stringliteral">"Choose Mesh..."</span>;</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="structAppState.html#a26f6e72cdbd3e1a0a532e16cf41f4b01"> 69</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structAppState.html#a26f6e72cdbd3e1a0a532e16cf41f4b01">showMenu</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="structAppState.html#af490554118d94c925e05e47b7e1e7cbc"> 70</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structAppState.html#af490554118d94c925e05e47b7e1e7cbc">showLog</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="structAppState.html#a0d0cb50fab6029afcd3d6ac6fd32eb8e"> 71</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structAppState.html#a0d0cb50fab6029afcd3d6ac6fd32eb8e">showTools</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="structAppState.html#a75096411cca303b3e1e6cd1a196cabb3"> 72</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structAppState.html#a75096411cca303b3e1e6cd1a196cabb3">showTestCases</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="structAppState.html#a1a86161e8d8fa5dd98bbac106883e8d5"> 73</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structAppState.html#a1a86161e8d8fa5dd98bbac106883e8d5">logScroll</a> = 0;</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="comment">// Files</span></div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="structAppState.html#a5069131292a99f7b6ec3fadbde661ddd"> 76</a></span> std::vector<std::string> <a class="code hl_variable" href="structAppState.html#a5069131292a99f7b6ec3fadbde661ddd">files</a>;</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="structAppState.html#a16993c5846abd1283d4a60dcfb9ea489"> 77</a></span> std::string <a class="code hl_variable" href="structAppState.html#a16993c5846abd1283d4a60dcfb9ea489">meshesFolder</a> = <span class="stringliteral">"Meshes"</span>;</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="structAppState.html#a49366939814e417a30941130fe7d52c7"> 78</a></span> std::string <a class="code hl_variable" href="structAppState.html#a49366939814e417a30941130fe7d52c7">testCasesFolder</a> = <span class="stringliteral">"TestCases"</span>;</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordtype">void</span> <a class="code hl_function" href="structAppState.html#aace9061b31a946ae7c118a7ee56ff723">resetCamera</a>();</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordtype">void</span> <a class="code hl_function" href="structAppState.html#a35b4ed9b06ee282ffe2394aca05a29cc">updateWindowSize</a>();</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordtype">void</span> <a class="code hl_function" href="structAppState.html#ab61533cbedd1009fec52b126b27eb3d3">updateUIScale</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordtype">void</span> <a class="code hl_function" href="structAppState.html#a658f2723a2f01786542c5fec547fec7f">worldToScreen</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> z, <span class="keywordtype">float</span>* screenX, <span class="keywordtype">float</span>* screenY) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span>};</div>
|
|
</div>
|
|
<div class="ttc" id="aSampleInterfaces_8h_html"><div class="ttname"><a href="SampleInterfaces_8h.html">SampleInterfaces.h</a></div></div>
|
|
<div class="ttc" id="aclassBuildContext_html"><div class="ttname"><a href="classBuildContext.html">BuildContext</a></div><div class="ttdoc">Recast build context.</div><div class="ttdef"><b>Definition</b> SampleInterfaces.h:34</div></div>
|
|
<div class="ttc" id="aclassInputGeom_html"><div class="ttname"><a href="classInputGeom.html">InputGeom</a></div><div class="ttdef"><b>Definition</b> InputGeom.h:96</div></div>
|
|
<div class="ttc" id="aclassSample_html"><div class="ttname"><a href="classSample.html">Sample</a></div><div class="ttdef"><b>Definition</b> Sample.h:116</div></div>
|
|
<div class="ttc" id="aclassTestCase_html"><div class="ttname"><a href="classTestCase.html">TestCase</a></div><div class="ttdef"><b>Definition</b> TestCase.h:28</div></div>
|
|
<div class="ttc" id="astructAppState_html"><div class="ttname"><a href="structAppState.html">AppState</a></div><div class="ttdef"><b>Definition</b> AppState.h:15</div></div>
|
|
<div class="ttc" id="astructAppState_html_a0d0cb50fab6029afcd3d6ac6fd32eb8e"><div class="ttname"><a href="structAppState.html#a0d0cb50fab6029afcd3d6ac6fd32eb8e">AppState::showTools</a></div><div class="ttdeci">bool showTools</div><div class="ttdef"><b>Definition</b> AppState.h:71</div></div>
|
|
<div class="ttc" id="astructAppState_html_a112cb8b09b1a4ee9a7e608b623b27a3b"><div class="ttname"><a href="structAppState.html#a112cb8b09b1a4ee9a7e608b623b27a3b">AppState::mouseOverMenu</a></div><div class="ttdeci">bool mouseOverMenu</div><div class="ttdef"><b>Definition</b> AppState.h:60</div></div>
|
|
<div class="ttc" id="astructAppState_html_a16993c5846abd1283d4a60dcfb9ea489"><div class="ttname"><a href="structAppState.html#a16993c5846abd1283d4a60dcfb9ea489">AppState::meshesFolder</a></div><div class="ttdeci">std::string meshesFolder</div><div class="ttdef"><b>Definition</b> AppState.h:77</div></div>
|
|
<div class="ttc" id="astructAppState_html_a1834b3637f381d67100aad1e4f4878f1"><div class="ttname"><a href="structAppState.html#a1834b3637f381d67100aad1e4f4878f1">AppState::isRotatingCamera</a></div><div class="ttdeci">bool isRotatingCamera</div><div class="ttdef"><b>Definition</b> AppState.h:58</div></div>
|
|
<div class="ttc" id="astructAppState_html_a1a86161e8d8fa5dd98bbac106883e8d5"><div class="ttname"><a href="structAppState.html#a1a86161e8d8fa5dd98bbac106883e8d5">AppState::logScroll</a></div><div class="ttdeci">int logScroll</div><div class="ttdef"><b>Definition</b> AppState.h:73</div></div>
|
|
<div class="ttc" id="astructAppState_html_a23eaacce5d912e3311923ee20ac43e92"><div class="ttname"><a href="structAppState.html#a23eaacce5d912e3311923ee20ac43e92">AppState::origCameraEulers</a></div><div class="ttdeci">float origCameraEulers[2]</div><div class="ttdef"><b>Definition</b> AppState.h:46</div></div>
|
|
<div class="ttc" id="astructAppState_html_a26f6e72cdbd3e1a0a532e16cf41f4b01"><div class="ttname"><a href="structAppState.html#a26f6e72cdbd3e1a0a532e16cf41f4b01">AppState::showMenu</a></div><div class="ttdeci">bool showMenu</div><div class="ttdef"><b>Definition</b> AppState.h:69</div></div>
|
|
<div class="ttc" id="astructAppState_html_a31e4e106de48a1cc53949b01fe6d0a98"><div class="ttname"><a href="structAppState.html#a31e4e106de48a1cc53949b01fe6d0a98">AppState::scrollZoom</a></div><div class="ttdeci">float scrollZoom</div><div class="ttdef"><b>Definition</b> AppState.h:47</div></div>
|
|
<div class="ttc" id="astructAppState_html_a35b4ed9b06ee282ffe2394aca05a29cc"><div class="ttname"><a href="structAppState.html#a35b4ed9b06ee282ffe2394aca05a29cc">AppState::updateWindowSize</a></div><div class="ttdeci">void updateWindowSize()</div><div class="ttdef"><b>Definition</b> AppState.cpp:39</div></div>
|
|
<div class="ttc" id="astructAppState_html_a39dc3da4c3594cb3d5df3b7236d587ec"><div class="ttname"><a href="structAppState.html#a39dc3da4c3594cb3d5df3b7236d587ec">AppState::testCase</a></div><div class="ttdeci">std::unique_ptr< TestCase > testCase</div><div class="ttdef"><b>Definition</b> AppState.h:32</div></div>
|
|
<div class="ttc" id="astructAppState_html_a49366939814e417a30941130fe7d52c7"><div class="ttname"><a href="structAppState.html#a49366939814e417a30941130fe7d52c7">AppState::testCasesFolder</a></div><div class="ttdeci">std::string testCasesFolder</div><div class="ttdef"><b>Definition</b> AppState.h:78</div></div>
|
|
<div class="ttc" id="astructAppState_html_a5069131292a99f7b6ec3fadbde661ddd"><div class="ttname"><a href="structAppState.html#a5069131292a99f7b6ec3fadbde661ddd">AppState::files</a></div><div class="ttdeci">std::vector< std::string > files</div><div class="ttdef"><b>Definition</b> AppState.h:76</div></div>
|
|
<div class="ttc" id="astructAppState_html_a533280f7391345518a40f29e7202622b"><div class="ttname"><a href="structAppState.html#a533280f7391345518a40f29e7202622b">AppState::width</a></div><div class="ttdeci">int width</div><div class="ttdef"><b>Definition</b> AppState.h:23</div></div>
|
|
<div class="ttc" id="astructAppState_html_a55bb81ee09f80ba292888016dd12de18"><div class="ttname"><a href="structAppState.html#a55bb81ee09f80ba292888016dd12de18">AppState::sampleIndex</a></div><div class="ttdeci">int sampleIndex</div><div class="ttdef"><b>Definition</b> AppState.h:67</div></div>
|
|
<div class="ttc" id="astructAppState_html_a590b809f1bb9d3894cd5837a492a4630"><div class="ttname"><a href="structAppState.html#a590b809f1bb9d3894cd5837a492a4630">AppState::cameraEulers</a></div><div class="ttdeci">float cameraEulers[2]</div><div class="ttdef"><b>Definition</b> AppState.h:43</div></div>
|
|
<div class="ttc" id="astructAppState_html_a5e3e8fb41393bab4b0b8bc65d2aac436"><div class="ttname"><a href="structAppState.html#a5e3e8fb41393bab4b0b8bc65d2aac436">AppState::rayEnd</a></div><div class="ttdeci">float rayEnd[3]</div><div class="ttdef"><b>Definition</b> AppState.h:64</div></div>
|
|
<div class="ttc" id="astructAppState_html_a5f429a558a7af7b23b4364c220c2adae"><div class="ttname"><a href="structAppState.html#a5f429a558a7af7b23b4364c220c2adae">AppState::rayStart</a></div><div class="ttdeci">float rayStart[3]</div><div class="ttdef"><b>Definition</b> AppState.h:63</div></div>
|
|
<div class="ttc" id="astructAppState_html_a658f2723a2f01786542c5fec547fec7f"><div class="ttname"><a href="structAppState.html#a658f2723a2f01786542c5fec547fec7f">AppState::worldToScreen</a></div><div class="ttdeci">void worldToScreen(float x, float y, float z, float *screenX, float *screenY) const</div><div class="ttdef"><b>Definition</b> AppState.cpp:62</div></div>
|
|
<div class="ttc" id="astructAppState_html_a676bcdca0ee21f0881443dd655dcba87"><div class="ttname"><a href="structAppState.html#a676bcdca0ee21f0881443dd655dcba87">AppState::height</a></div><div class="ttdeci">int height</div><div class="ttdef"><b>Definition</b> AppState.h:24</div></div>
|
|
<div class="ttc" id="astructAppState_html_a72f57e35f696036b60696a823470e304"><div class="ttname"><a href="structAppState.html#a72f57e35f696036b60696a823470e304">AppState::glContext</a></div><div class="ttdeci">SDL_GLContext glContext</div><div class="ttdef"><b>Definition</b> AppState.h:17</div></div>
|
|
<div class="ttc" id="astructAppState_html_a75096411cca303b3e1e6cd1a196cabb3"><div class="ttname"><a href="structAppState.html#a75096411cca303b3e1e6cd1a196cabb3">AppState::showTestCases</a></div><div class="ttdeci">bool showTestCases</div><div class="ttdef"><b>Definition</b> AppState.h:72</div></div>
|
|
<div class="ttc" id="astructAppState_html_a780ed9c727453bae74c20881f227e3c9"><div class="ttname"><a href="structAppState.html#a780ed9c727453bae74c20881f227e3c9">AppState::buildContext</a></div><div class="ttdeci">BuildContext buildContext</div><div class="ttdef"><b>Definition</b> AppState.h:29</div></div>
|
|
<div class="ttc" id="astructAppState_html_a7b11f502301a5410dce8fc79f619ee75"><div class="ttname"><a href="structAppState.html#a7b11f502301a5410dce8fc79f619ee75">AppState::sample</a></div><div class="ttdeci">std::unique_ptr< Sample > sample</div><div class="ttdef"><b>Definition</b> AppState.h:31</div></div>
|
|
<div class="ttc" id="astructAppState_html_a7bb7b4cf67f2157778a9b6adab22f587"><div class="ttname"><a href="structAppState.html#a7bb7b4cf67f2157778a9b6adab22f587">AppState::origMousePos</a></div><div class="ttdeci">int origMousePos[2]</div><div class="ttdef"><b>Definition</b> AppState.h:40</div></div>
|
|
<div class="ttc" id="astructAppState_html_a7f1a9971046c1245f7db26ef7e1e1e1e"><div class="ttname"><a href="structAppState.html#a7f1a9971046c1245f7db26ef7e1e1e1e">AppState::inputGeometry</a></div><div class="ttdeci">std::unique_ptr< InputGeom > inputGeometry</div><div class="ttdef"><b>Definition</b> AppState.h:30</div></div>
|
|
<div class="ttc" id="astructAppState_html_a857ee21c4b322f37d519e6fc64392929"><div class="ttname"><a href="structAppState.html#a857ee21c4b322f37d519e6fc64392929">AppState::viewport</a></div><div class="ttdeci">int viewport[4]</div><div class="ttdef"><b>Definition</b> AppState.h:20</div></div>
|
|
<div class="ttc" id="astructAppState_html_a874cb4abd321939c7ddfde619e56024d"><div class="ttname"><a href="structAppState.html#a874cb4abd321939c7ddfde619e56024d">AppState::camr</a></div><div class="ttdeci">float camr</div><div class="ttdef"><b>Definition</b> AppState.h:45</div></div>
|
|
<div class="ttc" id="astructAppState_html_a9efa3ab7d2ea53f8dc67522bf2eb614a"><div class="ttname"><a href="structAppState.html#a9efa3ab7d2ea53f8dc67522bf2eb614a">AppState::prevFrameTime</a></div><div class="ttdeci">Uint32 prevFrameTime</div><div class="ttdef"><b>Definition</b> AppState.h:36</div></div>
|
|
<div class="ttc" id="astructAppState_html_aa144c049c13f6d918b3d72d9791fe0b9"><div class="ttname"><a href="structAppState.html#aa144c049c13f6d918b3d72d9791fe0b9">AppState::meshName</a></div><div class="ttdeci">std::string meshName</div><div class="ttdef"><b>Definition</b> AppState.h:68</div></div>
|
|
<div class="ttc" id="astructAppState_html_aa2e339d5080ebb08d0d504df943fd8cd"><div class="ttname"><a href="structAppState.html#aa2e339d5080ebb08d0d504df943fd8cd">AppState::moveUp</a></div><div class="ttdeci">float moveUp</div><div class="ttdef"><b>Definition</b> AppState.h:54</div></div>
|
|
<div class="ttc" id="astructAppState_html_aa5f99bcf8953b95cab0e36ec6dd6ec05"><div class="ttname"><a href="structAppState.html#aa5f99bcf8953b95cab0e36ec6dd6ec05">AppState::moveLeft</a></div><div class="ttdeci">float moveLeft</div><div class="ttdef"><b>Definition</b> AppState.h:52</div></div>
|
|
<div class="ttc" id="astructAppState_html_aace9061b31a946ae7c118a7ee56ff723"><div class="ttname"><a href="structAppState.html#aace9061b31a946ae7c118a7ee56ff723">AppState::resetCamera</a></div><div class="ttdeci">void resetCamera()</div><div class="ttdef"><b>Definition</b> AppState.cpp:14</div></div>
|
|
<div class="ttc" id="astructAppState_html_ab4549b83cdaad5cf8c896dfd30e5b774"><div class="ttname"><a href="structAppState.html#ab4549b83cdaad5cf8c896dfd30e5b774">AppState::drawableHeight</a></div><div class="ttdeci">int drawableHeight</div><div class="ttdef"><b>Definition</b> AppState.h:26</div></div>
|
|
<div class="ttc" id="astructAppState_html_ab47db905a5125eb3d45a7a2be937df4b"><div class="ttname"><a href="structAppState.html#ab47db905a5125eb3d45a7a2be937df4b">AppState::moveDown</a></div><div class="ttdeci">float moveDown</div><div class="ttdef"><b>Definition</b> AppState.h:55</div></div>
|
|
<div class="ttc" id="astructAppState_html_ab61533cbedd1009fec52b126b27eb3d3"><div class="ttname"><a href="structAppState.html#ab61533cbedd1009fec52b126b27eb3d3">AppState::updateUIScale</a></div><div class="ttdeci">void updateUIScale() const</div><div class="ttdef"><b>Definition</b> AppState.cpp:53</div></div>
|
|
<div class="ttc" id="astructAppState_html_ab681e48914af4684da0bdf6bd0bdee3b"><div class="ttname"><a href="structAppState.html#ab681e48914af4684da0bdf6bd0bdee3b">AppState::moveRight</a></div><div class="ttdeci">float moveRight</div><div class="ttdef"><b>Definition</b> AppState.h:53</div></div>
|
|
<div class="ttc" id="astructAppState_html_ab9150f73233d6aea478968c1490f17c1"><div class="ttname"><a href="structAppState.html#ab9150f73233d6aea478968c1490f17c1">AppState::moveFront</a></div><div class="ttdeci">float moveFront</div><div class="ttdef"><b>Definition</b> AppState.h:50</div></div>
|
|
<div class="ttc" id="astructAppState_html_abc827eda35d0748f2d981fc184ff89f5"><div class="ttname"><a href="structAppState.html#abc827eda35d0748f2d981fc184ff89f5">AppState::window</a></div><div class="ttdeci">SDL_Window * window</div><div class="ttdef"><b>Definition</b> AppState.h:16</div></div>
|
|
<div class="ttc" id="astructAppState_html_ac0278d0bf8e230abfadd72015075a81e"><div class="ttname"><a href="structAppState.html#ac0278d0bf8e230abfadd72015075a81e">AppState::cameraPos</a></div><div class="ttdeci">float cameraPos[3]</div><div class="ttdef"><b>Definition</b> AppState.h:44</div></div>
|
|
<div class="ttc" id="astructAppState_html_ac3b8bd7cee0a8a5d61a8094b0ed3a162"><div class="ttname"><a href="structAppState.html#ac3b8bd7cee0a8a5d61a8094b0ed3a162">AppState::movedDuringRotate</a></div><div class="ttdeci">bool movedDuringRotate</div><div class="ttdef"><b>Definition</b> AppState.h:59</div></div>
|
|
<div class="ttc" id="astructAppState_html_ad50f6533bbe2de383c5a6de8fee239d9"><div class="ttname"><a href="structAppState.html#ad50f6533bbe2de383c5a6de8fee239d9">AppState::timeAcc</a></div><div class="ttdeci">float timeAcc</div><div class="ttdef"><b>Definition</b> AppState.h:35</div></div>
|
|
<div class="ttc" id="astructAppState_html_ae29a703bdd3f9240b17ec901aabe0bcb"><div class="ttname"><a href="structAppState.html#ae29a703bdd3f9240b17ec901aabe0bcb">AppState::drawableWidth</a></div><div class="ttdeci">int drawableWidth</div><div class="ttdef"><b>Definition</b> AppState.h:25</div></div>
|
|
<div class="ttc" id="astructAppState_html_af2b0a337c5381d394a22ef00b71c28f0"><div class="ttname"><a href="structAppState.html#af2b0a337c5381d394a22ef00b71c28f0">AppState::mousePos</a></div><div class="ttdeci">int mousePos[2]</div><div class="ttdef"><b>Definition</b> AppState.h:39</div></div>
|
|
<div class="ttc" id="astructAppState_html_af490554118d94c925e05e47b7e1e7cbc"><div class="ttname"><a href="structAppState.html#af490554118d94c925e05e47b7e1e7cbc">AppState::showLog</a></div><div class="ttdeci">bool showLog</div><div class="ttdef"><b>Definition</b> AppState.h:70</div></div>
|
|
<div class="ttc" id="astructAppState_html_afaf277250afa954f377065ca14a28e8d"><div class="ttname"><a href="structAppState.html#afaf277250afa954f377065ca14a28e8d">AppState::projectionMatrix</a></div><div class="ttdeci">double projectionMatrix[16]</div><div class="ttdef"><b>Definition</b> AppState.h:19</div></div>
|
|
<div class="ttc" id="astructAppState_html_afb94a339018d77aca93fea7473de08aa"><div class="ttname"><a href="structAppState.html#afb94a339018d77aca93fea7473de08aa">AppState::moveBack</a></div><div class="ttdeci">float moveBack</div><div class="ttdef"><b>Definition</b> AppState.h:51</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- HTML footer for doxygen 1.8.6-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_bd8164545b6b3da3c53f0f7457fcb102.html">RecastDemo</a></li><li class="navelem"><a class="el" href="dir_f244c4afb4303a82689423998a79af95.html">Include</a></li><li class="navelem"><a class="el" href="AppState_8h.html">AppState.h</a></li>
|
|
<a href="https://github.com/recastnavigation/recastnavigation">Project Home</a>
|
|
| <a href="./License.txt">Licence (ZLib)</a>
|
|
| Copyright 2009 Mikko Mononen
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|