diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a06596.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a06596.html | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a06596.html b/docs/doxygen/nel/a06596.html new file mode 100644 index 00000000..c5dbca09 --- /dev/null +++ b/docs/doxygen/nel/a06596.html @@ -0,0 +1,92 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: u_camera.h Source File</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>u_camera.h</h1><a href="a05173.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00007 <span class="comment">/* Copyright, 2001 Nevrax Ltd.</span> +00008 <span class="comment"> *</span> +00009 <span class="comment"> * This file is part of NEVRAX NEL.</span> +00010 <span class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</span> +00011 <span class="comment"> * it under the terms of the GNU General Public License as published by</span> +00012 <span class="comment"> * the Free Software Foundation; either version 2, or (at your option)</span> +00013 <span class="comment"> * any later version.</span> +00014 <span class="comment"></span> +00015 <span class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</span> +00016 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span> +00017 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> +00018 <span class="comment"> * General Public License for more details.</span> +00019 <span class="comment"></span> +00020 <span class="comment"> * You should have received a copy of the GNU General Public License</span> +00021 <span class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</span> +00022 <span class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</span> +00023 <span class="comment"> * MA 02111-1307, USA.</span> +00024 <span class="comment"> */</span> +00025 +00026 <span class="preprocessor">#ifndef NL_U_CAMERA_H</span> +00027 <span class="preprocessor"></span><span class="preprocessor">#define NL_U_CAMERA_H</span> +00028 <span class="preprocessor"></span> +00029 <span class="preprocessor">#include "<a class="code" href="a05167.html">nel/misc/types_nl.h</a>"</span> +00030 <span class="preprocessor">#include "<a class="code" href="a05211.html">nel/3d/u_transform.h</a>"</span> +00031 <span class="preprocessor">#include "<a class="code" href="a04310.html">nel/3d/frustum.h</a>"</span> +00032 +00033 +00034 <span class="keyword">namespace </span>NL3D +00035 { +00036 +00037 +00038 <span class="comment">// ***************************************************************************</span> +<a name="l00045"></a><a class="code" href="a02322.html">00045</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="a02322.html">UCamera</a> : <span class="keyword">virtual</span> <span class="keyword">public</span> <a class="code" href="a02321.html">UTransform</a> +00046 { +00047 <span class="keyword">protected</span>: +00048 +00050 <span class="comment">// @{</span> +<a name="l00051"></a><a class="code" href="a02322.html#NL3D_1_1UCameraz1384_0">00051</a> <a class="code" href="a02322.html#NL3D_1_1UCameraz1384_0">UCamera</a>() {} +<a name="l00052"></a><a class="code" href="a02322.html#NL3D_1_1UCameraz1384_1">00052</a> <span class="keyword">virtual</span> <a class="code" href="a02322.html#NL3D_1_1UCameraz1384_1">~UCamera</a>() {} +00053 <span class="comment">// @}</span> +00054 +00055 <span class="keyword">public</span>: +00057 +00058 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> DefLx; <span class="comment">//=0.26f;</span> +00059 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> DefLy; <span class="comment">//=0.2f;</span> +00060 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> DefLzNear; <span class="comment">//=0.15f;</span> +00061 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">float</span> DefLzFar; <span class="comment">//=1000.0f;</span> +00063 <span class="comment"></span> +00064 +00065 <span class="keyword">public</span>: +00066 +00067 +00069 <span class="comment">// @{</span> +00071 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02322.html#NL3D_1_1UCameraz1388_6">setFrustum</a>(<span class="keyword">const</span> <a class="code" href="a02562.html">CFrustum</a> &f)=0; +00073 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="a02562.html">CFrustum</a>& <a class="code" href="a02322.html#NL3D_1_1UCameraz1388_1">getFrustum</a>() <span class="keyword">const</span> =0; +00075 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02322.html#NL3D_1_1UCameraz1388_6">setFrustum</a>(<span class="keywordtype">float</span> left, <span class="keywordtype">float</span> right, <span class="keywordtype">float</span> bottom, <span class="keywordtype">float</span> top, <span class="keywordtype">float</span> znear, <span class="keywordtype">float</span> zfar, <span class="keywordtype">bool</span> perspective= <span class="keyword">true</span>)=0; +00077 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02322.html#NL3D_1_1UCameraz1388_6">setFrustum</a>(<span class="keywordtype">float</span> <a class="code" href="a04223.html#a632">width</a>, <span class="keywordtype">float</span> <a class="code" href="a04223.html#a633">height</a>, <span class="keywordtype">float</span> znear, <span class="keywordtype">float</span> zfar, <span class="keywordtype">bool</span> perspective= <span class="keyword">true</span>)=0; +00079 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02322.html#NL3D_1_1UCameraz1388_1">getFrustum</a>(<span class="keywordtype">float</span> &left, <span class="keywordtype">float</span> &right, <span class="keywordtype">float</span> &bottom, <span class="keywordtype">float</span> &top, <span class="keywordtype">float</span> &znear, <span class="keywordtype">float</span> &zfar) <span class="keyword">const</span> =0; +00081 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a02322.html#NL3D_1_1UCameraz1388_2">isOrtho</a>() <span class="keyword">const</span> =0; +00083 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a02322.html#NL3D_1_1UCameraz1388_3">isPerspective</a>() <span class="keyword">const</span> =0; +00090 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02322.html#NL3D_1_1UCameraz1388_7">setPerspective</a>(<span class="keywordtype">float</span> fov, <span class="keywordtype">float</span> aspectRatio, <span class="keywordtype">float</span> znear, <span class="keywordtype">float</span> zfar) =0; +00091 <span class="comment">// @}</span> +00092 +00094 <span class="comment">// @{</span> +00095 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a02322.html#NL3D_1_1UCameraz1390_0">buildCameraPyramid</a>(std::vector<NLMISC::CPlane> &pyramid, <span class="keywordtype">bool</span> useWorldMatrix) =0; +00096 <span class="comment">// @}</span> +00097 +00098 +00099 }; +00100 +00101 +00102 } <span class="comment">// NL3D</span> +00103 +00104 +00105 <span class="preprocessor">#endif // NL_U_CAMERA_H</span> +00106 <span class="preprocessor"></span> +00107 <span class="comment">/* End of u_camera.h */</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:41:00 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |