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/landscape_model_h-source.html | 196 +++++++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 docs/doxygen/nel/landscape_model_h-source.html (limited to 'docs/doxygen/nel/landscape_model_h-source.html') diff --git a/docs/doxygen/nel/landscape_model_h-source.html b/docs/doxygen/nel/landscape_model_h-source.html new file mode 100644 index 00000000..117ff075 --- /dev/null +++ b/docs/doxygen/nel/landscape_model_h-source.html @@ -0,0 +1,196 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

landscape_model.h

Go to the documentation of this file.
00001 
+00007 /* Copyright, 2000 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_LANDSCAPE_MODEL_H
+00027 #define NL_LANDSCAPE_MODEL_H
+00028 
+00029 #include "nel/misc/types_nl.h"
+00030 #include "nel/3d/transform.h"
+00031 #include "nel/3d/render_trav.h"
+00032 #include "nel/3d/landscape.h"
+00033 
+00034 
+00035 namespace NL3D 
+00036 {
+00037 
+00038 class   CLandscape;
+00039 
+00040 // ***************************************************************************
+00041 const NLMISC::CClassId          LandscapeModelId=NLMISC::CClassId(0x5a573b55, 0x6b395829);
+00042 
+00043 
+00044 // ***************************************************************************
+00051 class   CLandscapeModel : public CTransform
+00052 {
+00053 public:
+00055         static  void    registerBasic();
+00056 
+00057 public:
+00058         CLandscape              Landscape;
+00059 
+00064         void                    setAdditive (float additive)
+00065         {
+00066                 _Additive=additive;
+00067         }
+00068 
+00073         float                   getAdditive () const
+00074         {
+00075                 return _Additive;
+00076         }
+00077 
+00082         void                    enableAdditive (bool enable)
+00083         {
+00084                 _ActiveAdditive=enable;
+00085         }
+00086 
+00091         bool                    isAdditive () const
+00092         {
+00093                 return _ActiveAdditive;
+00094         }
+00095 
+00096 protected:
+00097         CLandscapeModel()
+00098         {
+00099                 Landscape.init();
+00100                 _ActiveAdditive=false;
+00101                 _Additive=1.f;
+00102         }
+00103         virtual ~CLandscapeModel() {}
+00104 
+00105 private:
+00106         static IModel   *creator() {return new CLandscapeModel;}
+00107 
+00108         bool    _ActiveAdditive;
+00109         float   _Additive;
+00110 
+00111         friend class CLandscapeClipObs;
+00112         friend class CLandscapeRenderObs;
+00113 
+00114         std::vector<CPlane>             CurrentPyramid;
+00115 };
+00116 
+00117 
+00118 // Clip obs.
+00119 //*************
+00121 class   CLandscapeClipObs : public CTransformClipObs
+00122 {
+00123 public:
+00124 
+00126         virtual bool    isRenderable() const {return true;}
+00127 
+00129         virtual bool    clip(IBaseClipObs *caller);
+00130 
+00131         // The creator.
+00132         static IObs     *creator() {return new CLandscapeClipObs;}
+00133 };
+00134 // Render obs.
+00135 //*************
+00137 class   CLandscapeRenderObs : public IBaseRenderObs
+00138 {
+00139 public:
+00141         virtual void    traverse(IObs *caller);
+00142 
+00143         // The creator.
+00144         static IObs     *creator() {return new CLandscapeRenderObs;}
+00145 };
+00146 
+00147 
+00148 
+00149 
+00150 } // NL3D
+00151 
+00152 
+00153 #endif // NL_LANDSCAPE_MODEL_H
+00154 
+00155 /* End of landscape_model.h */
+
+ + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1