198 lines
42 KiB
HTML
198 lines
42 KiB
HTML
<!-- HTML header for doxygen 1.8.8-->
|
|
<!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="X-UA-Compatible" content="IE=edge">
|
|
<!-- For Mobile Devices -->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta name="generator" content="Doxygen 1.8.12"/>
|
|
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
|
<title>Ewol Game engine (based on bullet lib): framework/atria-soft/ege/ege/camera/Camera.hpp Source File</title>
|
|
<!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
|
|
<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>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="doxy-boot.js"></script>
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<a class="navbar-brand">Ewol Game engine (based on bullet lib) 0.3.0</a>
|
|
</div>
|
|
<div id="navbar" class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="index.html">Main Page</a></li>
|
|
<li><a href="pages.html">Related Pages</a></li>
|
|
<li><a href="namespaces.html">Namespaces</a></li>
|
|
<li><a href="annotated.html">Classes</a></li>
|
|
<li><a href="files.html">Files</a></li>
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
Link-libs<span class="caret"></span>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="http://HeeroYui.github.io/lutin">lutin</a></li>
|
|
<li><a href="http://atria-soft.github.io/ewol">ewol</a></li>
|
|
<li><a href="http://atria-soft.github.io/echrono">echrono</a></li>
|
|
<li><a href="http://atria-soft.github.io/etk">etk</a></li>
|
|
<li><a href="http://atria-soft.github.io/ejson">ejson</a></li>
|
|
<li><a href="http://atria-soft.github.io/exml">exml</a></li>
|
|
<li><a href="http://atria-soft.github.io/esvg">esvg</a></li>
|
|
<li><a href="http://atria-soft.github.io/egami">egami</a></li>
|
|
<li><a href="http://atria-soft.github.io/gale">gale</a></li>
|
|
<li><a href="http://atria-soft.github.io/ege">ege</a></li>
|
|
<li><a href="http://atria-soft.github.io/elog">elog</a></li>
|
|
<li><a href="http://atria-soft.github.io/ememory">ememory</a></li>
|
|
<li><a href="http://atria-soft.github.io/enet">enet</a></li>
|
|
<li><a href="http://atria-soft.github.io/eproperty">eproperty</a></li>
|
|
<li><a href="http://atria-soft.github.io/esignal">esignal</a></li>
|
|
<li><a href="http://atria-soft.github.io/etranslate">etranslate</a></li>
|
|
<li><a href="http://atria-soft.github.io/zeus">zeus</a></li>
|
|
<li><a href="http://musicdsp.github.io/audio-ess">audio-ess</a></li>
|
|
<li><a href="http://musicdsp.github.io/audio">audio</a></li>
|
|
<li><a href="http://musicdsp.github.io/audio-drain">audio-drain</a></li>
|
|
<li><a href="http://musicdsp.github.io/audio-orchestra">audio-orchestra</a></li>
|
|
<li><a href="http://musicdsp.github.io/audio-river">audio-river</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div id="search-box" class="input-group">
|
|
<div class="input-group-btn">
|
|
<button aria-expanded="false" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
<span class="glyphicon glyphicon-search"></span>
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="#">All</a></li>
|
|
<li><a href="#">Classes</a></li>
|
|
<li><a href="#">Namespaces</a></li>
|
|
<li><a href="#">Files</a></li>
|
|
<li><a href="#">Functions</a></li>
|
|
<li><a href="#">Variables</a></li>
|
|
<li><a href="#">Typedefs</a></li>
|
|
<li><a href="#">Enumerations</a></li>
|
|
<li><a href="#">Enumerator</a></li>
|
|
<li><a href="#">Friends</a></li>
|
|
<li><a href="#">Macros</a></li>
|
|
<li><a href="#">Pages</a></li>
|
|
</ul>
|
|
</div>
|
|
<button id="search-close" type="button" class="close" aria-label="Close">
|
|
<span aria-hidden="true"></span>
|
|
</button>
|
|
<input id="search-field" class="form-control" accesskey="S" onkeydown="searchBox.OnSearchFieldChange(event);" placeholder="Search ..." type="text">
|
|
</div>
|
|
</div><!--/.nav-collapse -->
|
|
</div>
|
|
</nav>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div class="content" id="content">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;">
|
|
<div style="margin-bottom: 15px;margin-top: 60px;">
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.12 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
</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_644e041c3a6521da7b27eba0e4eb2b95.html">framework</a></li><li class="navelem"><a class="el" href="dir_a094892b17be858f66bf3446bbb755c7.html">atria-soft</a></li><li class="navelem"><a class="el" href="dir_6aa09a6913ac62e7dd072c5c01fe4d4f.html">ege</a></li><li class="navelem"><a class="el" href="dir_c7b93e6f668982dd2d9141ef602a101b.html">ege</a></li><li class="navelem"><a class="el" href="dir_6506706ec5b40c53a3a04f015292ff44.html">camera</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Camera.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_camera_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/types__8hpp.html">etk/types.hpp</a>></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/__vector3__d__8hpp.html">etk/math/Vector3D.hpp</a>></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/__vector2__d__8hpp.html">etk/math/Vector2D.hpp</a>></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/__matrix4__8hpp.html">etk/math/Matrix4.hpp</a>></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <<a class="code" href="_ray_8hpp.html">ege/Ray.hpp</a>></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <ewol/resource/Colored3DObject.hpp></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</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="keyword">namespace </span><a class="code" href="namespaceege.html">ege</a> {</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html"> 18</a></span>  <span class="keyword">class </span><a class="code" href="classege_1_1_camera.html">Camera</a> : <span class="keyword">public</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_enable_shared_from_this.html">ememory::EnableSharedFromThis</a><Camera>{</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <a class="code" href="classege_1_1_camera.html#a6be11d3860efd3f9bf74576650861702">Camera</a>();</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a2d3dc7bdfe6bf5ae01e79edca4d3d758"> 27</a></span>  <span class="keyword">virtual</span> <a class="code" href="classege_1_1_camera.html#a2d3dc7bdfe6bf5ae01e79edca4d3d758">~Camera</a>() {};</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#ac2986c41e965a8fc192b0c4c5b1b2a9e"> 33</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#ac2986c41e965a8fc192b0c4c5b1b2a9e">periodicCall</a>(<span class="keywordtype">float</span> _step) {};</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#a25464ace5ab68fc569c022ec1afeb6d0">configureOpenGL</a>();</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a3091de0eb746d893cee0d812864a5a70"> 40</a></span>  <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_matrix4.html">mat4</a> <a class="code" href="classege_1_1_camera.html#a3091de0eb746d893cee0d812864a5a70">m_matrix</a>; </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#ae29bf8f09c03fcb919589ed98dd3f2d6"> 46</a></span>  <span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_matrix4.html">mat4</a>& <a class="code" href="classege_1_1_camera.html#ae29bf8f09c03fcb919589ed98dd3f2d6">getMatrixCamera</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">return</span> <a class="code" href="classege_1_1_camera.html#a3091de0eb746d893cee0d812864a5a70">m_matrix</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a30f23f997db039ce57338009108844a3"> 48</a></span>  };</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_matrix4.html">mat4</a> <a class="code" href="classege_1_1_camera.html#a30f23f997db039ce57338009108844a3">m_matrixProjection</a>; </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#af5cd727143b8e14afee3ed41bc7c8ee6">updateProjectionMatrix</a>();</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a327aa23edf8f3beeaeee358d30e63f5d"> 60</a></span>  <span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_matrix4.html">mat4</a>& <a class="code" href="classege_1_1_camera.html#a327aa23edf8f3beeaeee358d30e63f5d">getMatrixProjection</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">return</span> <a class="code" href="classege_1_1_camera.html#a30f23f997db039ce57338009108844a3">m_matrixProjection</a>;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  };</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">virtual</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a> getViewVector()<span class="keyword"> const </span>{</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">return</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a>(0,0,-1);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">virtual</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a> getEye()<span class="keyword"> const </span>{</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">return</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a>(0,0,0);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a7986fe960cbb4568e0b5f970913f9b46"> 71</a></span>  <span class="keywordtype">float</span> <a class="code" href="classege_1_1_camera.html#a7986fe960cbb4568e0b5f970913f9b46">m_aspectRatio</a>; </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#a5a76d355026c6b0fab196b3b94571123">setAspectRatio</a>(<span class="keywordtype">float</span> _ratio);</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a8165291e4819463677aaf1812059037f"> 82</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#a8165291e4819463677aaf1812059037f">setSceenSize</a>(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html">vec2</a>& _screenSize) {</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classege_1_1_camera.html#a5a76d355026c6b0fab196b3b94571123">setAspectRatio</a>(_screenSize.<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html#a8409de5d430e5cdcb7326aee94176873">x</a>()/_screenSize.<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html#abc8a9a46cb0bf2c32916bfa3a35dfb22">y</a>());</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  }</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#ac377f03471b1d2b687ab1b1d69667dd6"> 89</a></span>  <span class="keywordtype">float</span> <a class="code" href="classege_1_1_camera.html#ac377f03471b1d2b687ab1b1d69667dd6">getAspectRatio</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">return</span> <a class="code" href="classege_1_1_camera.html#a7986fe960cbb4568e0b5f970913f9b46">m_aspectRatio</a>;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a5ba6b65e2a7cca465f0a07b1e9e6bf0a"> 93</a></span>  <span class="keywordtype">float</span> <a class="code" href="classege_1_1_camera.html#a5ba6b65e2a7cca465f0a07b1e9e6bf0a">m_angleView</a>; </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#a468d28287cf9a03f7ef50919776ac772">setXAngleView</a>(<span class="keywordtype">float</span> _angleRad);</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#aaf3314bee70721b5807498ad35a509bd"> 105</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#aaf3314bee70721b5807498ad35a509bd">setYAngleView</a>(<span class="keywordtype">float</span> _angleRad) {</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="classege_1_1_camera.html#a468d28287cf9a03f7ef50919776ac772">setXAngleView</a>(_angleRad * m_aspectRatio);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#ac37505cc5055ee40bef24189af54d9a0"> 112</a></span>  <span class="keywordtype">float</span> <a class="code" href="classege_1_1_camera.html#ac37505cc5055ee40bef24189af54d9a0">getXAngleView</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">return</span> <a class="code" href="classege_1_1_camera.html#a5ba6b65e2a7cca465f0a07b1e9e6bf0a">m_angleView</a>;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a0cb6298d514db78431ee632eabaf4cc8"> 116</a></span>  <span class="keywordtype">float</span> <a class="code" href="classege_1_1_camera.html#a0cb6298d514db78431ee632eabaf4cc8">m_zFar</a>; </div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#a6ea40e7d2437e1fc2d1f34bb5d2a7dad">setZFar</a>(<span class="keywordtype">float</span> _distance);</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#aaf6cac03697afb56a58bcceb1f82610f"> 127</a></span>  <span class="keywordtype">float</span> <a class="code" href="classege_1_1_camera.html#aaf6cac03697afb56a58bcceb1f82610f">getZFar</a>() {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> <a class="code" href="classege_1_1_camera.html#a0cb6298d514db78431ee632eabaf4cc8">m_zFar</a>;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a72aad1de8e32fff6ab15d2b49d81b076"> 131</a></span>  <span class="keywordtype">float</span> <a class="code" href="classege_1_1_camera.html#a72aad1de8e32fff6ab15d2b49d81b076">m_zNear</a>; </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#ad959d3777b95e81c68b249bf3d2fe4c0">setZNear</a>(<span class="keywordtype">float</span> _distance);</div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#ae9d30774dcd96d681e5c650ff11e4cd0"> 142</a></span>  <span class="keywordtype">float</span> <a class="code" href="classege_1_1_camera.html#ae9d30774dcd96d681e5c650ff11e4cd0">getZNear</a>() {</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordflow">return</span> <a class="code" href="classege_1_1_camera.html#a72aad1de8e32fff6ab15d2b49d81b076">m_zNear</a>;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  }</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keyword">virtual</span> <a class="code" href="classege_1_1_ray.html">ege::Ray</a> <a class="code" href="classege_1_1_camera.html#a872351f140a21d9f262138c8e7b61232">getRayFromScreen</a>(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html">vec2</a>& _offset);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="classege_1_1_ray.html">ege::Ray</a> <a class="code" href="classege_1_1_camera.html#af99e8a0e4c3a6275bdb4825dc80b1a79">getRayFromScreenPosition</a>(<span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html">vec2</a>& _position, <span class="keyword">const</span> <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html">vec2</a>& _size);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html">vec2</a> <a class="code" href="classege_1_1_camera.html#a7aef459c0becd72fdc8590ff675618b5">tansformPositionToAngle</a>(<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/etk.tag:http://atria-soft.github.io/etk/" href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">vec3</a> _vect);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classege_1_1_camera.html#a7ccef622e9329f479b8ef6f712c6c65c"> 171</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classege_1_1_camera.html#a7ccef622e9329f479b8ef6f712c6c65c">drawDebug</a>(<a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr<ewol::resource::Colored3DObject></a> _draw, <a class="codeRef" doxygen="/home/heero/dev/perso/out/doc/release/ememory.tag:http://atria-soft.github.io/ememory/" href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr<ege::Camera></a> _camera) { }</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  };</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> }</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div><div class="ttc" id="classege_1_1_camera_html_aaf3314bee70721b5807498ad35a509bd"><div class="ttname"><a href="classege_1_1_camera.html#aaf3314bee70721b5807498ad35a509bd">ege::Camera::setYAngleView</a></div><div class="ttdeci">virtual void setYAngleView(float _angleRad)</div><div class="ttdoc">Set the the Y angle view of the camera: </div><div class="ttdef"><b>Definition:</b> Camera.hpp:105</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a327aa23edf8f3beeaeee358d30e63f5d"><div class="ttname"><a href="classege_1_1_camera.html#a327aa23edf8f3beeaeee358d30e63f5d">ege::Camera::getMatrixProjection</a></div><div class="ttdeci">const mat4 & getMatrixProjection() const</div><div class="ttdoc">get the transformation matix for the camera. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:60</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a25464ace5ab68fc569c022ec1afeb6d0"><div class="ttname"><a href="classege_1_1_camera.html#a25464ace5ab68fc569c022ec1afeb6d0">ege::Camera::configureOpenGL</a></div><div class="ttdeci">virtual void configureOpenGL()</div><div class="ttdoc">Configure projection matrix and camera matrix. </div></div>
|
|
<div class="ttc" id="classetk_1_1_vector2_d_html_a8409de5d430e5cdcb7326aee94176873"><div class="ttname"><a href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html#a8409de5d430e5cdcb7326aee94176873">etk::Vector2D::x</a></div><div class="ttdeci">const T & x() const</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a6ea40e7d2437e1fc2d1f34bb5d2a7dad"><div class="ttname"><a href="classege_1_1_camera.html#a6ea40e7d2437e1fc2d1f34bb5d2a7dad">ege::Camera::setZFar</a></div><div class="ttdeci">virtual void setZFar(float _distance)</div><div class="ttdoc">Set the Z far distane of the camera: </div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a7986fe960cbb4568e0b5f970913f9b46"><div class="ttname"><a href="classege_1_1_camera.html#a7986fe960cbb4568e0b5f970913f9b46">ege::Camera::m_aspectRatio</a></div><div class="ttdeci">float m_aspectRatio</div><div class="ttdoc">depending to the display the aspect ratio is simply calculated x/y </div><div class="ttdef"><b>Definition:</b> Camera.hpp:71</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a6be11d3860efd3f9bf74576650861702"><div class="ttname"><a href="classege_1_1_camera.html#a6be11d3860efd3f9bf74576650861702">ege::Camera::Camera</a></div><div class="ttdeci">Camera()</div><div class="ttdoc">Constructor. </div></div>
|
|
<div class="ttc" id="_ray_8hpp_html"><div class="ttname"><a href="_ray_8hpp.html">Ray.hpp</a></div></div>
|
|
<div class="ttc" id="__vector3__d__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/__vector3__d__8hpp.html">Vector3D.hpp</a></div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a72aad1de8e32fff6ab15d2b49d81b076"><div class="ttname"><a href="classege_1_1_camera.html#a72aad1de8e32fff6ab15d2b49d81b076">ege::Camera::m_zNear</a></div><div class="ttdeci">float m_zNear</div><div class="ttdoc">Z camera near view. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:131</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a30f23f997db039ce57338009108844a3"><div class="ttname"><a href="classege_1_1_camera.html#a30f23f997db039ce57338009108844a3">ege::Camera::m_matrixProjection</a></div><div class="ttdeci">mat4 m_matrixProjection</div><div class="ttdoc">projection matrix. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:48</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_ac377f03471b1d2b687ab1b1d69667dd6"><div class="ttname"><a href="classege_1_1_camera.html#ac377f03471b1d2b687ab1b1d69667dd6">ege::Camera::getAspectRatio</a></div><div class="ttdeci">float getAspectRatio() const</div><div class="ttdoc">get the current aspect Ratio. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:89</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a3091de0eb746d893cee0d812864a5a70"><div class="ttname"><a href="classege_1_1_camera.html#a3091de0eb746d893cee0d812864a5a70">ege::Camera::m_matrix</a></div><div class="ttdeci">mat4 m_matrix</div><div class="ttdoc">transformation matrix. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:40</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_af5cd727143b8e14afee3ed41bc7c8ee6"><div class="ttname"><a href="classege_1_1_camera.html#af5cd727143b8e14afee3ed41bc7c8ee6">ege::Camera::updateProjectionMatrix</a></div><div class="ttdeci">virtual void updateProjectionMatrix()</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a468d28287cf9a03f7ef50919776ac772"><div class="ttname"><a href="classege_1_1_camera.html#a468d28287cf9a03f7ef50919776ac772">ege::Camera::setXAngleView</a></div><div class="ttdeci">virtual void setXAngleView(float _angleRad)</div><div class="ttdoc">Set the the X angle view of the camera: </div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a872351f140a21d9f262138c8e7b61232"><div class="ttname"><a href="classege_1_1_camera.html#a872351f140a21d9f262138c8e7b61232">ege::Camera::getRayFromScreen</a></div><div class="ttdeci">virtual ege::Ray getRayFromScreen(const vec2 &_offset)</div></div>
|
|
<div class="ttc" id="__vector2__d__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/__vector2__d__8hpp.html">Vector2D.hpp</a></div></div>
|
|
<div class="ttc" id="types__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/types__8hpp.html">types.hpp</a></div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_aaf6cac03697afb56a58bcceb1f82610f"><div class="ttname"><a href="classege_1_1_camera.html#aaf6cac03697afb56a58bcceb1f82610f">ege::Camera::getZFar</a></div><div class="ttdeci">float getZFar()</div><div class="ttdoc">Get the Z far distane of the camera: </div><div class="ttdef"><b>Definition:</b> Camera.hpp:127</div></div>
|
|
<div class="ttc" id="namespaceege_html"><div class="ttname"><a href="namespaceege.html">ege</a></div><div class="ttdef"><b>Definition:</b> AudioElement.hpp:8</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a8165291e4819463677aaf1812059037f"><div class="ttname"><a href="classege_1_1_camera.html#a8165291e4819463677aaf1812059037f">ege::Camera::setSceenSize</a></div><div class="ttdeci">virtual void setSceenSize(const vec2 &_screenSize)</div><div class="ttdoc">Set the screen size to display OpenGl interface. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:82</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html"><div class="ttname"><a href="classege_1_1_camera.html">ege::Camera</a></div><div class="ttdef"><b>Definition:</b> Camera.hpp:18</div></div>
|
|
<div class="ttc" id="__matrix4__8hpp_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/__matrix4__8hpp.html">Matrix4.hpp</a></div></div>
|
|
<div class="ttc" id="classememory_1_1_enable_shared_from_this_html"><div class="ttname"><a href="http://atria-soft.github.io/ememory/classememory_1_1_enable_shared_from_this.html">ememory::EnableSharedFromThis</a></div></div>
|
|
<div class="ttc" id="classetk_1_1_matrix4_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/classetk_1_1_matrix4.html">etk::Matrix4</a></div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_ac37505cc5055ee40bef24189af54d9a0"><div class="ttname"><a href="classege_1_1_camera.html#ac37505cc5055ee40bef24189af54d9a0">ege::Camera::getXAngleView</a></div><div class="ttdeci">float getXAngleView() const</div><div class="ttdoc">get the current X angle view. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:112</div></div>
|
|
<div class="ttc" id="classege_1_1_ray_html"><div class="ttname"><a href="classege_1_1_ray.html">ege::Ray</a></div><div class="ttdef"><b>Definition:</b> Ray.hpp:17</div></div>
|
|
<div class="ttc" id="classetk_1_1_vector2_d_html_abc8a9a46cb0bf2c32916bfa3a35dfb22"><div class="ttname"><a href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html#abc8a9a46cb0bf2c32916bfa3a35dfb22">etk::Vector2D::y</a></div><div class="ttdeci">const T & y() const</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a7ccef622e9329f479b8ef6f712c6c65c"><div class="ttname"><a href="classege_1_1_camera.html#a7ccef622e9329f479b8ef6f712c6c65c">ege::Camera::drawDebug</a></div><div class="ttdeci">virtual void drawDebug(ememory::SharedPtr< ewol::resource::Colored3DObject > _draw, ememory::SharedPtr< ege::Camera > _camera)</div><div class="ttdoc">Debug display of the current element. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:171</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a5ba6b65e2a7cca465f0a07b1e9e6bf0a"><div class="ttname"><a href="classege_1_1_camera.html#a5ba6b65e2a7cca465f0a07b1e9e6bf0a">ege::Camera::m_angleView</a></div><div class="ttdeci">float m_angleView</div><div class="ttdoc">X angle view of the camera. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:93</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_ad959d3777b95e81c68b249bf3d2fe4c0"><div class="ttname"><a href="classege_1_1_camera.html#ad959d3777b95e81c68b249bf3d2fe4c0">ege::Camera::setZNear</a></div><div class="ttdeci">virtual void setZNear(float _distance)</div><div class="ttdoc">Set the Z near distane of the camera: </div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a7aef459c0becd72fdc8590ff675618b5"><div class="ttname"><a href="classege_1_1_camera.html#a7aef459c0becd72fdc8590ff675618b5">ege::Camera::tansformPositionToAngle</a></div><div class="ttdeci">vec2 tansformPositionToAngle(vec3 _vect)</div><div class="ttdoc">get Tetha and psy angle from a position: </div></div>
|
|
<div class="ttc" id="classetk_1_1_vector2_d_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/classetk_1_1_vector2_d.html">etk::Vector2D</a></div></div>
|
|
<div class="ttc" id="classetk_1_1_vector3_d_html"><div class="ttname"><a href="http://atria-soft.github.io/etk/classetk_1_1_vector3_d.html">etk::Vector3D< float ></a></div></div>
|
|
<div class="ttc" id="classememory_1_1_shared_ptr_html"><div class="ttname"><a href="http://atria-soft.github.io/ememory/classememory_1_1_shared_ptr.html">ememory::SharedPtr< ewol::resource::Colored3DObject ></a></div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a2d3dc7bdfe6bf5ae01e79edca4d3d758"><div class="ttname"><a href="classege_1_1_camera.html#a2d3dc7bdfe6bf5ae01e79edca4d3d758">ege::Camera::~Camera</a></div><div class="ttdeci">virtual ~Camera()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:27</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_ac2986c41e965a8fc192b0c4c5b1b2a9e"><div class="ttname"><a href="classege_1_1_camera.html#ac2986c41e965a8fc192b0c4c5b1b2a9e">ege::Camera::periodicCall</a></div><div class="ttdeci">virtual void periodicCall(float _step)</div><div class="ttdoc">It is really needed to call the camera periodicly for performing automatic movement. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:33</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_af99e8a0e4c3a6275bdb4825dc80b1a79"><div class="ttname"><a href="classege_1_1_camera.html#af99e8a0e4c3a6275bdb4825dc80b1a79">ege::Camera::getRayFromScreenPosition</a></div><div class="ttdeci">ege::Ray getRayFromScreenPosition(const vec2 &_position, const vec2 &_size)</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a5a76d355026c6b0fab196b3b94571123"><div class="ttname"><a href="classege_1_1_camera.html#a5a76d355026c6b0fab196b3b94571123">ege::Camera::setAspectRatio</a></div><div class="ttdeci">virtual void setAspectRatio(float _ratio)</div><div class="ttdoc">Set the aspectRatio of the camera: </div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_ae29bf8f09c03fcb919589ed98dd3f2d6"><div class="ttname"><a href="classege_1_1_camera.html#ae29bf8f09c03fcb919589ed98dd3f2d6">ege::Camera::getMatrixCamera</a></div><div class="ttdeci">const mat4 & getMatrixCamera() const</div><div class="ttdoc">get the transformation matix for the camera. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:46</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_a0cb6298d514db78431ee632eabaf4cc8"><div class="ttname"><a href="classege_1_1_camera.html#a0cb6298d514db78431ee632eabaf4cc8">ege::Camera::m_zFar</a></div><div class="ttdeci">float m_zFar</div><div class="ttdoc">Z camera far view. </div><div class="ttdef"><b>Definition:</b> Camera.hpp:116</div></div>
|
|
<div class="ttc" id="classege_1_1_camera_html_ae9d30774dcd96d681e5c650ff11e4cd0"><div class="ttname"><a href="classege_1_1_camera.html#ae9d30774dcd96d681e5c650ff11e4cd0">ege::Camera::getZNear</a></div><div class="ttdeci">float getZNear()</div><div class="ttdoc">Get the Z Near distane of the camera: </div><div class="ttdef"><b>Definition:</b> Camera.hpp:142</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- HTML footer for doxygen 1.8.8-->
|
|
<!-- start footer part -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Mon Oct 24 2016 15:35:54 for Ewol Game engine (based on bullet lib) by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.12
|
|
</small></address>
|
|
</body>
|
|
</html>
|