diff options
Diffstat (limited to 'libraries/irrlicht-1.8/doc/html/classirr_1_1scene_1_1_i_terrain_scene_node.html')
-rw-r--r-- | libraries/irrlicht-1.8/doc/html/classirr_1_1scene_1_1_i_terrain_scene_node.html | 793 |
1 files changed, 0 insertions, 793 deletions
diff --git a/libraries/irrlicht-1.8/doc/html/classirr_1_1scene_1_1_i_terrain_scene_node.html b/libraries/irrlicht-1.8/doc/html/classirr_1_1scene_1_1_i_terrain_scene_node.html deleted file mode 100644 index 5433312..0000000 --- a/libraries/irrlicht-1.8/doc/html/classirr_1_1scene_1_1_i_terrain_scene_node.html +++ /dev/null | |||
@@ -1,793 +0,0 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
5 | <title>Irrlicht 3D Engine: irr::scene::ITerrainSceneNode Class Reference</title> | ||
6 | |||
7 | <link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
8 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
9 | <link href="navtree.css" rel="stylesheet" type="text/css"/> | ||
10 | <script type="text/javascript" src="jquery.js"></script> | ||
11 | <script type="text/javascript" src="resize.js"></script> | ||
12 | <script type="text/javascript" src="navtree.js"></script> | ||
13 | <script type="text/javascript"> | ||
14 | $(document).ready(initResizable); | ||
15 | </script> | ||
16 | <link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
17 | <script type="text/javascript" src="search/search.js"></script> | ||
18 | <script type="text/javascript"> | ||
19 | $(document).ready(function() { searchBox.OnSelectItem(0); }); | ||
20 | </script> | ||
21 | |||
22 | </head> | ||
23 | <body> | ||
24 | <div id="top"><!-- do not remove this div! --> | ||
25 | |||
26 | |||
27 | <div id="titlearea"> | ||
28 | <table cellspacing="0" cellpadding="0"> | ||
29 | <tbody> | ||
30 | <tr style="height: 56px;"> | ||
31 | |||
32 | <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td> | ||
33 | |||
34 | |||
35 | <td style="padding-left: 0.5em;"> | ||
36 | <div id="projectname">Irrlicht 3D Engine | ||
37 | |||
38 | </div> | ||
39 | |||
40 | </td> | ||
41 | |||
42 | |||
43 | |||
44 | |||
45 | <td> <div id="MSearchBox" class="MSearchBoxInactive"> | ||
46 | <span class="left"> | ||
47 | <img id="MSearchSelect" src="search/mag_sel.png" | ||
48 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
49 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
50 | alt=""/> | ||
51 | <input type="text" id="MSearchField" value="Search" accesskey="S" | ||
52 | onfocus="searchBox.OnSearchFieldFocus(true)" | ||
53 | onblur="searchBox.OnSearchFieldFocus(false)" | ||
54 | onkeyup="searchBox.OnSearchFieldChange(event)"/> | ||
55 | </span><span class="right"> | ||
56 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> | ||
57 | </span> | ||
58 | </div> | ||
59 | </td> | ||
60 | |||
61 | |||
62 | </tr> | ||
63 | </tbody> | ||
64 | </table> | ||
65 | </div> | ||
66 | |||
67 | <!-- Generated by Doxygen 1.7.5.1 --> | ||
68 | <script type="text/javascript"> | ||
69 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); | ||
70 | </script> | ||
71 | <script type="text/javascript" src="dynsections.js"></script> | ||
72 | </div> | ||
73 | <div id="side-nav" class="ui-resizable side-nav-resizable"> | ||
74 | <div id="nav-tree"> | ||
75 | <div id="nav-tree-contents"> | ||
76 | </div> | ||
77 | </div> | ||
78 | <div id="splitbar" style="-moz-user-select:none;" | ||
79 | class="ui-resizable-handle"> | ||
80 | </div> | ||
81 | </div> | ||
82 | <script type="text/javascript"> | ||
83 | initNavTree('classirr_1_1scene_1_1_i_terrain_scene_node.html',''); | ||
84 | </script> | ||
85 | <div id="doc-content"> | ||
86 | <div class="header"> | ||
87 | <div class="summary"> | ||
88 | <a href="#pub-methods">Public Member Functions</a> </div> | ||
89 | <div class="headertitle"> | ||
90 | <div class="title">irr::scene::ITerrainSceneNode Class Reference</div> </div> | ||
91 | </div> | ||
92 | <div class="contents"> | ||
93 | <!-- doxytag: class="irr::scene::ITerrainSceneNode" --><!-- doxytag: inherits="irr::scene::ISceneNode" --> | ||
94 | <p>A scene node for displaying terrain using the geo mip map algorithm. | ||
95 | <a href="classirr_1_1scene_1_1_i_terrain_scene_node.html#details">More...</a></p> | ||
96 | |||
97 | <p><code>#include <<a class="el" href="_i_terrain_scene_node_8h_source.html">ITerrainSceneNode.h</a>></code></p> | ||
98 | <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> | ||
99 | <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for irr::scene::ITerrainSceneNode:</div> | ||
100 | <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> | ||
101 | </div> | ||
102 | <div id="dynsection-0-content" class="dyncontent" style="display:none;"> | ||
103 | <div class="center"> | ||
104 | <img src="classirr_1_1scene_1_1_i_terrain_scene_node.png" usemap="#irr::scene::ITerrainSceneNode_map" alt=""/> | ||
105 | <map id="irr::scene::ITerrainSceneNode_map" name="irr::scene::ITerrainSceneNode_map"> | ||
106 | <area href="classirr_1_1scene_1_1_i_scene_node.html" title="Scene node interface." alt="irr::scene::ISceneNode" shape="rect" coords="0,112,200,136"/> | ||
107 | <area href="classirr_1_1io_1_1_i_attribute_exchanging_object.html" title="An object which is able to serialize and deserialize its attributes into an attributes object..." alt="irr::io::IAttributeExchangingObject" shape="rect" coords="0,56,200,80"/> | ||
108 | <area href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine." alt="irr::IReferenceCounted" shape="rect" coords="0,0,200,24"/> | ||
109 | </map> | ||
110 | </div></div> | ||
111 | |||
112 | <p><a href="classirr_1_1scene_1_1_i_terrain_scene_node-members.html">List of all members.</a></p> | ||
113 | <h2><a name="pub-methods"></a> | ||
114 | Public Member Functions</h2> | ||
115 | <ul> | ||
116 | <li><a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a152a472837bbce22d1221086a47d8af5">ITerrainSceneNode</a> (<a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> *parent, <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html">ISceneManager</a> *mgr, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> id, const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> &position=<a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.0f, 0.0f), const core::vector3df &rotation=core::vector3df(0.0f, 0.0f, 0.0f), const core::vector3df &scale=core::vector3df(1.0f, 1.0f, 1.0f)) | ||
117 | <dl class="el"><dd class="mdescRight">Constructor. <a href="#a152a472837bbce22d1221086a47d8af5"></a><br/></dl><li>virtual const <a class="el" href="classirr_1_1core_1_1aabbox3d.html">core::aabbox3d</a><br class="typebreak"/> | ||
118 | < <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> > & <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a02a14fe28f5a326fca819c36bee2e92e">getBoundingBox</a> () const =0 | ||
119 | <dl class="el"><dd class="mdescRight">Get the bounding box of the terrain. <a href="#a02a14fe28f5a326fca819c36bee2e92e"></a><br/></dl><li>virtual const <a class="el" href="classirr_1_1core_1_1aabbox3d.html">core::aabbox3d</a><br class="typebreak"/> | ||
120 | < <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> > & <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a383501cc9c5cd30176f1f7ff6f8ab817">getBoundingBox</a> (<a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> patchX, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> patchZ) const =0 | ||
121 | <dl class="el"><dd class="mdescRight">Get the bounding box of a patch. <a href="#a383501cc9c5cd30176f1f7ff6f8ab817"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a0d310851f0ebf1fce18d3a2c0f3dceab">getCurrentLODOfPatches</a> (<a class="el" href="classirr_1_1core_1_1array.html">core::array</a>< <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> > &LODs) const =0 | ||
122 | <dl class="el"><dd class="mdescRight">Populates an array with the CurrentLOD of each patch. <a href="#a0d310851f0ebf1fce18d3a2c0f3dceab"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a9289839822ea77496af62f311f01c8bb">getHeight</a> (<a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> x, <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> y) const =0 | ||
123 | <dl class="el"><dd class="mdescRight">Get height of a point of the terrain. <a href="#a9289839822ea77496af62f311f01c8bb"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a0f09a8260f325570ce58f0fc6993aff9">getIndexCount</a> () const =0 | ||
124 | <dl class="el"><dd class="mdescRight">Get the number of indices currently in the meshbuffer. <a href="#a0f09a8260f325570ce58f0fc6993aff9"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#aec6d83c4882fad10a0b35ca5a7ec0935">getIndicesForPatch</a> (<a class="el" href="classirr_1_1core_1_1array.html">core::array</a>< <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> > &indices, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> patchX, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> patchZ, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> LOD=0)=0 | ||
125 | <dl class="el"><dd class="mdescRight">Gets the indices for a specified patch at a specified Level of Detail. <a href="#aec6d83c4882fad10a0b35ca5a7ec0935"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> * <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a6b5f5fca80e77f392e23d83dc61ae88e">getMesh</a> ()=0 | ||
126 | <dl class="el"><dd class="mdescRight">Get pointer to the mesh. <a href="#a6b5f5fca80e77f392e23d83dc61ae88e"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#ae23af8c2066da39ad10714dcf95dd8f1">getMeshBufferForLOD</a> (<a class="el" href="classirr_1_1scene_1_1_i_dynamic_mesh_buffer.html">IDynamicMeshBuffer</a> &mb, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> LOD=0) const =0 | ||
127 | <dl class="el"><dd class="mdescRight">Gets the meshbuffer data based on a specified level of detail. <a href="#ae23af8c2066da39ad10714dcf95dd8f1"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_mesh_buffer.html">IMeshBuffer</a> * <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a3383e2d453c22c31091ad8652de2bb8a">getRenderBuffer</a> ()=0 | ||
128 | <dl class="el"><dd class="mdescRight">Get pointer to the buffer used by the terrain (most users will not need this) <a href="#a3383e2d453c22c31091ad8652de2bb8a"></a><br/></dl><li>virtual const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a804241f60c853e74fcb8687cd887f1b7">getTerrainCenter</a> () const =0 | ||
129 | <dl class="el"><dd class="mdescRight">Get center of terrain. <a href="#a804241f60c853e74fcb8687cd887f1b7"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#ae5c598195e3faafb7cc58b71beb7ee1b">loadHeightMap</a> (<a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *file, <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> vertexColor=<a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255), <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> smoothFactor=0)=0 | ||
130 | <dl class="el"><dd class="mdescRight">Initializes the terrain data. Loads the vertices from the heightMapFile. <a href="#ae5c598195e3faafb7cc58b71beb7ee1b"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a43d92272d8d860dda1c74b9fe795f062">loadHeightMapRAW</a> (<a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *file, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> bitsPerPixel=16, bool signedData=false, bool floatVals=false, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> width=0, <a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> vertexColor=<a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255), <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> smoothFactor=0)=0 | ||
131 | <dl class="el"><dd class="mdescRight">Initializes the terrain data. Loads the vertices from the heightMapFile. <a href="#a43d92272d8d860dda1c74b9fe795f062"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#af98b54e1a59c014d60ea888eba6010d7">overrideLODDistance</a> (<a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> LOD, <a class="el" href="namespaceirr.html#a1325b02603ad449f92c68fc640af9b28">f64</a> newDistance)=0 | ||
132 | <dl class="el"><dd class="mdescRight">Override the default generation of distance thresholds. <a href="#af98b54e1a59c014d60ea888eba6010d7"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#aacfb35db09be74e32c22a10c7e13bbcc">scaleTexture</a> (<a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> scale=1.0f, f32 scale2=0.0f)=0 | ||
133 | <dl class="el"><dd class="mdescRight">Scales the base texture, similar to makePlanarTextureMapping. <a href="#aacfb35db09be74e32c22a10c7e13bbcc"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#af2c07f67c1c5319de4a796ec57950ec3">setCameraMovementDelta</a> (<a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> delta)=0 | ||
134 | <dl class="el"><dd class="mdescRight">Sets the movement camera threshold. <a href="#af2c07f67c1c5319de4a796ec57950ec3"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#ad11f3e54c291487c49868728a5228b5e">setCameraRotationDelta</a> (<a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> delta)=0 | ||
135 | <dl class="el"><dd class="mdescRight">Sets the rotation camera threshold. <a href="#ad11f3e54c291487c49868728a5228b5e"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a95cf695e54f1ef3376f7a3666c2dd834">setDynamicSelectorUpdate</a> (bool bVal)=0 | ||
136 | <dl class="el"><dd class="mdescRight">Sets whether or not the node should dynamically update its associated selector when the geomipmap data changes. <a href="#a95cf695e54f1ef3376f7a3666c2dd834"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html#a41b7f1ee70511d648cc11217347160ad">setLODOfPatch</a> (<a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> patchX, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> patchZ, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> LOD=0)=0 | ||
137 | <dl class="el"><dd class="mdescRight">Manually sets the LOD of a patch. <a href="#a41b7f1ee70511d648cc11217347160ad"></a><br/></dl></ul> | ||
138 | <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> | ||
139 | <div class="textblock"><p>A scene node for displaying terrain using the geo mip map algorithm. </p> | ||
140 | <p>The code for the TerrainSceneNode is based on the Terrain renderer by Soconne and the GeoMipMapSceneNode developed by Spintz. They made their code available for Irrlicht and allowed it to be distributed under this licence. I only modified some parts. A lot of thanks go to them.</p> | ||
141 | <p>This scene node is capable of very quickly loading terrains and updating the indices at runtime to enable viewing very large terrains. It uses a CLOD (Continuous Level of Detail) algorithm which updates the indices for each patch based on a LOD (Level of Detail) which is determined based on a patch's distance from the camera.</p> | ||
142 | <p>The Patch Size of the terrain must always be a size of ( 2^N+1, i.e. 8+1(9), 16+1(17), etc. ). The MaxLOD available is directly dependent on the patch size of the terrain. LOD 0 contains all of the indices to draw all the triangles at the max detail for a patch. As each LOD goes up by 1 the step taken, in generating indices increases by - 2^LOD, so for LOD 1, the step taken is 2, for LOD 2, the step taken is 4, LOD 3 - 8, etc. The step can be no larger than the size of the patch, so having a LOD of 8, with a patch size of 17, is asking the algoritm to generate indices every 2^8 ( 256 ) vertices, which is not possible with a patch size of 17. The maximum LOD for a patch size of 17 is 2^4 ( 16 ). So, with a MaxLOD of 5, you'll have LOD 0 ( full detail ), LOD 1 ( every 2 vertices ), LOD 2 ( every 4 vertices ), LOD 3 ( every 8 vertices ) and LOD 4 ( every 16 vertices ). </p> | ||
143 | |||
144 | <p>Definition at line <a class="el" href="_i_terrain_scene_node_8h_source.html#l00049">49</a> of file <a class="el" href="_i_terrain_scene_node_8h_source.html">ITerrainSceneNode.h</a>.</p> | ||
145 | </div><hr/><h2>Constructor & Destructor Documentation</h2> | ||
146 | <a class="anchor" id="a152a472837bbce22d1221086a47d8af5"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::ITerrainSceneNode" ref="a152a472837bbce22d1221086a47d8af5" args="(ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0.0f, 0.0f, 0.0f), const core::vector3df &rotation=core::vector3df(0.0f, 0.0f, 0.0f), const core::vector3df &scale=core::vector3df(1.0f, 1.0f, 1.0f))" --> | ||
147 | <div class="memitem"> | ||
148 | <div class="memproto"> | ||
149 | <table class="memname"> | ||
150 | <tr> | ||
151 | <td class="memname">irr::scene::ITerrainSceneNode::ITerrainSceneNode </td> | ||
152 | <td>(</td> | ||
153 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_node.html">ISceneNode</a> * </td> | ||
154 | <td class="paramname"><em>parent</em>, </td> | ||
155 | </tr> | ||
156 | <tr> | ||
157 | <td class="paramkey"></td> | ||
158 | <td></td> | ||
159 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html">ISceneManager</a> * </td> | ||
160 | <td class="paramname"><em>mgr</em>, </td> | ||
161 | </tr> | ||
162 | <tr> | ||
163 | <td class="paramkey"></td> | ||
164 | <td></td> | ||
165 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
166 | <td class="paramname"><em>id</em>, </td> | ||
167 | </tr> | ||
168 | <tr> | ||
169 | <td class="paramkey"></td> | ||
170 | <td></td> | ||
171 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
172 | <td class="paramname"><em>position</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.0f, 0.0f)</code>, </td> | ||
173 | </tr> | ||
174 | <tr> | ||
175 | <td class="paramkey"></td> | ||
176 | <td></td> | ||
177 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
178 | <td class="paramname"><em>rotation</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(0.0f, 0.0f, 0.0f)</code>, </td> | ||
179 | </tr> | ||
180 | <tr> | ||
181 | <td class="paramkey"></td> | ||
182 | <td></td> | ||
183 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a> & </td> | ||
184 | <td class="paramname"><em>scale</em> = <code><a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>(1.0f, 1.0f, 1.0f)</code> </td> | ||
185 | </tr> | ||
186 | <tr> | ||
187 | <td></td> | ||
188 | <td>)</td> | ||
189 | <td></td><td><code> [inline]</code></td> | ||
190 | </tr> | ||
191 | </table> | ||
192 | </div> | ||
193 | <div class="memdoc"> | ||
194 | |||
195 | <p>Constructor. </p> | ||
196 | |||
197 | <p>Definition at line <a class="el" href="_i_terrain_scene_node_8h_source.html#l00053">53</a> of file <a class="el" href="_i_terrain_scene_node_8h_source.html">ITerrainSceneNode.h</a>.</p> | ||
198 | |||
199 | </div> | ||
200 | </div> | ||
201 | <hr/><h2>Member Function Documentation</h2> | ||
202 | <a class="anchor" id="a02a14fe28f5a326fca819c36bee2e92e"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getBoundingBox" ref="a02a14fe28f5a326fca819c36bee2e92e" args="() const =0" --> | ||
203 | <div class="memitem"> | ||
204 | <div class="memproto"> | ||
205 | <table class="memname"> | ||
206 | <tr> | ||
207 | <td class="memname">virtual const <a class="el" href="classirr_1_1core_1_1aabbox3d.html">core::aabbox3d</a><<a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a>>& irr::scene::ITerrainSceneNode::getBoundingBox </td> | ||
208 | <td>(</td> | ||
209 | <td class="paramname"></td><td>)</td> | ||
210 | <td> const<code> [pure virtual]</code></td> | ||
211 | </tr> | ||
212 | </table> | ||
213 | </div> | ||
214 | <div class="memdoc"> | ||
215 | |||
216 | <p>Get the bounding box of the terrain. </p> | ||
217 | <dl class="return"><dt><b>Returns:</b></dt><dd>The bounding box of the entire terrain. </dd></dl> | ||
218 | |||
219 | <p>Implements <a class="el" href="classirr_1_1scene_1_1_i_scene_node.html#a223f718fc2f4944b5ad28c592f6cc8c6">irr::scene::ISceneNode</a>.</p> | ||
220 | |||
221 | </div> | ||
222 | </div> | ||
223 | <a class="anchor" id="a383501cc9c5cd30176f1f7ff6f8ab817"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getBoundingBox" ref="a383501cc9c5cd30176f1f7ff6f8ab817" args="(s32 patchX, s32 patchZ) const =0" --> | ||
224 | <div class="memitem"> | ||
225 | <div class="memproto"> | ||
226 | <table class="memname"> | ||
227 | <tr> | ||
228 | <td class="memname">virtual const <a class="el" href="classirr_1_1core_1_1aabbox3d.html">core::aabbox3d</a><<a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a>>& irr::scene::ITerrainSceneNode::getBoundingBox </td> | ||
229 | <td>(</td> | ||
230 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
231 | <td class="paramname"><em>patchX</em>, </td> | ||
232 | </tr> | ||
233 | <tr> | ||
234 | <td class="paramkey"></td> | ||
235 | <td></td> | ||
236 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
237 | <td class="paramname"><em>patchZ</em> </td> | ||
238 | </tr> | ||
239 | <tr> | ||
240 | <td></td> | ||
241 | <td>)</td> | ||
242 | <td></td><td> const<code> [pure virtual]</code></td> | ||
243 | </tr> | ||
244 | </table> | ||
245 | </div> | ||
246 | <div class="memdoc"> | ||
247 | |||
248 | <p>Get the bounding box of a patch. </p> | ||
249 | <dl class="return"><dt><b>Returns:</b></dt><dd>The bounding box of the chosen patch. </dd></dl> | ||
250 | |||
251 | </div> | ||
252 | </div> | ||
253 | <a class="anchor" id="a0d310851f0ebf1fce18d3a2c0f3dceab"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getCurrentLODOfPatches" ref="a0d310851f0ebf1fce18d3a2c0f3dceab" args="(core::array< s32 > &LODs) const =0" --> | ||
254 | <div class="memitem"> | ||
255 | <div class="memproto"> | ||
256 | <table class="memname"> | ||
257 | <tr> | ||
258 | <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::scene::ITerrainSceneNode::getCurrentLODOfPatches </td> | ||
259 | <td>(</td> | ||
260 | <td class="paramtype"><a class="el" href="classirr_1_1core_1_1array.html">core::array</a>< <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> > & </td> | ||
261 | <td class="paramname"><em>LODs</em></td><td>)</td> | ||
262 | <td> const<code> [pure virtual]</code></td> | ||
263 | </tr> | ||
264 | </table> | ||
265 | </div> | ||
266 | <div class="memdoc"> | ||
267 | |||
268 | <p>Populates an array with the CurrentLOD of each patch. </p> | ||
269 | <dl><dt><b>Parameters:</b></dt><dd> | ||
270 | <table class="params"> | ||
271 | <tr><td class="paramname">LODs</td><td>A reference to a core::array<s32> to hold the values </td></tr> | ||
272 | </table> | ||
273 | </dd> | ||
274 | </dl> | ||
275 | <dl class="return"><dt><b>Returns:</b></dt><dd>Number of elements in the array </dd></dl> | ||
276 | |||
277 | </div> | ||
278 | </div> | ||
279 | <a class="anchor" id="a9289839822ea77496af62f311f01c8bb"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getHeight" ref="a9289839822ea77496af62f311f01c8bb" args="(f32 x, f32 y) const =0" --> | ||
280 | <div class="memitem"> | ||
281 | <div class="memproto"> | ||
282 | <table class="memname"> | ||
283 | <tr> | ||
284 | <td class="memname">virtual <a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> irr::scene::ITerrainSceneNode::getHeight </td> | ||
285 | <td>(</td> | ||
286 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
287 | <td class="paramname"><em>x</em>, </td> | ||
288 | </tr> | ||
289 | <tr> | ||
290 | <td class="paramkey"></td> | ||
291 | <td></td> | ||
292 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
293 | <td class="paramname"><em>y</em> </td> | ||
294 | </tr> | ||
295 | <tr> | ||
296 | <td></td> | ||
297 | <td>)</td> | ||
298 | <td></td><td> const<code> [pure virtual]</code></td> | ||
299 | </tr> | ||
300 | </table> | ||
301 | </div> | ||
302 | <div class="memdoc"> | ||
303 | |||
304 | <p>Get height of a point of the terrain. </p> | ||
305 | |||
306 | </div> | ||
307 | </div> | ||
308 | <a class="anchor" id="a0f09a8260f325570ce58f0fc6993aff9"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getIndexCount" ref="a0f09a8260f325570ce58f0fc6993aff9" args="() const =0" --> | ||
309 | <div class="memitem"> | ||
310 | <div class="memproto"> | ||
311 | <table class="memname"> | ||
312 | <tr> | ||
313 | <td class="memname">virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> irr::scene::ITerrainSceneNode::getIndexCount </td> | ||
314 | <td>(</td> | ||
315 | <td class="paramname"></td><td>)</td> | ||
316 | <td> const<code> [pure virtual]</code></td> | ||
317 | </tr> | ||
318 | </table> | ||
319 | </div> | ||
320 | <div class="memdoc"> | ||
321 | |||
322 | <p>Get the number of indices currently in the meshbuffer. </p> | ||
323 | <dl class="return"><dt><b>Returns:</b></dt><dd>The index count. </dd></dl> | ||
324 | |||
325 | </div> | ||
326 | </div> | ||
327 | <a class="anchor" id="aec6d83c4882fad10a0b35ca5a7ec0935"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getIndicesForPatch" ref="aec6d83c4882fad10a0b35ca5a7ec0935" args="(core::array< u32 > &indices, s32 patchX, s32 patchZ, s32 LOD=0)=0" --> | ||
328 | <div class="memitem"> | ||
329 | <div class="memproto"> | ||
330 | <table class="memname"> | ||
331 | <tr> | ||
332 | <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::scene::ITerrainSceneNode::getIndicesForPatch </td> | ||
333 | <td>(</td> | ||
334 | <td class="paramtype"><a class="el" href="classirr_1_1core_1_1array.html">core::array</a>< <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> > & </td> | ||
335 | <td class="paramname"><em>indices</em>, </td> | ||
336 | </tr> | ||
337 | <tr> | ||
338 | <td class="paramkey"></td> | ||
339 | <td></td> | ||
340 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
341 | <td class="paramname"><em>patchX</em>, </td> | ||
342 | </tr> | ||
343 | <tr> | ||
344 | <td class="paramkey"></td> | ||
345 | <td></td> | ||
346 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
347 | <td class="paramname"><em>patchZ</em>, </td> | ||
348 | </tr> | ||
349 | <tr> | ||
350 | <td class="paramkey"></td> | ||
351 | <td></td> | ||
352 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
353 | <td class="paramname"><em>LOD</em> = <code>0</code> </td> | ||
354 | </tr> | ||
355 | <tr> | ||
356 | <td></td> | ||
357 | <td>)</td> | ||
358 | <td></td><td><code> [pure virtual]</code></td> | ||
359 | </tr> | ||
360 | </table> | ||
361 | </div> | ||
362 | <div class="memdoc"> | ||
363 | |||
364 | <p>Gets the indices for a specified patch at a specified Level of Detail. </p> | ||
365 | <dl><dt><b>Parameters:</b></dt><dd> | ||
366 | <table class="params"> | ||
367 | <tr><td class="paramname">indices</td><td>A reference to an array of u32 indices. </td></tr> | ||
368 | <tr><td class="paramname">patchX</td><td>Patch x coordinate. </td></tr> | ||
369 | <tr><td class="paramname">patchZ</td><td>Patch z coordinate. </td></tr> | ||
370 | <tr><td class="paramname">LOD</td><td>The level of detail to get for that patch. If -1, then get the CurrentLOD. If the CurrentLOD is set to -1, meaning it's not shown, then it will retrieve the triangles at the highest LOD (0). </td></tr> | ||
371 | </table> | ||
372 | </dd> | ||
373 | </dl> | ||
374 | <dl class="return"><dt><b>Returns:</b></dt><dd>Number of indices put into the buffer. </dd></dl> | ||
375 | |||
376 | </div> | ||
377 | </div> | ||
378 | <a class="anchor" id="a6b5f5fca80e77f392e23d83dc61ae88e"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getMesh" ref="a6b5f5fca80e77f392e23d83dc61ae88e" args="()=0" --> | ||
379 | <div class="memitem"> | ||
380 | <div class="memproto"> | ||
381 | <table class="memname"> | ||
382 | <tr> | ||
383 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a>* irr::scene::ITerrainSceneNode::getMesh </td> | ||
384 | <td>(</td> | ||
385 | <td class="paramname"></td><td>)</td> | ||
386 | <td><code> [pure virtual]</code></td> | ||
387 | </tr> | ||
388 | </table> | ||
389 | </div> | ||
390 | <div class="memdoc"> | ||
391 | |||
392 | <p>Get pointer to the mesh. </p> | ||
393 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the mesh. </dd></dl> | ||
394 | |||
395 | </div> | ||
396 | </div> | ||
397 | <a class="anchor" id="ae23af8c2066da39ad10714dcf95dd8f1"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getMeshBufferForLOD" ref="ae23af8c2066da39ad10714dcf95dd8f1" args="(IDynamicMeshBuffer &mb, s32 LOD=0) const =0" --> | ||
398 | <div class="memitem"> | ||
399 | <div class="memproto"> | ||
400 | <table class="memname"> | ||
401 | <tr> | ||
402 | <td class="memname">virtual void irr::scene::ITerrainSceneNode::getMeshBufferForLOD </td> | ||
403 | <td>(</td> | ||
404 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_dynamic_mesh_buffer.html">IDynamicMeshBuffer</a> & </td> | ||
405 | <td class="paramname"><em>mb</em>, </td> | ||
406 | </tr> | ||
407 | <tr> | ||
408 | <td class="paramkey"></td> | ||
409 | <td></td> | ||
410 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
411 | <td class="paramname"><em>LOD</em> = <code>0</code> </td> | ||
412 | </tr> | ||
413 | <tr> | ||
414 | <td></td> | ||
415 | <td>)</td> | ||
416 | <td></td><td> const<code> [pure virtual]</code></td> | ||
417 | </tr> | ||
418 | </table> | ||
419 | </div> | ||
420 | <div class="memdoc"> | ||
421 | |||
422 | <p>Gets the meshbuffer data based on a specified level of detail. </p> | ||
423 | <dl><dt><b>Parameters:</b></dt><dd> | ||
424 | <table class="params"> | ||
425 | <tr><td class="paramname">mb</td><td>A reference to an <a class="el" href="classirr_1_1scene_1_1_i_dynamic_mesh_buffer.html">IDynamicMeshBuffer</a> object </td></tr> | ||
426 | <tr><td class="paramname">LOD</td><td>The level of detail you want the indices from. </td></tr> | ||
427 | </table> | ||
428 | </dd> | ||
429 | </dl> | ||
430 | |||
431 | </div> | ||
432 | </div> | ||
433 | <a class="anchor" id="a3383e2d453c22c31091ad8652de2bb8a"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getRenderBuffer" ref="a3383e2d453c22c31091ad8652de2bb8a" args="()=0" --> | ||
434 | <div class="memitem"> | ||
435 | <div class="memproto"> | ||
436 | <table class="memname"> | ||
437 | <tr> | ||
438 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_mesh_buffer.html">IMeshBuffer</a>* irr::scene::ITerrainSceneNode::getRenderBuffer </td> | ||
439 | <td>(</td> | ||
440 | <td class="paramname"></td><td>)</td> | ||
441 | <td><code> [pure virtual]</code></td> | ||
442 | </tr> | ||
443 | </table> | ||
444 | </div> | ||
445 | <div class="memdoc"> | ||
446 | |||
447 | <p>Get pointer to the buffer used by the terrain (most users will not need this) </p> | ||
448 | |||
449 | </div> | ||
450 | </div> | ||
451 | <a class="anchor" id="a804241f60c853e74fcb8687cd887f1b7"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::getTerrainCenter" ref="a804241f60c853e74fcb8687cd887f1b7" args="() const =0" --> | ||
452 | <div class="memitem"> | ||
453 | <div class="memproto"> | ||
454 | <table class="memname"> | ||
455 | <tr> | ||
456 | <td class="memname">virtual const <a class="el" href="namespaceirr_1_1core.html#a06f169d08b5c429f5575acb7edbad811">core::vector3df</a>& irr::scene::ITerrainSceneNode::getTerrainCenter </td> | ||
457 | <td>(</td> | ||
458 | <td class="paramname"></td><td>)</td> | ||
459 | <td> const<code> [pure virtual]</code></td> | ||
460 | </tr> | ||
461 | </table> | ||
462 | </div> | ||
463 | <div class="memdoc"> | ||
464 | |||
465 | <p>Get center of terrain. </p> | ||
466 | |||
467 | </div> | ||
468 | </div> | ||
469 | <a class="anchor" id="ae5c598195e3faafb7cc58b71beb7ee1b"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::loadHeightMap" ref="ae5c598195e3faafb7cc58b71beb7ee1b" args="(io::IReadFile *file, video::SColor vertexColor=video::SColor(255, 255, 255, 255), s32 smoothFactor=0)=0" --> | ||
470 | <div class="memitem"> | ||
471 | <div class="memproto"> | ||
472 | <table class="memname"> | ||
473 | <tr> | ||
474 | <td class="memname">virtual bool irr::scene::ITerrainSceneNode::loadHeightMap </td> | ||
475 | <td>(</td> | ||
476 | <td class="paramtype"><a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> * </td> | ||
477 | <td class="paramname"><em>file</em>, </td> | ||
478 | </tr> | ||
479 | <tr> | ||
480 | <td class="paramkey"></td> | ||
481 | <td></td> | ||
482 | <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> </td> | ||
483 | <td class="paramname"><em>vertexColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255)</code>, </td> | ||
484 | </tr> | ||
485 | <tr> | ||
486 | <td class="paramkey"></td> | ||
487 | <td></td> | ||
488 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
489 | <td class="paramname"><em>smoothFactor</em> = <code>0</code> </td> | ||
490 | </tr> | ||
491 | <tr> | ||
492 | <td></td> | ||
493 | <td>)</td> | ||
494 | <td></td><td><code> [pure virtual]</code></td> | ||
495 | </tr> | ||
496 | </table> | ||
497 | </div> | ||
498 | <div class="memdoc"> | ||
499 | |||
500 | <p>Initializes the terrain data. Loads the vertices from the heightMapFile. </p> | ||
501 | <p>The file must contain a loadable image of the heightmap. The heightmap must be square. </p> | ||
502 | <dl><dt><b>Parameters:</b></dt><dd> | ||
503 | <table class="params"> | ||
504 | <tr><td class="paramname">file</td><td>The file to read the image from. File is not rewinded. </td></tr> | ||
505 | <tr><td class="paramname">vertexColor</td><td>Color of all vertices. </td></tr> | ||
506 | <tr><td class="paramname">smoothFactor</td><td>Number of smoothing passes. </td></tr> | ||
507 | </table> | ||
508 | </dd> | ||
509 | </dl> | ||
510 | |||
511 | </div> | ||
512 | </div> | ||
513 | <a class="anchor" id="a43d92272d8d860dda1c74b9fe795f062"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::loadHeightMapRAW" ref="a43d92272d8d860dda1c74b9fe795f062" args="(io::IReadFile *file, s32 bitsPerPixel=16, bool signedData=false, bool floatVals=false, s32 width=0, video::SColor vertexColor=video::SColor(255, 255, 255, 255), s32 smoothFactor=0)=0" --> | ||
514 | <div class="memitem"> | ||
515 | <div class="memproto"> | ||
516 | <table class="memname"> | ||
517 | <tr> | ||
518 | <td class="memname">virtual bool irr::scene::ITerrainSceneNode::loadHeightMapRAW </td> | ||
519 | <td>(</td> | ||
520 | <td class="paramtype"><a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> * </td> | ||
521 | <td class="paramname"><em>file</em>, </td> | ||
522 | </tr> | ||
523 | <tr> | ||
524 | <td class="paramkey"></td> | ||
525 | <td></td> | ||
526 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
527 | <td class="paramname"><em>bitsPerPixel</em> = <code>16</code>, </td> | ||
528 | </tr> | ||
529 | <tr> | ||
530 | <td class="paramkey"></td> | ||
531 | <td></td> | ||
532 | <td class="paramtype">bool </td> | ||
533 | <td class="paramname"><em>signedData</em> = <code>false</code>, </td> | ||
534 | </tr> | ||
535 | <tr> | ||
536 | <td class="paramkey"></td> | ||
537 | <td></td> | ||
538 | <td class="paramtype">bool </td> | ||
539 | <td class="paramname"><em>floatVals</em> = <code>false</code>, </td> | ||
540 | </tr> | ||
541 | <tr> | ||
542 | <td class="paramkey"></td> | ||
543 | <td></td> | ||
544 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
545 | <td class="paramname"><em>width</em> = <code>0</code>, </td> | ||
546 | </tr> | ||
547 | <tr> | ||
548 | <td class="paramkey"></td> | ||
549 | <td></td> | ||
550 | <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a> </td> | ||
551 | <td class="paramname"><em>vertexColor</em> = <code><a class="el" href="classirr_1_1video_1_1_s_color.html">video::SColor</a>(255, 255, 255, 255)</code>, </td> | ||
552 | </tr> | ||
553 | <tr> | ||
554 | <td class="paramkey"></td> | ||
555 | <td></td> | ||
556 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
557 | <td class="paramname"><em>smoothFactor</em> = <code>0</code> </td> | ||
558 | </tr> | ||
559 | <tr> | ||
560 | <td></td> | ||
561 | <td>)</td> | ||
562 | <td></td><td><code> [pure virtual]</code></td> | ||
563 | </tr> | ||
564 | </table> | ||
565 | </div> | ||
566 | <div class="memdoc"> | ||
567 | |||
568 | <p>Initializes the terrain data. Loads the vertices from the heightMapFile. </p> | ||
569 | <p>The data is interpreted as (signed) integers of the given bit size or floats (with 32bits, signed). Allowed bitsizes for integers are 8, 16, and 32. The heightmap must be square. </p> | ||
570 | <dl><dt><b>Parameters:</b></dt><dd> | ||
571 | <table class="params"> | ||
572 | <tr><td class="paramname">file</td><td>The file to read the RAW data from. File is not rewinded. </td></tr> | ||
573 | <tr><td class="paramname">bitsPerPixel</td><td>Size of data if integers used, for floats always use 32. </td></tr> | ||
574 | <tr><td class="paramname">signedData</td><td>Whether we use signed or unsigned ints, ignored for floats. </td></tr> | ||
575 | <tr><td class="paramname">floatVals</td><td>Whether the data is float or int. </td></tr> | ||
576 | <tr><td class="paramname">width</td><td>Width (and also Height, as it must be square) of the heightmap. Use 0 for autocalculating from the filesize. </td></tr> | ||
577 | <tr><td class="paramname">vertexColor</td><td>Color of all vertices. </td></tr> | ||
578 | <tr><td class="paramname">smoothFactor</td><td>Number of smoothing passes. </td></tr> | ||
579 | </table> | ||
580 | </dd> | ||
581 | </dl> | ||
582 | |||
583 | </div> | ||
584 | </div> | ||
585 | <a class="anchor" id="af98b54e1a59c014d60ea888eba6010d7"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::overrideLODDistance" ref="af98b54e1a59c014d60ea888eba6010d7" args="(s32 LOD, f64 newDistance)=0" --> | ||
586 | <div class="memitem"> | ||
587 | <div class="memproto"> | ||
588 | <table class="memname"> | ||
589 | <tr> | ||
590 | <td class="memname">virtual bool irr::scene::ITerrainSceneNode::overrideLODDistance </td> | ||
591 | <td>(</td> | ||
592 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
593 | <td class="paramname"><em>LOD</em>, </td> | ||
594 | </tr> | ||
595 | <tr> | ||
596 | <td class="paramkey"></td> | ||
597 | <td></td> | ||
598 | <td class="paramtype"><a class="el" href="namespaceirr.html#a1325b02603ad449f92c68fc640af9b28">f64</a> </td> | ||
599 | <td class="paramname"><em>newDistance</em> </td> | ||
600 | </tr> | ||
601 | <tr> | ||
602 | <td></td> | ||
603 | <td>)</td> | ||
604 | <td></td><td><code> [pure virtual]</code></td> | ||
605 | </tr> | ||
606 | </table> | ||
607 | </div> | ||
608 | <div class="memdoc"> | ||
609 | |||
610 | <p>Override the default generation of distance thresholds. </p> | ||
611 | <p>For determining the LOD a patch is rendered at. If any LOD is overridden, then the scene node will no longer apply scaling factors to these values. If you override these distances, and then apply a scale to the scene node, it is your responsibility to update the new distances to work best with your new terrain size. </p> | ||
612 | |||
613 | </div> | ||
614 | </div> | ||
615 | <a class="anchor" id="aacfb35db09be74e32c22a10c7e13bbcc"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::scaleTexture" ref="aacfb35db09be74e32c22a10c7e13bbcc" args="(f32 scale=1.0f, f32 scale2=0.0f)=0" --> | ||
616 | <div class="memitem"> | ||
617 | <div class="memproto"> | ||
618 | <table class="memname"> | ||
619 | <tr> | ||
620 | <td class="memname">virtual void irr::scene::ITerrainSceneNode::scaleTexture </td> | ||
621 | <td>(</td> | ||
622 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
623 | <td class="paramname"><em>scale</em> = <code>1.0f</code>, </td> | ||
624 | </tr> | ||
625 | <tr> | ||
626 | <td class="paramkey"></td> | ||
627 | <td></td> | ||
628 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
629 | <td class="paramname"><em>scale2</em> = <code>0.0f</code> </td> | ||
630 | </tr> | ||
631 | <tr> | ||
632 | <td></td> | ||
633 | <td>)</td> | ||
634 | <td></td><td><code> [pure virtual]</code></td> | ||
635 | </tr> | ||
636 | </table> | ||
637 | </div> | ||
638 | <div class="memdoc"> | ||
639 | |||
640 | <p>Scales the base texture, similar to makePlanarTextureMapping. </p> | ||
641 | <dl><dt><b>Parameters:</b></dt><dd> | ||
642 | <table class="params"> | ||
643 | <tr><td class="paramname">scale</td><td>The scaling amount. Values above 1.0 increase the number of time the texture is drawn on the terrain. Values below 0 will decrease the number of times the texture is drawn on the terrain. Using negative values will flip the texture, as well as still scaling it. </td></tr> | ||
644 | <tr><td class="paramname">scale2</td><td>If set to 0 (default value), this will set the second texture coordinate set to the same values as in the first set. If this is another value than zero, it will scale the second texture coordinate set by this value. </td></tr> | ||
645 | </table> | ||
646 | </dd> | ||
647 | </dl> | ||
648 | |||
649 | </div> | ||
650 | </div> | ||
651 | <a class="anchor" id="af2c07f67c1c5319de4a796ec57950ec3"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::setCameraMovementDelta" ref="af2c07f67c1c5319de4a796ec57950ec3" args="(f32 delta)=0" --> | ||
652 | <div class="memitem"> | ||
653 | <div class="memproto"> | ||
654 | <table class="memname"> | ||
655 | <tr> | ||
656 | <td class="memname">virtual void irr::scene::ITerrainSceneNode::setCameraMovementDelta </td> | ||
657 | <td>(</td> | ||
658 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
659 | <td class="paramname"><em>delta</em></td><td>)</td> | ||
660 | <td><code> [pure virtual]</code></td> | ||
661 | </tr> | ||
662 | </table> | ||
663 | </div> | ||
664 | <div class="memdoc"> | ||
665 | |||
666 | <p>Sets the movement camera threshold. </p> | ||
667 | <p>It is used to determine when to recalculate indices for the scene node. The default value is 10.0f. </p> | ||
668 | |||
669 | </div> | ||
670 | </div> | ||
671 | <a class="anchor" id="ad11f3e54c291487c49868728a5228b5e"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::setCameraRotationDelta" ref="ad11f3e54c291487c49868728a5228b5e" args="(f32 delta)=0" --> | ||
672 | <div class="memitem"> | ||
673 | <div class="memproto"> | ||
674 | <table class="memname"> | ||
675 | <tr> | ||
676 | <td class="memname">virtual void irr::scene::ITerrainSceneNode::setCameraRotationDelta </td> | ||
677 | <td>(</td> | ||
678 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0277be98d67dc26ff93b1a6a1d086b07">f32</a> </td> | ||
679 | <td class="paramname"><em>delta</em></td><td>)</td> | ||
680 | <td><code> [pure virtual]</code></td> | ||
681 | </tr> | ||
682 | </table> | ||
683 | </div> | ||
684 | <div class="memdoc"> | ||
685 | |||
686 | <p>Sets the rotation camera threshold. </p> | ||
687 | <p>It is used to determine when to recalculate indices for the scene node. The default value is 1.0f. </p> | ||
688 | |||
689 | </div> | ||
690 | </div> | ||
691 | <a class="anchor" id="a95cf695e54f1ef3376f7a3666c2dd834"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::setDynamicSelectorUpdate" ref="a95cf695e54f1ef3376f7a3666c2dd834" args="(bool bVal)=0" --> | ||
692 | <div class="memitem"> | ||
693 | <div class="memproto"> | ||
694 | <table class="memname"> | ||
695 | <tr> | ||
696 | <td class="memname">virtual void irr::scene::ITerrainSceneNode::setDynamicSelectorUpdate </td> | ||
697 | <td>(</td> | ||
698 | <td class="paramtype">bool </td> | ||
699 | <td class="paramname"><em>bVal</em></td><td>)</td> | ||
700 | <td><code> [pure virtual]</code></td> | ||
701 | </tr> | ||
702 | </table> | ||
703 | </div> | ||
704 | <div class="memdoc"> | ||
705 | |||
706 | <p>Sets whether or not the node should dynamically update its associated selector when the geomipmap data changes. </p> | ||
707 | <dl><dt><b>Parameters:</b></dt><dd> | ||
708 | <table class="params"> | ||
709 | <tr><td class="paramname">bVal,:</td><td>Boolean value representing whether or not to update selector dynamically. </td></tr> | ||
710 | </table> | ||
711 | </dd> | ||
712 | </dl> | ||
713 | |||
714 | </div> | ||
715 | </div> | ||
716 | <a class="anchor" id="a41b7f1ee70511d648cc11217347160ad"></a><!-- doxytag: member="irr::scene::ITerrainSceneNode::setLODOfPatch" ref="a41b7f1ee70511d648cc11217347160ad" args="(s32 patchX, s32 patchZ, s32 LOD=0)=0" --> | ||
717 | <div class="memitem"> | ||
718 | <div class="memproto"> | ||
719 | <table class="memname"> | ||
720 | <tr> | ||
721 | <td class="memname">virtual void irr::scene::ITerrainSceneNode::setLODOfPatch </td> | ||
722 | <td>(</td> | ||
723 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
724 | <td class="paramname"><em>patchX</em>, </td> | ||
725 | </tr> | ||
726 | <tr> | ||
727 | <td class="paramkey"></td> | ||
728 | <td></td> | ||
729 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
730 | <td class="paramname"><em>patchZ</em>, </td> | ||
731 | </tr> | ||
732 | <tr> | ||
733 | <td class="paramkey"></td> | ||
734 | <td></td> | ||
735 | <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> </td> | ||
736 | <td class="paramname"><em>LOD</em> = <code>0</code> </td> | ||
737 | </tr> | ||
738 | <tr> | ||
739 | <td></td> | ||
740 | <td>)</td> | ||
741 | <td></td><td><code> [pure virtual]</code></td> | ||
742 | </tr> | ||
743 | </table> | ||
744 | </div> | ||
745 | <div class="memdoc"> | ||
746 | |||
747 | <p>Manually sets the LOD of a patch. </p> | ||
748 | <dl><dt><b>Parameters:</b></dt><dd> | ||
749 | <table class="params"> | ||
750 | <tr><td class="paramname">patchX</td><td>Patch x coordinate. </td></tr> | ||
751 | <tr><td class="paramname">patchZ</td><td>Patch z coordinate. </td></tr> | ||
752 | <tr><td class="paramname">LOD</td><td>The level of detail to set the patch to. </td></tr> | ||
753 | </table> | ||
754 | </dd> | ||
755 | </dl> | ||
756 | |||
757 | </div> | ||
758 | </div> | ||
759 | <hr/>The documentation for this class was generated from the following file:<ul> | ||
760 | <li><a class="el" href="_i_terrain_scene_node_8h_source.html">ITerrainSceneNode.h</a></li> | ||
761 | </ul> | ||
762 | </div> | ||
763 | </div> | ||
764 | <div id="nav-path" class="navpath"> | ||
765 | <ul> | ||
766 | <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li> | ||
767 | <li class="navelem"><a class="el" href="namespaceirr_1_1scene.html">scene</a> </li> | ||
768 | <li class="navelem"><a class="el" href="classirr_1_1scene_1_1_i_terrain_scene_node.html">ITerrainSceneNode</a> </li> | ||
769 | <!-- window showing the filter options --> | ||
770 | <div id="MSearchSelectWindow" | ||
771 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
772 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
773 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
774 | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Defines</a></div> | ||
775 | |||
776 | <!-- iframe showing the search results (closed by default) --> | ||
777 | <div id="MSearchResultsWindow"> | ||
778 | <iframe src="javascript:void(0)" frameborder="0" | ||
779 | name="MSearchResults" id="MSearchResults"> | ||
780 | </iframe> | ||
781 | </div> | ||
782 | |||
783 | |||
784 | <li class="footer"> | ||
785 | <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht | ||
786 | Engine</a> Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Tue Nov 6 2012 11:06:07 for Irrlicht 3D Engine by | ||
787 | <a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li> | ||
788 | </ul> | ||
789 | </div> | ||
790 | |||
791 | |||
792 | </body> | ||
793 | </html> | ||