1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
<!-- HTML header for doxygen 1.8.9.1-->
<!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"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<title>MinGfx Toolkit: src/craft_cam.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="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>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.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">MinGfx Toolkit
 <span id="projectnumber">1.0</span>
</div>
<div id="projectbrief">A minimal library for writing cross-platform (Windows, OSX, linux) graphics programs.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- 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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">craft_cam.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="craft__cam_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">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> This file is part of the MinGfx Project.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> </span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2017,2018 Regents of the University of Minnesota.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> All Rights Reserved.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> </span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Original Author(s) of this File:</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> Dan Keefe, 2018, University of Minnesota</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"> Author(s) of Significant Updates/Modifications to the File:</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"> */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#ifndef SRC_CRAFT_CAM_H_</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#define SRC_CRAFT_CAM_H_</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="point2_8h.html">point2.h</a>"</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="matrix4_8h.html">matrix4.h</a>"</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="vector2_8h.html">vector2.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>  </div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">namespace </span><a class="code" href="namespacemingfx.html">mingfx</a> {</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html"> 79</a></span> <span class="keyword">class </span><a class="code" href="classmingfx_1_1_craft_cam.html">CraftCam</a> {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#ae0b0e8d75ffc69c6373a13f1f9c2f171"> 83</a></span>  <a class="code" href="classmingfx_1_1_craft_cam.html#ae0b0e8d75ffc69c6373a13f1f9c2f171">CraftCam</a>();</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#ab9e1864b5859c22d27ba809b1ba7a51f"> 86</a></span>  <a class="code" href="classmingfx_1_1_craft_cam.html#ab9e1864b5859c22d27ba809b1ba7a51f">CraftCam</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> &initial_view_matrix);</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a85ef9bebdd1595be1288bc104245f4ff"> 88</a></span>  <span class="keyword">virtual</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a85ef9bebdd1595be1288bc104245f4ff">~CraftCam</a>();</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// To make the interaction work, the following set of functions need to be</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// called from your GraphicsApp or whatever main application class you use</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">// to receive user input events and a draw callback.</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a2b7808e489933b117583cf709fa46bc7"> 104</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a2b7808e489933b117583cf709fa46bc7">UpdateSimulation</a>(<span class="keywordtype">double</span> dt, GLFWwindow *window_ptr);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a8366e9d8e9bb3b048d1dd14af2f76311"> 125</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a8366e9d8e9bb3b048d1dd14af2f76311">OnMouseMove</a>(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &normalized_mouse_delta);</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#acccdadc08d8d8a0b7b9426f18209ff36"> 137</a></span>  <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_craft_cam.html#acccdadc08d8d8a0b7b9426f18209ff36">view_matrix</a>();</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a82a8e20596247e2986e5929c1ef7f150"> 142</a></span>  <a class="code" href="classmingfx_1_1_point3.html">Point3</a> <a class="code" href="classmingfx_1_1_craft_cam.html#a82a8e20596247e2986e5929c1ef7f150">eye</a>();</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a2c7546bccfbf986eb9cd0a2784f74859"> 146</a></span>  <a class="code" href="classmingfx_1_1_vector3.html">Vector3</a> <a class="code" href="classmingfx_1_1_craft_cam.html#a2c7546bccfbf986eb9cd0a2784f74859">look</a>();</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#ae3d9c7ea9307dbbadaa4b6e2f9933a7b"> 153</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_craft_cam.html#ae3d9c7ea9307dbbadaa4b6e2f9933a7b">UpdateHeight</a>(<span class="keywordtype">float</span> new_y_value);</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="l00160"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a79a194be8675a0a968f14fe3dcd79da8"> 160</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a79a194be8675a0a968f14fe3dcd79da8">set_view_matrix</a>(<a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> <a class="code" href="classmingfx_1_1_craft_cam.html#acccdadc08d8d8a0b7b9426f18209ff36">view_matrix</a>);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a93567af7acbae2939d57cfd8a72bcef2"> 167</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a93567af7acbae2939d57cfd8a72bcef2">translation_scale</a>();</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  </div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a151fde09d08001ee2a615f25ec1acea7"> 173</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a151fde09d08001ee2a615f25ec1acea7">set_translation_scale</a>(<span class="keywordtype">float</span> s);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a9fe22cc3b933b12674a5b8f1b5c834ac"> 179</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a9fe22cc3b933b12674a5b8f1b5c834ac">rotation_scale</a>();</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a352f5a42f6e88d2e599bd5acb42e5831"> 185</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a352f5a42f6e88d2e599bd5acb42e5831">set_rotation_scale</a>(<span class="keywordtype">float</span> s);</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a96ba4a36029ca8234576cbf2791c5ccb"> 190</a></span>  <span class="keywordtype">float</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a96ba4a36029ca8234576cbf2791c5ccb">look_scale</a>();</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="classmingfx_1_1_craft_cam.html#a15092ae5de6920546e3ce79aeb196f44"> 195</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmingfx_1_1_craft_cam.html#a15092ae5de6920546e3ce79aeb196f44">set_look_scale</a>(<span class="keywordtype">float</span> s);</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  </div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keywordtype">void</span> WalkForward(<span class="keywordtype">double</span> dt);</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordtype">void</span> WalkBackward(<span class="keywordtype">double</span> dt);</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordtype">void</span> RotateLeft(<span class="keywordtype">double</span> dt);</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordtype">void</span> RotateRight(<span class="keywordtype">double</span> dt);</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordtype">void</span> LookWithMouse(<span class="keyword">const</span> <a class="code" href="classmingfx_1_1_vector2.html">Vector2</a> &mouse_delta);</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordtype">float</span> t_scale_;</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordtype">float</span> r_scale_;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordtype">float</span> l_scale_;</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordtype">float</span> yaw_;</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordtype">float</span> pitch_;</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> base_head_;</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="classmingfx_1_1_matrix4.html">Matrix4</a> added_rot_;</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> };</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  </div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> } <span class="comment">// end namespace</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  </div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html">mingfx::CraftCam</a></div><div class="ttdoc">This implements a user interface for controlling the camera with the mouse.</div><div class="ttdef"><b>Definition:</b> <a href="craft__cam_8h_source.html#l00079">craft_cam.h:79</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a15092ae5de6920546e3ce79aeb196f44"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a15092ae5de6920546e3ce79aeb196f44">mingfx::CraftCam::set_look_scale</a></div><div class="ttdeci">void set_look_scale(float s)</div><div class="ttdoc">This is the scale factor used to speed up / slow down looking around when moving the head with the mo...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a151fde09d08001ee2a615f25ec1acea7"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a151fde09d08001ee2a615f25ec1acea7">mingfx::CraftCam::set_translation_scale</a></div><div class="ttdeci">void set_translation_scale(float s)</div><div class="ttdoc">This is the scale factor used to speed up / slow down forward/backward translation when walking for t...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a2b7808e489933b117583cf709fa46bc7"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a2b7808e489933b117583cf709fa46bc7">mingfx::CraftCam::UpdateSimulation</a></div><div class="ttdeci">void UpdateSimulation(double dt, GLFWwindow *window_ptr)</div><div class="ttdoc">Call this from your app's UpdateSimulation() method. This tells the camera to simulate walking based ...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a2c7546bccfbf986eb9cd0a2784f74859"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a2c7546bccfbf986eb9cd0a2784f74859">mingfx::CraftCam::look</a></div><div class="ttdeci">Vector3 look()</div><div class="ttdoc">Returns the look direction (i.e., -Z axis of the camera matrix) in world space coordinates.</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a352f5a42f6e88d2e599bd5acb42e5831"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a352f5a42f6e88d2e599bd5acb42e5831">mingfx::CraftCam::set_rotation_scale</a></div><div class="ttdeci">void set_rotation_scale(float s)</div><div class="ttdoc">This is the scale factor used to speed up / slow down left/right rotation when walking for the LEFT /...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a79a194be8675a0a968f14fe3dcd79da8"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a79a194be8675a0a968f14fe3dcd79da8">mingfx::CraftCam::set_view_matrix</a></div><div class="ttdeci">void set_view_matrix(Matrix4 view_matrix)</div><div class="ttdoc">This is not required, but you may use this if you wish to set an initial view matrix or reset the vie...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a82a8e20596247e2986e5929c1ef7f150"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a82a8e20596247e2986e5929c1ef7f150">mingfx::CraftCam::eye</a></div><div class="ttdeci">Point3 eye()</div><div class="ttdoc">Returns the "eye" point (i.e., focal point) of the camera in world space coordinates.</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a8366e9d8e9bb3b048d1dd14af2f76311"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a8366e9d8e9bb3b048d1dd14af2f76311">mingfx::CraftCam::OnMouseMove</a></div><div class="ttdeci">void OnMouseMove(const Vector2 &normalized_mouse_delta)</div><div class="ttdoc">Call this from your app's OnMouseMove() or On*MouseDrag() method. Use OnMouseMove() if you want to al...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a85ef9bebdd1595be1288bc104245f4ff"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a85ef9bebdd1595be1288bc104245f4ff">mingfx::CraftCam::~CraftCam</a></div><div class="ttdeci">virtual ~CraftCam()</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a93567af7acbae2939d57cfd8a72bcef2"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a93567af7acbae2939d57cfd8a72bcef2">mingfx::CraftCam::translation_scale</a></div><div class="ttdeci">float translation_scale()</div><div class="ttdoc">This is the scale factor used to speed up / slow down forward/backward translation when walking for t...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a96ba4a36029ca8234576cbf2791c5ccb"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a96ba4a36029ca8234576cbf2791c5ccb">mingfx::CraftCam::look_scale</a></div><div class="ttdeci">float look_scale()</div><div class="ttdoc">This is the scale factor used to speed up / slow down looking around when moving the head with the mo...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_a9fe22cc3b933b12674a5b8f1b5c834ac"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#a9fe22cc3b933b12674a5b8f1b5c834ac">mingfx::CraftCam::rotation_scale</a></div><div class="ttdeci">float rotation_scale()</div><div class="ttdoc">This is the scale factor used to speed up / slow down left/right rotation when walking for the LEFT /...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_ab9e1864b5859c22d27ba809b1ba7a51f"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#ab9e1864b5859c22d27ba809b1ba7a51f">mingfx::CraftCam::CraftCam</a></div><div class="ttdeci">CraftCam(const Matrix4 &initial_view_matrix)</div><div class="ttdoc">Creates a CraftCam object with the supplied initial view matrix.</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_acccdadc08d8d8a0b7b9426f18209ff36"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#acccdadc08d8d8a0b7b9426f18209ff36">mingfx::CraftCam::view_matrix</a></div><div class="ttdeci">Matrix4 view_matrix()</div><div class="ttdoc">Access the camera view matrix created by the CraftCam interactions via this method and use it to draw...</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_ae0b0e8d75ffc69c6373a13f1f9c2f171"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#ae0b0e8d75ffc69c6373a13f1f9c2f171">mingfx::CraftCam::CraftCam</a></div><div class="ttdeci">CraftCam()</div><div class="ttdoc">Creates a CraftCam object with an initial view matrix = identity.</div></div>
<div class="ttc" id="aclassmingfx_1_1_craft_cam_html_ae3d9c7ea9307dbbadaa4b6e2f9933a7b"><div class="ttname"><a href="classmingfx_1_1_craft_cam.html#ae3d9c7ea9307dbbadaa4b6e2f9933a7b">mingfx::CraftCam::UpdateHeight</a></div><div class="ttdeci">void UpdateHeight(float new_y_value)</div><div class="ttdoc">Sets the y value of the camera (i.e., the height). If you want to set the entire view matrix,...</div></div>
<div class="ttc" id="aclassmingfx_1_1_matrix4_html"><div class="ttname"><a href="classmingfx_1_1_matrix4.html">mingfx::Matrix4</a></div><div class="ttdoc">A 4x4 transformation matrix stored internally as an array of floats in column-major order so as to be...</div><div class="ttdef"><b>Definition:</b> <a href="matrix4_8h_source.html#l00050">matrix4.h:50</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_point3_html"><div class="ttname"><a href="classmingfx_1_1_point3.html">mingfx::Point3</a></div><div class="ttdoc">A 3D Point with floating point coordinates, used for storing vertices and all sorts of other 3D graph...</div><div class="ttdef"><b>Definition:</b> <a href="point3_8h_source.html#l00052">point3.h:52</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector2_html"><div class="ttname"><a href="classmingfx_1_1_vector2.html">mingfx::Vector2</a></div><div class="ttdoc">A 2D Vector with floating point coordinates, used for storing 2D translations, mouse movements,...</div><div class="ttdef"><b>Definition:</b> <a href="vector2_8h_source.html#l00028">vector2.h:28</a></div></div>
<div class="ttc" id="aclassmingfx_1_1_vector3_html"><div class="ttname"><a href="classmingfx_1_1_vector3.html">mingfx::Vector3</a></div><div class="ttdoc">A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graph...</div><div class="ttdef"><b>Definition:</b> <a href="vector3_8h_source.html#l00062">vector3.h:62</a></div></div>
<div class="ttc" id="amatrix4_8h_html"><div class="ttname"><a href="matrix4_8h.html">matrix4.h</a></div></div>
<div class="ttc" id="anamespacemingfx_html"><div class="ttname"><a href="namespacemingfx.html">mingfx</a></div><div class="ttdoc">Namespace for the MinGfx Toolkit.</div><div class="ttdef"><b>Definition:</b> <a href="aabb_8h_source.html#l00021">aabb.h:21</a></div></div>
<div class="ttc" id="apoint2_8h_html"><div class="ttname"><a href="point2_8h.html">point2.h</a></div></div>
<div class="ttc" id="avector2_8h_html"><div class="ttname"><a href="vector2_8h.html">vector2.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.9.1-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.9.1
</small></address>
</body>
</html>
|