diff options
Diffstat (limited to 'libraries/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_mesh_cache.html')
-rw-r--r-- | libraries/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_mesh_cache.html | 694 |
1 files changed, 694 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_mesh_cache.html b/libraries/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_mesh_cache.html new file mode 100644 index 0000000..5305a8f --- /dev/null +++ b/libraries/irrlicht-1.8.1/doc/html/classirr_1_1scene_1_1_i_mesh_cache.html | |||
@@ -0,0 +1,694 @@ | |||
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::IMeshCache 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_mesh_cache.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::IMeshCache Class Reference</div> </div> | ||
91 | </div> | ||
92 | <div class="contents"> | ||
93 | <!-- doxytag: class="irr::scene::IMeshCache" --><!-- doxytag: inherits="irr::IReferenceCounted" --> | ||
94 | <p>The mesh cache stores already loaded meshes and provides an interface to them. | ||
95 | <a href="classirr_1_1scene_1_1_i_mesh_cache.html#details">More...</a></p> | ||
96 | |||
97 | <p><code>#include <<a class="el" href="_i_mesh_cache_8h_source.html">IMeshCache.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::IMeshCache:</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_mesh_cache.png" usemap="#irr::scene::IMeshCache_map" alt=""/> | ||
105 | <map id="irr::scene::IMeshCache_map" name="irr::scene::IMeshCache_map"> | ||
106 | <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,142,24"/> | ||
107 | </map> | ||
108 | </div></div> | ||
109 | |||
110 | <p><a href="classirr_1_1scene_1_1_i_mesh_cache-members.html">List of all members.</a></p> | ||
111 | <h2><a name="pub-methods"></a> | ||
112 | Public Member Functions</h2> | ||
113 | <ul> | ||
114 | <li>virtual <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a6d1bfbd0bda8a559d85cfd6735bc0667">~IMeshCache</a> () | ||
115 | <dl class="el"><dd class="mdescRight">Destructor. <a href="#a6d1bfbd0bda8a559d85cfd6735bc0667"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a2959812a3a393817b1db42761766c49b">addMesh</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &name, <a class="el" href="classirr_1_1scene_1_1_i_animated_mesh.html">IAnimatedMesh</a> *mesh)=0 | ||
116 | <dl class="el"><dd class="mdescRight">Adds a mesh to the internal list of loaded meshes. <a href="#a2959812a3a393817b1db42761766c49b"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#ad92d924e558c3a7504f9154ee29b1569">clear</a> ()=0 | ||
117 | <dl class="el"><dd class="mdescRight">Clears the whole mesh cache, removing all meshes. <a href="#ad92d924e558c3a7504f9154ee29b1569"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a9f3e20b8e0f66d59bc454a311d13bbee">clearUnusedMeshes</a> ()=0 | ||
118 | <dl class="el"><dd class="mdescRight">Clears all meshes that are held in the mesh cache but not used anywhere else. <a href="#a9f3e20b8e0f66d59bc454a311d13bbee"></a><br/></dl><li>_IRR_DEPRECATED_ <a class="el" href="classirr_1_1scene_1_1_i_animated_mesh.html">IAnimatedMesh</a> * <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#aa3946324e39cc074b1f73e01d57cae70">getMeshByFilename</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &filename) | ||
119 | <dl class="el"><dd class="mdescRight">Returns a mesh based on its name (often a filename). <a href="#aa3946324e39cc074b1f73e01d57cae70"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_animated_mesh.html">IAnimatedMesh</a> * <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a06e7755013445f9bc3d7339fbd009e31">getMeshByIndex</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> index)=0 | ||
120 | <dl class="el"><dd class="mdescRight">Returns a mesh based on its index number. <a href="#a06e7755013445f9bc3d7339fbd009e31"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1scene_1_1_i_animated_mesh.html">IAnimatedMesh</a> * <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a4c93e736bdca8c84d478afc82540d6bb">getMeshByName</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &name)=0 | ||
121 | <dl class="el"><dd class="mdescRight">Returns a mesh based on its name. <a href="#a4c93e736bdca8c84d478afc82540d6bb"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a9dc99e46309a6ef494ef7672c9b49853">getMeshCount</a> () const =0 | ||
122 | <dl class="el"><dd class="mdescRight">Returns amount of loaded meshes in the cache. <a href="#a9dc99e46309a6ef494ef7672c9b49853"></a><br/></dl><li>_IRR_DEPRECATED_ const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a981d182125565ef2d115774ea2f2de5e">getMeshFilename</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> index) const | ||
123 | <dl class="el"><dd class="mdescRight">Get the name of a loaded mesh, based on its index. (Name is often identical to the filename). <a href="#a981d182125565ef2d115774ea2f2de5e"></a><br/></dl><li>_IRR_DEPRECATED_ const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a194468ebfebdaa70fb57622479d5db11">getMeshFilename</a> (const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const mesh) const | ||
124 | <dl class="el"><dd class="mdescRight">Get the name of a loaded mesh, if there is any. (Name is often identical to the filename). <a href="#a194468ebfebdaa70fb57622479d5db11"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a2b3512bd3ff11d0b290fa5d2d580eb54">getMeshIndex</a> (const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const mesh) const =0 | ||
125 | <dl class="el"><dd class="mdescRight">Returns current index number of the mesh or -1 when not found. <a href="#a2b3512bd3ff11d0b290fa5d2d580eb54"></a><br/></dl><li>virtual const <a class="el" href="structirr_1_1io_1_1_s_named_path.html">io::SNamedPath</a> & <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#af06efb8fb21f6bba16e52d879b5d3ddd">getMeshName</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> index) const =0 | ||
126 | <dl class="el"><dd class="mdescRight">Get the name of a loaded mesh, based on its index. <a href="#af06efb8fb21f6bba16e52d879b5d3ddd"></a><br/></dl><li>virtual const <a class="el" href="structirr_1_1io_1_1_s_named_path.html">io::SNamedPath</a> & <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a7271fa1247b8c1198c196dc947b5ede0">getMeshName</a> (const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const mesh) const =0 | ||
127 | <dl class="el"><dd class="mdescRight">Get the name of the loaded mesh if there is any. <a href="#a7271fa1247b8c1198c196dc947b5ede0"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a42a13fab5b76ab7142a1d47dac80548b">isMeshLoaded</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &name)=0 | ||
128 | <dl class="el"><dd class="mdescRight">Check if a mesh was already loaded. <a href="#a42a13fab5b76ab7142a1d47dac80548b"></a><br/></dl><li>virtual void <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#aa82078b06fdcaa332b44a59e4027f921">removeMesh</a> (const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const mesh)=0 | ||
129 | <dl class="el"><dd class="mdescRight">Removes the mesh from the cache. <a href="#aa82078b06fdcaa332b44a59e4027f921"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a820743b703cdc4362a3dbe6664271bcb">renameMesh</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> index, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &name)=0 | ||
130 | <dl class="el"><dd class="mdescRight">Renames a loaded mesh. <a href="#a820743b703cdc4362a3dbe6664271bcb"></a><br/></dl><li>virtual bool <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a4533c81f4f3df112fa106d6fb1118f3b">renameMesh</a> (const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const mesh, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &name)=0 | ||
131 | <dl class="el"><dd class="mdescRight">Renames the loaded mesh. <a href="#a4533c81f4f3df112fa106d6fb1118f3b"></a><br/></dl><li>_IRR_DEPRECATED_ bool <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a5b87031dbfdb70a59c00a1b892b74c3d">setMeshFilename</a> (<a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> index, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &filename) | ||
132 | <dl class="el"><dd class="mdescRight">Renames a loaded mesh. <a href="#a5b87031dbfdb70a59c00a1b892b74c3d"></a><br/></dl><li>_IRR_DEPRECATED_ bool <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a9b7770a23859ddd045b3c22dfbecbcaf">setMeshFilename</a> (const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const mesh, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &filename) | ||
133 | <dl class="el"><dd class="mdescRight">Renames a loaded mesh. <a href="#a9b7770a23859ddd045b3c22dfbecbcaf"></a><br/></dl></ul> | ||
134 | <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> | ||
135 | <div class="textblock"><p>The mesh cache stores already loaded meshes and provides an interface to them. </p> | ||
136 | <p>You can access it using <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html#a45d89c816e33abe0e77eb063d7ce58a8" title="Get interface to the mesh cache which is shared beween all existing scene managers.">ISceneManager::getMeshCache()</a>. All existing scene managers will return a pointer to the same mesh cache, because it is shared between them. With this interface, it is possible to manually add new loaded meshes (if <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html#a63894c3f3d46cfc385116f1705935e03" title="Get pointer to an animateable mesh. Loads the file if not loaded already.">ISceneManager::getMesh()</a> is not sufficient), to remove them and to iterate through already loaded meshes. </p> | ||
137 | |||
138 | <p>Definition at line <a class="el" href="_i_mesh_cache_8h_source.html#l00027">27</a> of file <a class="el" href="_i_mesh_cache_8h_source.html">IMeshCache.h</a>.</p> | ||
139 | </div><hr/><h2>Constructor & Destructor Documentation</h2> | ||
140 | <a class="anchor" id="a6d1bfbd0bda8a559d85cfd6735bc0667"></a><!-- doxytag: member="irr::scene::IMeshCache::~IMeshCache" ref="a6d1bfbd0bda8a559d85cfd6735bc0667" args="()" --> | ||
141 | <div class="memitem"> | ||
142 | <div class="memproto"> | ||
143 | <table class="memname"> | ||
144 | <tr> | ||
145 | <td class="memname">virtual irr::scene::IMeshCache::~IMeshCache </td> | ||
146 | <td>(</td> | ||
147 | <td class="paramname"></td><td>)</td> | ||
148 | <td><code> [inline, virtual]</code></td> | ||
149 | </tr> | ||
150 | </table> | ||
151 | </div> | ||
152 | <div class="memdoc"> | ||
153 | |||
154 | <p>Destructor. </p> | ||
155 | |||
156 | <p>Definition at line <a class="el" href="_i_mesh_cache_8h_source.html#l00032">32</a> of file <a class="el" href="_i_mesh_cache_8h_source.html">IMeshCache.h</a>.</p> | ||
157 | |||
158 | </div> | ||
159 | </div> | ||
160 | <hr/><h2>Member Function Documentation</h2> | ||
161 | <a class="anchor" id="a2959812a3a393817b1db42761766c49b"></a><!-- doxytag: member="irr::scene::IMeshCache::addMesh" ref="a2959812a3a393817b1db42761766c49b" args="(const io::path &name, IAnimatedMesh *mesh)=0" --> | ||
162 | <div class="memitem"> | ||
163 | <div class="memproto"> | ||
164 | <table class="memname"> | ||
165 | <tr> | ||
166 | <td class="memname">virtual void irr::scene::IMeshCache::addMesh </td> | ||
167 | <td>(</td> | ||
168 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & </td> | ||
169 | <td class="paramname"><em>name</em>, </td> | ||
170 | </tr> | ||
171 | <tr> | ||
172 | <td class="paramkey"></td> | ||
173 | <td></td> | ||
174 | <td class="paramtype"><a class="el" href="classirr_1_1scene_1_1_i_animated_mesh.html">IAnimatedMesh</a> * </td> | ||
175 | <td class="paramname"><em>mesh</em> </td> | ||
176 | </tr> | ||
177 | <tr> | ||
178 | <td></td> | ||
179 | <td>)</td> | ||
180 | <td></td><td><code> [pure virtual]</code></td> | ||
181 | </tr> | ||
182 | </table> | ||
183 | </div> | ||
184 | <div class="memdoc"> | ||
185 | |||
186 | <p>Adds a mesh to the internal list of loaded meshes. </p> | ||
187 | <p>Usually, <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html#a63894c3f3d46cfc385116f1705935e03" title="Get pointer to an animateable mesh. Loads the file if not loaded already.">ISceneManager::getMesh()</a> is called to load a mesh from a file. That method searches the list of loaded meshes if a mesh has already been loaded and returns a pointer to if it is in that list and already in memory. Otherwise it loads the mesh. With <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a2959812a3a393817b1db42761766c49b" title="Adds a mesh to the internal list of loaded meshes.">IMeshCache::addMesh()</a>, it is possible to pretend that a mesh already has been loaded. This method can be used for example by mesh loaders who need to load more than one mesh with one call. They can add additional meshes with this method to the scene manager. The COLLADA loader for example uses this method. </p> | ||
188 | <dl><dt><b>Parameters:</b></dt><dd> | ||
189 | <table class="params"> | ||
190 | <tr><td class="paramname">name</td><td>Name of the mesh. When calling <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html#a63894c3f3d46cfc385116f1705935e03" title="Get pointer to an animateable mesh. Loads the file if not loaded already.">ISceneManager::getMesh()</a> with this name it will return the mesh set by this method. </td></tr> | ||
191 | <tr><td class="paramname">mesh</td><td>Pointer to a mesh which will now be referenced by this name. </td></tr> | ||
192 | </table> | ||
193 | </dd> | ||
194 | </dl> | ||
195 | |||
196 | </div> | ||
197 | </div> | ||
198 | <a class="anchor" id="ad92d924e558c3a7504f9154ee29b1569"></a><!-- doxytag: member="irr::scene::IMeshCache::clear" ref="ad92d924e558c3a7504f9154ee29b1569" args="()=0" --> | ||
199 | <div class="memitem"> | ||
200 | <div class="memproto"> | ||
201 | <table class="memname"> | ||
202 | <tr> | ||
203 | <td class="memname">virtual void irr::scene::IMeshCache::clear </td> | ||
204 | <td>(</td> | ||
205 | <td class="paramname"></td><td>)</td> | ||
206 | <td><code> [pure virtual]</code></td> | ||
207 | </tr> | ||
208 | </table> | ||
209 | </div> | ||
210 | <div class="memdoc"> | ||
211 | |||
212 | <p>Clears the whole mesh cache, removing all meshes. </p> | ||
213 | <p>All meshes will be reloaded completely when using <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html#a63894c3f3d46cfc385116f1705935e03" title="Get pointer to an animateable mesh. Loads the file if not loaded already.">ISceneManager::getMesh()</a> after calling this method. Warning: If you have pointers to meshes that were loaded with <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html#a63894c3f3d46cfc385116f1705935e03" title="Get pointer to an animateable mesh. Loads the file if not loaded already.">ISceneManager::getMesh()</a> and you did not grab them, then they may become invalid. </p> | ||
214 | |||
215 | </div> | ||
216 | </div> | ||
217 | <a class="anchor" id="a9f3e20b8e0f66d59bc454a311d13bbee"></a><!-- doxytag: member="irr::scene::IMeshCache::clearUnusedMeshes" ref="a9f3e20b8e0f66d59bc454a311d13bbee" args="()=0" --> | ||
218 | <div class="memitem"> | ||
219 | <div class="memproto"> | ||
220 | <table class="memname"> | ||
221 | <tr> | ||
222 | <td class="memname">virtual void irr::scene::IMeshCache::clearUnusedMeshes </td> | ||
223 | <td>(</td> | ||
224 | <td class="paramname"></td><td>)</td> | ||
225 | <td><code> [pure virtual]</code></td> | ||
226 | </tr> | ||
227 | </table> | ||
228 | </div> | ||
229 | <div class="memdoc"> | ||
230 | |||
231 | <p>Clears all meshes that are held in the mesh cache but not used anywhere else. </p> | ||
232 | <p>Warning: If you have pointers to meshes that were loaded with <a class="el" href="classirr_1_1scene_1_1_i_scene_manager.html#a63894c3f3d46cfc385116f1705935e03" title="Get pointer to an animateable mesh. Loads the file if not loaded already.">ISceneManager::getMesh()</a> and you did not grab them, then they may become invalid. </p> | ||
233 | |||
234 | </div> | ||
235 | </div> | ||
236 | <a class="anchor" id="aa3946324e39cc074b1f73e01d57cae70"></a><!-- doxytag: member="irr::scene::IMeshCache::getMeshByFilename" ref="aa3946324e39cc074b1f73e01d57cae70" args="(const io::path &filename)" --> | ||
237 | <div class="memitem"> | ||
238 | <div class="memproto"> | ||
239 | <table class="memname"> | ||
240 | <tr> | ||
241 | <td class="memname">_IRR_DEPRECATED_ <a class="el" href="classirr_1_1scene_1_1_i_animated_mesh.html">IAnimatedMesh</a>* irr::scene::IMeshCache::getMeshByFilename </td> | ||
242 | <td>(</td> | ||
243 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & </td> | ||
244 | <td class="paramname"><em>filename</em></td><td>)</td> | ||
245 | <td><code> [inline]</code></td> | ||
246 | </tr> | ||
247 | </table> | ||
248 | </div> | ||
249 | <div class="memdoc"> | ||
250 | |||
251 | <p>Returns a mesh based on its name (often a filename). </p> | ||
252 | <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000009">Deprecated:</a></b></dt><dd>Use <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a4c93e736bdca8c84d478afc82540d6bb" title="Returns a mesh based on its name.">getMeshByName()</a> instead. This method may be removed by Irrlicht 1.9 </dd></dl> | ||
253 | |||
254 | <p>Definition at line <a class="el" href="_i_mesh_cache_8h_source.html#l00084">84</a> of file <a class="el" href="_i_mesh_cache_8h_source.html">IMeshCache.h</a>.</p> | ||
255 | |||
256 | <p>References <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a4c93e736bdca8c84d478afc82540d6bb">getMeshByName()</a>.</p> | ||
257 | |||
258 | </div> | ||
259 | </div> | ||
260 | <a class="anchor" id="a06e7755013445f9bc3d7339fbd009e31"></a><!-- doxytag: member="irr::scene::IMeshCache::getMeshByIndex" ref="a06e7755013445f9bc3d7339fbd009e31" args="(u32 index)=0" --> | ||
261 | <div class="memitem"> | ||
262 | <div class="memproto"> | ||
263 | <table class="memname"> | ||
264 | <tr> | ||
265 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_animated_mesh.html">IAnimatedMesh</a>* irr::scene::IMeshCache::getMeshByIndex </td> | ||
266 | <td>(</td> | ||
267 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
268 | <td class="paramname"><em>index</em></td><td>)</td> | ||
269 | <td><code> [pure virtual]</code></td> | ||
270 | </tr> | ||
271 | </table> | ||
272 | </div> | ||
273 | <div class="memdoc"> | ||
274 | |||
275 | <p>Returns a mesh based on its index number. </p> | ||
276 | <dl><dt><b>Parameters:</b></dt><dd> | ||
277 | <table class="params"> | ||
278 | <tr><td class="paramname">index,:</td><td>Index of the mesh, number between 0 and <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a9dc99e46309a6ef494ef7672c9b49853" title="Returns amount of loaded meshes in the cache.">getMeshCount()</a>-1. Note that this number is only valid until a new mesh is loaded or removed. </td></tr> | ||
279 | </table> | ||
280 | </dd> | ||
281 | </dl> | ||
282 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the mesh or 0 if there is none with this number. </dd></dl> | ||
283 | |||
284 | </div> | ||
285 | </div> | ||
286 | <a class="anchor" id="a4c93e736bdca8c84d478afc82540d6bb"></a><!-- doxytag: member="irr::scene::IMeshCache::getMeshByName" ref="a4c93e736bdca8c84d478afc82540d6bb" args="(const io::path &name)=0" --> | ||
287 | <div class="memitem"> | ||
288 | <div class="memproto"> | ||
289 | <table class="memname"> | ||
290 | <tr> | ||
291 | <td class="memname">virtual <a class="el" href="classirr_1_1scene_1_1_i_animated_mesh.html">IAnimatedMesh</a>* irr::scene::IMeshCache::getMeshByName </td> | ||
292 | <td>(</td> | ||
293 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & </td> | ||
294 | <td class="paramname"><em>name</em></td><td>)</td> | ||
295 | <td><code> [pure virtual]</code></td> | ||
296 | </tr> | ||
297 | </table> | ||
298 | </div> | ||
299 | <div class="memdoc"> | ||
300 | |||
301 | <p>Returns a mesh based on its name. </p> | ||
302 | <dl><dt><b>Parameters:</b></dt><dd> | ||
303 | <table class="params"> | ||
304 | <tr><td class="paramname">name</td><td>Name of the mesh. Usually a filename. </td></tr> | ||
305 | </table> | ||
306 | </dd> | ||
307 | </dl> | ||
308 | <dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to the mesh or 0 if there is none with this number. </dd></dl> | ||
309 | |||
310 | <p>Referenced by <a class="el" href="_i_mesh_cache_8h_source.html#l00084">getMeshByFilename()</a>.</p> | ||
311 | |||
312 | </div> | ||
313 | </div> | ||
314 | <a class="anchor" id="a9dc99e46309a6ef494ef7672c9b49853"></a><!-- doxytag: member="irr::scene::IMeshCache::getMeshCount" ref="a9dc99e46309a6ef494ef7672c9b49853" args="() const =0" --> | ||
315 | <div class="memitem"> | ||
316 | <div class="memproto"> | ||
317 | <table class="memname"> | ||
318 | <tr> | ||
319 | <td class="memname">virtual <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> irr::scene::IMeshCache::getMeshCount </td> | ||
320 | <td>(</td> | ||
321 | <td class="paramname"></td><td>)</td> | ||
322 | <td> const<code> [pure virtual]</code></td> | ||
323 | </tr> | ||
324 | </table> | ||
325 | </div> | ||
326 | <div class="memdoc"> | ||
327 | |||
328 | <p>Returns amount of loaded meshes in the cache. </p> | ||
329 | <p>You can load new meshes into the cache using getMesh() and <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a2959812a3a393817b1db42761766c49b" title="Adds a mesh to the internal list of loaded meshes.">addMesh()</a>. If you ever need to access the internal mesh cache, you can do this using <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#aa82078b06fdcaa332b44a59e4027f921" title="Removes the mesh from the cache.">removeMesh()</a>, getMeshNumber(), <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a06e7755013445f9bc3d7339fbd009e31" title="Returns a mesh based on its index number.">getMeshByIndex()</a> and <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#af06efb8fb21f6bba16e52d879b5d3ddd" title="Get the name of a loaded mesh, based on its index.">getMeshName()</a>. </p> | ||
330 | <dl class="return"><dt><b>Returns:</b></dt><dd>Number of meshes in cache. </dd></dl> | ||
331 | |||
332 | </div> | ||
333 | </div> | ||
334 | <a class="anchor" id="a981d182125565ef2d115774ea2f2de5e"></a><!-- doxytag: member="irr::scene::IMeshCache::getMeshFilename" ref="a981d182125565ef2d115774ea2f2de5e" args="(u32 index) const " --> | ||
335 | <div class="memitem"> | ||
336 | <div class="memproto"> | ||
337 | <table class="memname"> | ||
338 | <tr> | ||
339 | <td class="memname">_IRR_DEPRECATED_ const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a>& irr::scene::IMeshCache::getMeshFilename </td> | ||
340 | <td>(</td> | ||
341 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
342 | <td class="paramname"><em>index</em></td><td>)</td> | ||
343 | <td> const<code> [inline]</code></td> | ||
344 | </tr> | ||
345 | </table> | ||
346 | </div> | ||
347 | <div class="memdoc"> | ||
348 | |||
349 | <p>Get the name of a loaded mesh, based on its index. (Name is often identical to the filename). </p> | ||
350 | <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000010">Deprecated:</a></b></dt><dd>Use <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#af06efb8fb21f6bba16e52d879b5d3ddd" title="Get the name of a loaded mesh, based on its index.">getMeshName()</a> instead. This method may be removed by Irrlicht 1.9 </dd></dl> | ||
351 | |||
352 | <p>Definition at line <a class="el" href="_i_mesh_cache_8h_source.html#l00092">92</a> of file <a class="el" href="_i_mesh_cache_8h_source.html">IMeshCache.h</a>.</p> | ||
353 | |||
354 | <p>References <a class="el" href="path_8h_source.html#l00054">irr::io::SNamedPath::getInternalName()</a>, and <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#af06efb8fb21f6bba16e52d879b5d3ddd">getMeshName()</a>.</p> | ||
355 | |||
356 | </div> | ||
357 | </div> | ||
358 | <a class="anchor" id="a194468ebfebdaa70fb57622479d5db11"></a><!-- doxytag: member="irr::scene::IMeshCache::getMeshFilename" ref="a194468ebfebdaa70fb57622479d5db11" args="(const IMesh *const mesh) const " --> | ||
359 | <div class="memitem"> | ||
360 | <div class="memproto"> | ||
361 | <table class="memname"> | ||
362 | <tr> | ||
363 | <td class="memname">_IRR_DEPRECATED_ const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a>& irr::scene::IMeshCache::getMeshFilename </td> | ||
364 | <td>(</td> | ||
365 | <td class="paramtype">const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const </td> | ||
366 | <td class="paramname"><em>mesh</em></td><td>)</td> | ||
367 | <td> const<code> [inline]</code></td> | ||
368 | </tr> | ||
369 | </table> | ||
370 | </div> | ||
371 | <div class="memdoc"> | ||
372 | |||
373 | <p>Get the name of a loaded mesh, if there is any. (Name is often identical to the filename). </p> | ||
374 | <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000011">Deprecated:</a></b></dt><dd>Use <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#af06efb8fb21f6bba16e52d879b5d3ddd" title="Get the name of a loaded mesh, based on its index.">getMeshName()</a> instead. This method may be removed by Irrlicht 1.9 </dd></dl> | ||
375 | |||
376 | <p>Definition at line <a class="el" href="_i_mesh_cache_8h_source.html#l00100">100</a> of file <a class="el" href="_i_mesh_cache_8h_source.html">IMeshCache.h</a>.</p> | ||
377 | |||
378 | <p>References <a class="el" href="path_8h_source.html#l00054">irr::io::SNamedPath::getInternalName()</a>, and <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#af06efb8fb21f6bba16e52d879b5d3ddd">getMeshName()</a>.</p> | ||
379 | |||
380 | </div> | ||
381 | </div> | ||
382 | <a class="anchor" id="a2b3512bd3ff11d0b290fa5d2d580eb54"></a><!-- doxytag: member="irr::scene::IMeshCache::getMeshIndex" ref="a2b3512bd3ff11d0b290fa5d2d580eb54" args="(const IMesh *const mesh) const =0" --> | ||
383 | <div class="memitem"> | ||
384 | <div class="memproto"> | ||
385 | <table class="memname"> | ||
386 | <tr> | ||
387 | <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::scene::IMeshCache::getMeshIndex </td> | ||
388 | <td>(</td> | ||
389 | <td class="paramtype">const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const </td> | ||
390 | <td class="paramname"><em>mesh</em></td><td>)</td> | ||
391 | <td> const<code> [pure virtual]</code></td> | ||
392 | </tr> | ||
393 | </table> | ||
394 | </div> | ||
395 | <div class="memdoc"> | ||
396 | |||
397 | <p>Returns current index number of the mesh or -1 when not found. </p> | ||
398 | <dl><dt><b>Parameters:</b></dt><dd> | ||
399 | <table class="params"> | ||
400 | <tr><td class="paramname">mesh</td><td>Pointer to the mesh to search for. </td></tr> | ||
401 | </table> | ||
402 | </dd> | ||
403 | </dl> | ||
404 | <dl class="return"><dt><b>Returns:</b></dt><dd>Index of the mesh in the cache, or -1 if not found. </dd></dl> | ||
405 | |||
406 | </div> | ||
407 | </div> | ||
408 | <a class="anchor" id="af06efb8fb21f6bba16e52d879b5d3ddd"></a><!-- doxytag: member="irr::scene::IMeshCache::getMeshName" ref="af06efb8fb21f6bba16e52d879b5d3ddd" args="(u32 index) const =0" --> | ||
409 | <div class="memitem"> | ||
410 | <div class="memproto"> | ||
411 | <table class="memname"> | ||
412 | <tr> | ||
413 | <td class="memname">virtual const <a class="el" href="structirr_1_1io_1_1_s_named_path.html">io::SNamedPath</a>& irr::scene::IMeshCache::getMeshName </td> | ||
414 | <td>(</td> | ||
415 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
416 | <td class="paramname"><em>index</em></td><td>)</td> | ||
417 | <td> const<code> [pure virtual]</code></td> | ||
418 | </tr> | ||
419 | </table> | ||
420 | </div> | ||
421 | <div class="memdoc"> | ||
422 | |||
423 | <p>Get the name of a loaded mesh, based on its index. </p> | ||
424 | <dl><dt><b>Parameters:</b></dt><dd> | ||
425 | <table class="params"> | ||
426 | <tr><td class="paramname">index,:</td><td>Index of the mesh, number between 0 and <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a9dc99e46309a6ef494ef7672c9b49853" title="Returns amount of loaded meshes in the cache.">getMeshCount()</a>-1. </td></tr> | ||
427 | </table> | ||
428 | </dd> | ||
429 | </dl> | ||
430 | <dl class="return"><dt><b>Returns:</b></dt><dd>The name if mesh was found and has a name, else the path is empty. </dd></dl> | ||
431 | |||
432 | <p>Referenced by <a class="el" href="_i_mesh_cache_8h_source.html#l00092">getMeshFilename()</a>.</p> | ||
433 | |||
434 | </div> | ||
435 | </div> | ||
436 | <a class="anchor" id="a7271fa1247b8c1198c196dc947b5ede0"></a><!-- doxytag: member="irr::scene::IMeshCache::getMeshName" ref="a7271fa1247b8c1198c196dc947b5ede0" args="(const IMesh *const mesh) const =0" --> | ||
437 | <div class="memitem"> | ||
438 | <div class="memproto"> | ||
439 | <table class="memname"> | ||
440 | <tr> | ||
441 | <td class="memname">virtual const <a class="el" href="structirr_1_1io_1_1_s_named_path.html">io::SNamedPath</a>& irr::scene::IMeshCache::getMeshName </td> | ||
442 | <td>(</td> | ||
443 | <td class="paramtype">const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const </td> | ||
444 | <td class="paramname"><em>mesh</em></td><td>)</td> | ||
445 | <td> const<code> [pure virtual]</code></td> | ||
446 | </tr> | ||
447 | </table> | ||
448 | </div> | ||
449 | <div class="memdoc"> | ||
450 | |||
451 | <p>Get the name of the loaded mesh if there is any. </p> | ||
452 | <dl><dt><b>Parameters:</b></dt><dd> | ||
453 | <table class="params"> | ||
454 | <tr><td class="paramname">mesh</td><td>Pointer to mesh to query. </td></tr> | ||
455 | </table> | ||
456 | </dd> | ||
457 | </dl> | ||
458 | <dl class="return"><dt><b>Returns:</b></dt><dd>The name if mesh was found and has a name, else the path is empty. </dd></dl> | ||
459 | |||
460 | </div> | ||
461 | </div> | ||
462 | <a class="anchor" id="a42a13fab5b76ab7142a1d47dac80548b"></a><!-- doxytag: member="irr::scene::IMeshCache::isMeshLoaded" ref="a42a13fab5b76ab7142a1d47dac80548b" args="(const io::path &name)=0" --> | ||
463 | <div class="memitem"> | ||
464 | <div class="memproto"> | ||
465 | <table class="memname"> | ||
466 | <tr> | ||
467 | <td class="memname">virtual bool irr::scene::IMeshCache::isMeshLoaded </td> | ||
468 | <td>(</td> | ||
469 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & </td> | ||
470 | <td class="paramname"><em>name</em></td><td>)</td> | ||
471 | <td><code> [pure virtual]</code></td> | ||
472 | </tr> | ||
473 | </table> | ||
474 | </div> | ||
475 | <div class="memdoc"> | ||
476 | |||
477 | <p>Check if a mesh was already loaded. </p> | ||
478 | <dl><dt><b>Parameters:</b></dt><dd> | ||
479 | <table class="params"> | ||
480 | <tr><td class="paramname">name</td><td>Name of the mesh. Usually a filename. </td></tr> | ||
481 | </table> | ||
482 | </dd> | ||
483 | </dl> | ||
484 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if the mesh has been loaded, else false. </dd></dl> | ||
485 | |||
486 | </div> | ||
487 | </div> | ||
488 | <a class="anchor" id="aa82078b06fdcaa332b44a59e4027f921"></a><!-- doxytag: member="irr::scene::IMeshCache::removeMesh" ref="aa82078b06fdcaa332b44a59e4027f921" args="(const IMesh *const mesh)=0" --> | ||
489 | <div class="memitem"> | ||
490 | <div class="memproto"> | ||
491 | <table class="memname"> | ||
492 | <tr> | ||
493 | <td class="memname">virtual void irr::scene::IMeshCache::removeMesh </td> | ||
494 | <td>(</td> | ||
495 | <td class="paramtype">const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const </td> | ||
496 | <td class="paramname"><em>mesh</em></td><td>)</td> | ||
497 | <td><code> [pure virtual]</code></td> | ||
498 | </tr> | ||
499 | </table> | ||
500 | </div> | ||
501 | <div class="memdoc"> | ||
502 | |||
503 | <p>Removes the mesh from the cache. </p> | ||
504 | <p>After loading a mesh with getMesh(), the mesh can be removed from the cache using this method, freeing a lot of memory. </p> | ||
505 | <dl><dt><b>Parameters:</b></dt><dd> | ||
506 | <table class="params"> | ||
507 | <tr><td class="paramname">mesh</td><td>Pointer to the mesh which shall be removed. </td></tr> | ||
508 | </table> | ||
509 | </dd> | ||
510 | </dl> | ||
511 | |||
512 | </div> | ||
513 | </div> | ||
514 | <a class="anchor" id="a820743b703cdc4362a3dbe6664271bcb"></a><!-- doxytag: member="irr::scene::IMeshCache::renameMesh" ref="a820743b703cdc4362a3dbe6664271bcb" args="(u32 index, const io::path &name)=0" --> | ||
515 | <div class="memitem"> | ||
516 | <div class="memproto"> | ||
517 | <table class="memname"> | ||
518 | <tr> | ||
519 | <td class="memname">virtual bool irr::scene::IMeshCache::renameMesh </td> | ||
520 | <td>(</td> | ||
521 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
522 | <td class="paramname"><em>index</em>, </td> | ||
523 | </tr> | ||
524 | <tr> | ||
525 | <td class="paramkey"></td> | ||
526 | <td></td> | ||
527 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & </td> | ||
528 | <td class="paramname"><em>name</em> </td> | ||
529 | </tr> | ||
530 | <tr> | ||
531 | <td></td> | ||
532 | <td>)</td> | ||
533 | <td></td><td><code> [pure virtual]</code></td> | ||
534 | </tr> | ||
535 | </table> | ||
536 | </div> | ||
537 | <div class="memdoc"> | ||
538 | |||
539 | <p>Renames a loaded mesh. </p> | ||
540 | <p>Note that renaming meshes might change the ordering of the meshes, and so the index of the meshes as returned by <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a2b3512bd3ff11d0b290fa5d2d580eb54" title="Returns current index number of the mesh or -1 when not found.">getMeshIndex()</a> or taken by some methods will change. </p> | ||
541 | <dl><dt><b>Parameters:</b></dt><dd> | ||
542 | <table class="params"> | ||
543 | <tr><td class="paramname">index</td><td>The index of the mesh in the cache. </td></tr> | ||
544 | <tr><td class="paramname">name</td><td>New name for the mesh. </td></tr> | ||
545 | </table> | ||
546 | </dd> | ||
547 | </dl> | ||
548 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if mesh was renamed. </dd></dl> | ||
549 | |||
550 | <p>Referenced by <a class="el" href="_i_mesh_cache_8h_source.html#l00108">setMeshFilename()</a>.</p> | ||
551 | |||
552 | </div> | ||
553 | </div> | ||
554 | <a class="anchor" id="a4533c81f4f3df112fa106d6fb1118f3b"></a><!-- doxytag: member="irr::scene::IMeshCache::renameMesh" ref="a4533c81f4f3df112fa106d6fb1118f3b" args="(const IMesh *const mesh, const io::path &name)=0" --> | ||
555 | <div class="memitem"> | ||
556 | <div class="memproto"> | ||
557 | <table class="memname"> | ||
558 | <tr> | ||
559 | <td class="memname">virtual bool irr::scene::IMeshCache::renameMesh </td> | ||
560 | <td>(</td> | ||
561 | <td class="paramtype">const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const </td> | ||
562 | <td class="paramname"><em>mesh</em>, </td> | ||
563 | </tr> | ||
564 | <tr> | ||
565 | <td class="paramkey"></td> | ||
566 | <td></td> | ||
567 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & </td> | ||
568 | <td class="paramname"><em>name</em> </td> | ||
569 | </tr> | ||
570 | <tr> | ||
571 | <td></td> | ||
572 | <td>)</td> | ||
573 | <td></td><td><code> [pure virtual]</code></td> | ||
574 | </tr> | ||
575 | </table> | ||
576 | </div> | ||
577 | <div class="memdoc"> | ||
578 | |||
579 | <p>Renames the loaded mesh. </p> | ||
580 | <p>Note that renaming meshes might change the ordering of the meshes, and so the index of the meshes as returned by <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a2b3512bd3ff11d0b290fa5d2d580eb54" title="Returns current index number of the mesh or -1 when not found.">getMeshIndex()</a> or taken by some methods will change. </p> | ||
581 | <dl><dt><b>Parameters:</b></dt><dd> | ||
582 | <table class="params"> | ||
583 | <tr><td class="paramname">mesh</td><td>Mesh to be renamed. </td></tr> | ||
584 | <tr><td class="paramname">name</td><td>New name for the mesh. </td></tr> | ||
585 | </table> | ||
586 | </dd> | ||
587 | </dl> | ||
588 | <dl class="return"><dt><b>Returns:</b></dt><dd>True if mesh was renamed. </dd></dl> | ||
589 | |||
590 | </div> | ||
591 | </div> | ||
592 | <a class="anchor" id="a5b87031dbfdb70a59c00a1b892b74c3d"></a><!-- doxytag: member="irr::scene::IMeshCache::setMeshFilename" ref="a5b87031dbfdb70a59c00a1b892b74c3d" args="(u32 index, const io::path &filename)" --> | ||
593 | <div class="memitem"> | ||
594 | <div class="memproto"> | ||
595 | <table class="memname"> | ||
596 | <tr> | ||
597 | <td class="memname">_IRR_DEPRECATED_ bool irr::scene::IMeshCache::setMeshFilename </td> | ||
598 | <td>(</td> | ||
599 | <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> </td> | ||
600 | <td class="paramname"><em>index</em>, </td> | ||
601 | </tr> | ||
602 | <tr> | ||
603 | <td class="paramkey"></td> | ||
604 | <td></td> | ||
605 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & </td> | ||
606 | <td class="paramname"><em>filename</em> </td> | ||
607 | </tr> | ||
608 | <tr> | ||
609 | <td></td> | ||
610 | <td>)</td> | ||
611 | <td></td><td><code> [inline]</code></td> | ||
612 | </tr> | ||
613 | </table> | ||
614 | </div> | ||
615 | <div class="memdoc"> | ||
616 | |||
617 | <p>Renames a loaded mesh. </p> | ||
618 | <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000012">Deprecated:</a></b></dt><dd>Use <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a820743b703cdc4362a3dbe6664271bcb" title="Renames a loaded mesh.">renameMesh()</a> instead. This method may be removed by Irrlicht 1.9 </dd></dl> | ||
619 | |||
620 | <p>Definition at line <a class="el" href="_i_mesh_cache_8h_source.html#l00108">108</a> of file <a class="el" href="_i_mesh_cache_8h_source.html">IMeshCache.h</a>.</p> | ||
621 | |||
622 | <p>References <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a820743b703cdc4362a3dbe6664271bcb">renameMesh()</a>.</p> | ||
623 | |||
624 | </div> | ||
625 | </div> | ||
626 | <a class="anchor" id="a9b7770a23859ddd045b3c22dfbecbcaf"></a><!-- doxytag: member="irr::scene::IMeshCache::setMeshFilename" ref="a9b7770a23859ddd045b3c22dfbecbcaf" args="(const IMesh *const mesh, const io::path &filename)" --> | ||
627 | <div class="memitem"> | ||
628 | <div class="memproto"> | ||
629 | <table class="memname"> | ||
630 | <tr> | ||
631 | <td class="memname">_IRR_DEPRECATED_ bool irr::scene::IMeshCache::setMeshFilename </td> | ||
632 | <td>(</td> | ||
633 | <td class="paramtype">const <a class="el" href="classirr_1_1scene_1_1_i_mesh.html">IMesh</a> *const </td> | ||
634 | <td class="paramname"><em>mesh</em>, </td> | ||
635 | </tr> | ||
636 | <tr> | ||
637 | <td class="paramkey"></td> | ||
638 | <td></td> | ||
639 | <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> & </td> | ||
640 | <td class="paramname"><em>filename</em> </td> | ||
641 | </tr> | ||
642 | <tr> | ||
643 | <td></td> | ||
644 | <td>)</td> | ||
645 | <td></td><td><code> [inline]</code></td> | ||
646 | </tr> | ||
647 | </table> | ||
648 | </div> | ||
649 | <div class="memdoc"> | ||
650 | |||
651 | <p>Renames a loaded mesh. </p> | ||
652 | <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000013">Deprecated:</a></b></dt><dd>Use <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a820743b703cdc4362a3dbe6664271bcb" title="Renames a loaded mesh.">renameMesh()</a> instead. This method may be removed by Irrlicht 1.9 </dd></dl> | ||
653 | |||
654 | <p>Definition at line <a class="el" href="_i_mesh_cache_8h_source.html#l00116">116</a> of file <a class="el" href="_i_mesh_cache_8h_source.html">IMeshCache.h</a>.</p> | ||
655 | |||
656 | <p>References <a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html#a820743b703cdc4362a3dbe6664271bcb">renameMesh()</a>.</p> | ||
657 | |||
658 | </div> | ||
659 | </div> | ||
660 | <hr/>The documentation for this class was generated from the following file:<ul> | ||
661 | <li><a class="el" href="_i_mesh_cache_8h_source.html">IMeshCache.h</a></li> | ||
662 | </ul> | ||
663 | </div> | ||
664 | </div> | ||
665 | <div id="nav-path" class="navpath"> | ||
666 | <ul> | ||
667 | <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li> | ||
668 | <li class="navelem"><a class="el" href="namespaceirr_1_1scene.html">scene</a> </li> | ||
669 | <li class="navelem"><a class="el" href="classirr_1_1scene_1_1_i_mesh_cache.html">IMeshCache</a> </li> | ||
670 | <!-- window showing the filter options --> | ||
671 | <div id="MSearchSelectWindow" | ||
672 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
673 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
674 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
675 | <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> | ||
676 | |||
677 | <!-- iframe showing the search results (closed by default) --> | ||
678 | <div id="MSearchResultsWindow"> | ||
679 | <iframe src="javascript:void(0)" frameborder="0" | ||
680 | name="MSearchResults" id="MSearchResults"> | ||
681 | </iframe> | ||
682 | </div> | ||
683 | |||
684 | |||
685 | <li class="footer"> | ||
686 | <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht | ||
687 | Engine</a> Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:46 for Irrlicht 3D Engine by | ||
688 | <a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li> | ||
689 | </ul> | ||
690 | </div> | ||
691 | |||
692 | |||
693 | </body> | ||
694 | </html> | ||