From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a06596.html | 92 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 docs/doxygen/nel/a06596.html (limited to 'docs/doxygen/nel/a06596.html') 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 @@ + + +NeL: u_camera.h Source File + + + +
+

u_camera.h

Go to the documentation of this file.
00001 
+00007 /* Copyright, 2001 Nevrax Ltd.
+00008  *
+00009  * This file is part of NEVRAX NEL.
+00010  * NEVRAX NEL is free software; you can redistribute it and/or modify
+00011  * it under the terms of the GNU General Public License as published by
+00012  * the Free Software Foundation; either version 2, or (at your option)
+00013  * any later version.
+00014 
+00015  * NEVRAX NEL is distributed in the hope that it will be useful, but
+00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
+00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+00018  * General Public License for more details.
+00019 
+00020  * You should have received a copy of the GNU General Public License
+00021  * along with NEVRAX NEL; see the file COPYING. If not, write to the
+00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+00023  * MA 02111-1307, USA.
+00024  */
+00025 
+00026 #ifndef NL_U_CAMERA_H
+00027 #define NL_U_CAMERA_H
+00028 
+00029 #include "nel/misc/types_nl.h"
+00030 #include "nel/3d/u_transform.h"
+00031 #include "nel/3d/frustum.h"
+00032 
+00033 
+00034 namespace NL3D
+00035 {
+00036 
+00037 
+00038 // ***************************************************************************
+00045 class UCamera : virtual public UTransform
+00046 {
+00047 protected:
+00048 
+00050         // @{
+00051         UCamera() {}
+00052         virtual ~UCamera() {}
+00053         // @}
+00054 
+00055 public:
+00057 
+00058         static const float              DefLx;          //=0.26f;
+00059         static const float              DefLy;          //=0.2f;
+00060         static const float              DefLzNear;      //=0.15f;
+00061         static const float              DefLzFar;       //=1000.0f;
+00063 
+00064 
+00065 public:
+00066 
+00067 
+00069         // @{
+00071         virtual void            setFrustum(const CFrustum &f)=0;
+00073         virtual const CFrustum& getFrustum() const =0;
+00075         virtual void            setFrustum(float left, float right, float bottom, float top, float znear, float zfar, bool perspective= true)=0;
+00077         virtual void            setFrustum(float width, float height, float znear, float zfar, bool perspective= true)=0;
+00079         virtual void            getFrustum(float &left, float &right, float &bottom, float &top, float &znear, float &zfar) const =0;
+00081         virtual bool            isOrtho() const =0;
+00083         virtual bool            isPerspective() const =0;
+00090         virtual void            setPerspective(float fov, float aspectRatio, float znear, float zfar) =0;
+00091         // @}
+00092 
+00094         // @{
+00095         virtual void            buildCameraPyramid(std::vector<NLMISC::CPlane>  &pyramid, bool useWorldMatrix) =0;
+00096         // @}
+00097         
+00098 
+00099 };
+00100 
+00101 
+00102 } // NL3D
+00103 
+00104 
+00105 #endif // NL_U_CAMERA_H
+00106 
+00107 /* End of u_camera.h */
+

Generated on Tue Mar 16 06:41:00 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1