source: OGRE/trunk/ogrenew/Docs/api/html/OgreMesh_8h-source.html @ 692

Revision 692, 39.0 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1<html>
2<head>
3<title>OgreMesh.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4<link type="text/css" rel="stylesheet" href="style.css">
5</head>
6
7<body>
8<!-- Generated by Doxygen 1.3.6 -->
9<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
10<h1>OgreMesh.h</h1><a href="OgreMesh_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
1100002 <span class="comment">-----------------------------------------------------------------------------</span>
1200003 <span class="comment">This source file is part of OGRE</span>
1300004 <span class="comment">    (Object-oriented Graphics Rendering Engine)</span>
1400005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span>
1500006 <span class="comment"></span>
1600007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span>
1700008 <span class="comment">Also see acknowledgements in Readme.html</span>
1800009 <span class="comment"></span>
1900010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span>
2000011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span>
2100012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span>
2200013 <span class="comment">version.</span>
2300014 <span class="comment"></span>
2400015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span>
2500016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
2600017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span>
2700018 <span class="comment"></span>
2800019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span>
2900020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span>
3000021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span>
3100022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span>
3200023 <span class="comment">-----------------------------------------------------------------------------</span>
3300024 <span class="comment">*/</span>
3400025 <span class="preprocessor">#ifndef __Mesh_H__</span>
3500026 <span class="preprocessor"></span><span class="preprocessor">#define __Mesh_H__</span>
3600027 <span class="preprocessor"></span>
3700028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span>
3800029
3900030 <span class="preprocessor">#include "<a class="code" href="OgreResource_8h.html">OgreResource.h</a>"</span>
4000031 <span class="preprocessor">#include "<a class="code" href="OgreVertexIndexData_8h.html">OgreVertexIndexData.h</a>"</span>
4100032 <span class="preprocessor">#include "<a class="code" href="OgreAxisAlignedBox_8h.html">OgreAxisAlignedBox.h</a>"</span>
4200033 <span class="preprocessor">#include "<a class="code" href="OgreVertexBoneAssignment_8h.html">OgreVertexBoneAssignment.h</a>"</span>
4300034 <span class="preprocessor">#include "<a class="code" href="OgreIteratorWrappers_8h.html">OgreIteratorWrappers.h</a>"</span>
4400035 <span class="preprocessor">#include "<a class="code" href="OgreProgressiveMesh_8h.html">OgreProgressiveMesh.h</a>"</span>
4500036 <span class="preprocessor">#include "<a class="code" href="OgreHardwareVertexBuffer_8h.html">OgreHardwareVertexBuffer.h</a>"</span>
4600037 <span class="preprocessor">#include "<a class="code" href="OgreSkeleton_8h.html">OgreSkeleton.h</a>"</span>
4700038 <span class="preprocessor">#include "<a class="code" href="OgreAnimationTrack_8h.html">OgreAnimationTrack.h</a>"</span>
4800039 <span class="preprocessor">#include "<a class="code" href="OgrePose_8h.html">OgrePose.h</a>"</span>
4900040
5000041
5100042 <span class="keyword">namespace </span>Ogre {
5200043
5300044
5400079     <span class="keyword">struct </span>MeshLodUsage;
5500080
56<a name="l00081"></a><a class="code" href="classOgre_1_1Mesh.html">00081</a>     <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> Mesh: <span class="keyword">public</span> <a class="code" href="classOgre_1_1Resource.html">Resource</a>
5700082     {
58<a name="l00083"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1Meshn0">00083</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>;
59<a name="l00084"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1Meshn1">00084</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1MeshSerializerImpl.html">MeshSerializerImpl</a>;
60<a name="l00085"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1Meshn2">00085</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1MeshSerializerImpl__v1__2.html">MeshSerializerImpl_v1_2</a>;
61<a name="l00086"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1Meshn3">00086</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1MeshSerializerImpl__v1__1.html">MeshSerializerImpl_v1_1</a>;
6200087
6300088     <span class="keyword">public</span>:
64<a name="l00089"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw0">00089</a>         <span class="keyword">typedef</span> std::vector&lt;Real&gt; LodDistanceList;
65<a name="l00091"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">00091</a>         <span class="keyword">typedef</span> std::multimap&lt;size_t, VertexBoneAssignment&gt; <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">VertexBoneAssignmentList</a>;
66<a name="l00092"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw2">00092</a>         <span class="keyword">typedef</span> <a class="code" href="classOgre_1_1MapIterator.html">MapIterator&lt;VertexBoneAssignmentList&gt;</a> <a class="code" href="classOgre_1_1MapIterator.html">BoneAssignmentIterator</a>;
67<a name="l00093"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw3">00093</a>         <span class="keyword">typedef</span> std::vector&lt;SubMesh*&gt; <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw3">SubMeshList</a>;
68<a name="l00094"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">00094</a>         <span class="keyword">typedef</span> std::vector&lt;unsigned short&gt; <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">IndexMap</a>;
6900095
7000096     <span class="keyword">protected</span>:
71<a name="l00103"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp2">00103</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw3">SubMeshList</a> mSubMeshList;
7200104     
7300106         <span class="keywordtype">void</span> organiseTangentsBuffer(<a class="code" href="classOgre_1_1VertexData.html">VertexData</a> *vertexData, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> destCoordSet);
7400107
7500108     <span class="keyword">public</span>:
76<a name="l00112"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw5">00112</a>         <span class="keyword">typedef</span> HashMap&lt;String, ushort&gt; <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw5">SubMeshNameMap</a> ;
7700113
7800114         
7900115     <span class="keyword">protected</span>:
80<a name="l00116"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp3">00116</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw5">SubMeshNameMap</a> mSubMeshNameMap ;
8100117
82<a name="l00119"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp4">00119</a>         <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> mAABB;
83<a name="l00121"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp5">00121</a>         <a class="code" href="namespaceOgre.html#a465">Real</a> mBoundRadius;
8400122
85<a name="l00124"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp6">00124</a>         <a class="code" href="namespaceOgre.html#a471">String</a> mSkeletonName;
86<a name="l00125"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp7">00125</a>         <a class="code" href="classOgre_1_1SkeletonPtr.html">SkeletonPtr</a> mSkeleton;
8700126
8800127       
89<a name="l00128"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp8">00128</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">VertexBoneAssignmentList</a> mBoneAssignments;
9000129
91<a name="l00131"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp9">00131</a>         <span class="keywordtype">bool</span> mBoneAssignmentsOutOfDate;
9200132
9300134         <span class="keywordtype">void</span> buildIndexMap(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">VertexBoneAssignmentList</a>&amp; boneAssignments,
9400135             <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">IndexMap</a>&amp; boneIndexToBlendIndexMap, <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">IndexMap</a>&amp; blendIndexToBoneIndexMap);
9500137         <span class="keywordtype">void</span> compileBoneAssignments(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">VertexBoneAssignmentList</a>&amp; boneAssignments,
9600138             <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> numBlendWeightsPerVertex,
9700139             <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">IndexMap</a>&amp; blendIndexToBoneIndexMap,
9800140             <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetVertexData);
9900141
100<a name="l00142"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp10">00142</a>         <span class="keywordtype">bool</span> mIsLodManual;
101<a name="l00143"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp11">00143</a>         <a class="code" href="namespaceOgre.html#a467">ushort</a> mNumLods;
102<a name="l00144"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshx0">00144</a>         <span class="keyword">typedef</span> std::vector&lt;MeshLodUsage&gt; <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshx0">MeshLodUsageList</a>;
103<a name="l00145"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp12">00145</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshx0">MeshLodUsageList</a> mMeshLodUsageList;
10400146
105<a name="l00147"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp13">00147</a>         HardwareBuffer::Usage mVertexBufferUsage;
106<a name="l00148"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp14">00148</a>         HardwareBuffer::Usage mIndexBufferUsage;
107<a name="l00149"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp15">00149</a>         <span class="keywordtype">bool</span> mVertexBufferShadowBuffer;
108<a name="l00150"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp16">00150</a>         <span class="keywordtype">bool</span> mIndexBufferShadowBuffer;
10900151
11000152
111<a name="l00153"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp17">00153</a>         <span class="keywordtype">bool</span> mPreparedForShadowVolumes;
112<a name="l00154"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp18">00154</a>         <span class="keywordtype">bool</span> mEdgeListsBuilt;
113<a name="l00155"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp19">00155</a>         <span class="keywordtype">bool</span> mAutoBuildEdgeLists;
11400156
115<a name="l00158"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshx1">00158</a>         <span class="keyword">typedef</span> std::map&lt;String, Animation*&gt; <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshx1">AnimationList</a>;
116<a name="l00159"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp20">00159</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshx1">AnimationList</a> mAnimationsList;
117<a name="l00161"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp21">00161</a>         <span class="keyword">mutable</span> <a class="code" href="namespaceOgre.html#a630">VertexAnimationType</a> mSharedVertexDataAnimationType;
118<a name="l00163"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp22">00163</a>         <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mAnimationTypesDirty;
11900164
120<a name="l00166"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp23">00166</a>         <a class="code" href="namespaceOgre.html#a464">PoseList</a> mPoseList;
12100167
12200168
12300170         <span class="keywordtype">void</span> loadImpl(<span class="keywordtype">void</span>);
12400172         <span class="keywordtype">void</span> unloadImpl(<span class="keywordtype">void</span>);
12500174         size_t calculateSize(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
12600175
12700176
12800177
12900178     <span class="keyword">public</span>:
13000183         Mesh(<a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* creator, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name, <a class="code" href="namespaceOgre.html#a529">ResourceHandle</a> handle,
13100184             <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; group, <span class="keywordtype">bool</span> isManual = <span class="keyword">false</span>, <a class="code" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a>* loader = 0);
13200185         ~Mesh();
13300186
13400188         <span class="keywordtype">void</span> load(<span class="keywordtype">void</span>);
13500189
13600190         <span class="comment">// NB All methods below are non-virtual since they will be</span>
13700191         <span class="comment">// called in the rendering loop - speed is of the essence.</span>
13800192
13900199         <a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>* createSubMesh(<span class="keywordtype">void</span>);
14000200
14100203         <a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>* createSubMesh(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name);
14200204         
14300207         <span class="keywordtype">void</span> nameSubMesh(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name, <a class="code" href="namespaceOgre.html#a467">ushort</a> index);
14400208         
14500214         <a class="code" href="namespaceOgre.html#a467">ushort</a> _getSubMeshIndex(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name) <span class="keyword">const</span>;
14600215
14700218         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> getNumSubMeshes(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
14800219
14900222         <a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>* getSubMesh(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>;
15000223
15100226         <a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>* getSubMesh(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name) <span class="keyword">const</span> ;
15200227
153<a name="l00228"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw6">00228</a>         <span class="keyword">typedef</span> <a class="code" href="classOgre_1_1VectorIterator.html">VectorIterator&lt;SubMeshList&gt;</a> <a class="code" href="classOgre_1_1VectorIterator.html">SubMeshIterator</a>;
154<a name="l00230"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha11">00230</a>         <a class="code" href="classOgre_1_1VectorIterator.html">SubMeshIterator</a> getSubMeshIterator(<span class="keywordtype">void</span>)
15500231         { <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1VectorIterator.html">SubMeshIterator</a>(mSubMeshList.begin(), mSubMeshList.end()); }
15600232       
157<a name="l00241"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesho0">00241</a>         <a class="code" href="classOgre_1_1VertexData.html">VertexData</a> *sharedVertexData;
15800242
159<a name="l00263"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesho1">00263</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">IndexMap</a> sharedBlendIndexToBoneIndexMap;
16000264
16100274         <a class="code" href="classOgre_1_1MeshPtr.html">MeshPtr</a> clone(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; newName, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; newGroup = StringUtil::BLANK);
16200275
16300278         <span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>&amp; getBounds(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
16400279
16500281         <a class="code" href="namespaceOgre.html#a465">Real</a> getBoundingSphereRadius(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
16600282
16700291         <span class="keywordtype">void</span> _setBounds(<span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>&amp; bounds, <span class="keywordtype">bool</span> pad = <span class="keyword">true</span>);
16800292
16900300         <span class="keywordtype">void</span> _setBoundingSphereRadius(<a class="code" href="namespaceOgre.html#a465">Real</a> radius);
17000301
17100312         <span class="keywordtype">void</span> setSkeletonName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; skelName);
17200313
17300315         <span class="keywordtype">bool</span> hasSkeleton(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
17400316
17500319         <span class="keywordtype">bool</span> hasVertexAnimation(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
17600320
17700324         <span class="keyword">const</span> <a class="code" href="classOgre_1_1SkeletonPtr.html">SkeletonPtr</a>&amp; getSkeleton(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
17800325
17900327         <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; getSkeletonName(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
18000332         <span class="keywordtype">void</span> _initAnimationState(<a class="code" href="classOgre_1_1AnimationStateSet.html">AnimationStateSet</a>* animSet);
18100333
18200346         <span class="keywordtype">void</span> addBoneAssignment(<span class="keyword">const</span> <a class="code" href="structOgre_1_1VertexBoneAssignment__s.html">VertexBoneAssignment</a>&amp; vertBoneAssign);
18300347
18400353         <span class="keywordtype">void</span> clearBoneAssignments(<span class="keywordtype">void</span>);
18500354
18600361         <span class="keywordtype">void</span> _notifySkeleton(<a class="code" href="classOgre_1_1SkeletonPtr.html">SkeletonPtr</a>&amp; pSkel);
18700362
18800363
18900366         <a class="code" href="classOgre_1_1MapIterator.html">BoneAssignmentIterator</a> getBoneAssignmentIterator(<span class="keywordtype">void</span>);
19000367
19100368
19200392         <span class="keywordtype">void</span> generateLodLevels(<span class="keyword">const</span> LodDistanceList&amp; lodDistances,
19300393             ProgressiveMesh::VertexReductionQuota reductionMethod, <a class="code" href="namespaceOgre.html#a465">Real</a> reductionValue);
19400394
19500399         <a class="code" href="namespaceOgre.html#a467">ushort</a> getNumLodLevels(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
19600401         <span class="keyword">const</span> <a class="code" href="structOgre_1_1MeshLodUsage.html">MeshLodUsage</a>&amp; getLodLevel(<a class="code" href="namespaceOgre.html#a467">ushort</a> index) <span class="keyword">const</span>;
19700415         <span class="keywordtype">void</span> createManualLodLevel(<a class="code" href="namespaceOgre.html#a465">Real</a> fromDepth, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; meshName);
19800416
19900424         <span class="keywordtype">void</span> updateManualLodLevel(<a class="code" href="namespaceOgre.html#a467">ushort</a> index, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; meshName);
20000425
20100428         <a class="code" href="namespaceOgre.html#a467">ushort</a> getLodIndex(<a class="code" href="namespaceOgre.html#a465">Real</a> depth) <span class="keyword">const</span>;
20200429
20300436         <a class="code" href="namespaceOgre.html#a467">ushort</a> getLodIndexSquaredDepth(<a class="code" href="namespaceOgre.html#a465">Real</a> squaredDepth) <span class="keyword">const</span>;
20400437
205<a name="l00444"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha34">00444</a>         <span class="keywordtype">bool</span> isLodManual(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mIsLodManual; }
20600445
20700447         <span class="keywordtype">void</span> _setLodInfo(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> numLevels, <span class="keywordtype">bool</span> isManual);
20800449         <span class="keywordtype">void</span> _setLodUsage(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> level, <a class="code" href="structOgre_1_1MeshLodUsage.html">MeshLodUsage</a>&amp; usage);
20900451         <span class="keywordtype">void</span> _setSubMeshLodFaceList(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> subIdx, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> level, <a class="code" href="classOgre_1_1IndexData.html">IndexData</a>* facedata);
21000452
21100454         <span class="keywordtype">void</span> removeLodLevels(<span class="keywordtype">void</span>);
21200455
21300478         <span class="keywordtype">void</span> setVertexBufferPolicy(HardwareBuffer::Usage usage, <span class="keywordtype">bool</span> shadowBuffer = <span class="keyword">false</span>);
21400501         <span class="keywordtype">void</span> setIndexBufferPolicy(HardwareBuffer::Usage usage, <span class="keywordtype">bool</span> shadowBuffer = <span class="keyword">false</span>);
215<a name="l00503"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha41">00503</a>         HardwareBuffer::Usage getVertexBufferUsage(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mVertexBufferUsage; }
216<a name="l00505"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha42">00505</a>         HardwareBuffer::Usage getIndexBufferUsage(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mIndexBufferUsage; }
217<a name="l00507"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha43">00507</a>         <span class="keywordtype">bool</span> isVertexBufferShadowed(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mVertexBufferShadowBuffer; }
218<a name="l00509"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha44">00509</a>         <span class="keywordtype">bool</span> isIndexBufferShadowed(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mIndexBufferShadowBuffer; }
21900510       
22000511
22100525         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> _rationaliseBoneAssignments(size_t vertexCount, VertexBoneAssignmentList&amp; assignments);
22200526
22300534         <span class="keywordtype">void</span> _compileBoneAssignments(<span class="keywordtype">void</span>);
22400535
22500541         <span class="keywordtype">void</span> _updateCompiledBoneAssignments(<span class="keywordtype">void</span>);
22600542
22700560         <span class="keywordtype">void</span> buildTangentVectors(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> sourceTexCoordSet = 0, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> destTexCoordSet = 1);
22800561
22900574         <span class="keywordtype">bool</span> suggestTangentVectorBuildParams(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>&amp; outSourceCoordSet, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>&amp; outDestCoordSet);
23000575
23100579         <span class="keywordtype">void</span> buildEdgeList(<span class="keywordtype">void</span>);
23200581         <span class="keywordtype">void</span> freeEdgeList(<span class="keywordtype">void</span>);
23300582
23400601         <span class="keywordtype">void</span> prepareForShadowVolume(<span class="keywordtype">void</span>);
23500602
23600609         <a class="code" href="classOgre_1_1EdgeData.html">EdgeData</a>* getEdgeList(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lodIndex = 0);
23700610
23800617         <span class="keyword">const</span> <a class="code" href="classOgre_1_1EdgeData.html">EdgeData</a>* getEdgeList(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lodIndex = 0) <span class="keyword">const</span>;
23900618
240<a name="l00621"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha55">00621</a>         <span class="keywordtype">bool</span> isPreparedForShadowVolumes(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mPreparedForShadowVolumes; }
24100622
242<a name="l00624"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha56">00624</a>         <span class="keywordtype">bool</span> isEdgeListBuilt(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mEdgeListsBuilt; }
24300625
24400643         <span class="keyword">static</span> <span class="keywordtype">void</span> softwareVertexBlend(<span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* sourceVertexData,
24500644             <span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetVertexData, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>* pMatrices,
24600645             <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>* pIndexMap,
24700646             <span class="keywordtype">bool</span> blendNormals);
24800647
24900660         <span class="keyword">static</span> <span class="keywordtype">void</span> softwareVertexMorph(<a class="code" href="namespaceOgre.html#a465">Real</a> t,
25000661             <span class="keyword">const</span> <a class="code" href="classOgre_1_1HardwareVertexBufferSharedPtr.html">HardwareVertexBufferSharedPtr</a>&amp; b1,
25100662             <span class="keyword">const</span> <a class="code" href="classOgre_1_1HardwareVertexBufferSharedPtr.html">HardwareVertexBufferSharedPtr</a>&amp; b2,
25200663             <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetVertexData);
25300664
25400679         <span class="keyword">static</span> <span class="keywordtype">void</span> softwareVertexPoseBlend(<a class="code" href="namespaceOgre.html#a465">Real</a> weight,
25500680             <span class="keyword">const</span> std::map&lt;size_t, Vector3&gt;&amp; vertexOffsetMap,
25600681             <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetVertexData);
257<a name="l00683"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha57">00683</a>         <span class="keyword">const</span> <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw5">SubMeshNameMap</a>&amp; getSubMeshNameMap(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSubMeshNameMap; }
25800684
259<a name="l00695"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha58">00695</a>         <span class="keywordtype">void</span> setAutoBuildEdgeLists(<span class="keywordtype">bool</span> autobuild) { mAutoBuildEdgeLists = autobuild; }
260<a name="l00700"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha59">00700</a>         <span class="keywordtype">bool</span> getAutoBuildEdgeLists(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mAutoBuildEdgeLists; }
26100701
26200704         <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a630">VertexAnimationType</a> getSharedVertexDataAnimationType(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
26300705
26400710         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1Animation.html">Animation</a>* createAnimation(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name, <a class="code" href="namespaceOgre.html#a465">Real</a> length);
26500711
26600715         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1Animation.html">Animation</a>* getAnimation(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name) <span class="keyword">const</span>;
26700716
26800721         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1Animation.html">Animation</a>* _getAnimationImpl(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name) <span class="keyword">const</span>;
26900722
27000724         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasAnimation(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name);
27100725
27200727         <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeAnimation(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name);
27300728
27400730         <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> getNumAnimations(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
27500731
27600734         <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1Animation.html">Animation</a>* getAnimation(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>;
27700735
27800737         <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeAllAnimations(<span class="keywordtype">void</span>);
27900743         <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* getVertexDataByTrackHandle(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> handle);
28000755         <span class="keywordtype">void</span> updateMaterialForAllSubMeshes(<span class="keywordtype">void</span>);
28100756
28200761         <span class="keywordtype">void</span> _determineAnimationTypes(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
283<a name="l00763"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha72">00763</a>         <span class="keywordtype">bool</span> _getAnimationTypesDirty(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mAnimationTypesDirty; }
28400764
28500771         <a class="code" href="classOgre_1_1Pose.html">Pose</a>* createPose(<a class="code" href="namespaceOgre.html#a467">ushort</a> target, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name = StringUtil::BLANK);
286<a name="l00773"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha74">00773</a>         size_t getPoseCount(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mPoseList.size(); }
28700775         <a class="code" href="classOgre_1_1Pose.html">Pose</a>* getPose(<a class="code" href="namespaceOgre.html#a467">ushort</a> index);
28800777         <a class="code" href="classOgre_1_1Pose.html">Pose</a>* getPose(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name);
28900781         <span class="keywordtype">void</span> removePose(<a class="code" href="namespaceOgre.html#a467">ushort</a> index);
29000785         <span class="keywordtype">void</span> removePose(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name);
29100787         <span class="keywordtype">void</span> removeAllPoses(<span class="keywordtype">void</span>);
29200788
293<a name="l00789"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw7">00789</a>         <span class="keyword">typedef</span> <a class="code" href="classOgre_1_1VectorIterator.html">VectorIterator&lt;PoseList&gt;</a> <a class="code" href="classOgre_1_1VectorIterator.html">PoseIterator</a>;
294<a name="l00790"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw8">00790</a>         <span class="keyword">typedef</span> <a class="code" href="classOgre_1_1ConstVectorIterator.html">ConstVectorIterator&lt;PoseList&gt;</a> <a class="code" href="classOgre_1_1ConstVectorIterator.html">ConstPoseIterator</a>;
29500791
29600793         <a class="code" href="classOgre_1_1VectorIterator.html">PoseIterator</a> getPoseIterator(<span class="keywordtype">void</span>);
29700795         <a class="code" href="classOgre_1_1ConstVectorIterator.html">ConstPoseIterator</a> getPoseIterator(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
29800797         <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a464">PoseList</a>&amp; getPoseList(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
29900798
30000799     };
30100800
302<a name="l00807"></a><a class="code" href="classOgre_1_1MeshPtr.html">00807</a>     <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> MeshPtr : <span class="keyword">public</span> <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt;Mesh&gt;
30300808     {
30400809     <span class="keyword">public</span>:
305<a name="l00810"></a><a class="code" href="classOgre_1_1MeshPtr.html#Ogre_1_1MeshPtra0">00810</a>         MeshPtr() : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt;Mesh&gt;() {}
306<a name="l00811"></a><a class="code" href="classOgre_1_1MeshPtr.html#Ogre_1_1MeshPtra1">00811</a>         <span class="keyword">explicit</span> MeshPtr(Mesh* rep) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt;Mesh&gt;(rep) {}
307<a name="l00812"></a><a class="code" href="classOgre_1_1MeshPtr.html#Ogre_1_1MeshPtra2">00812</a>         MeshPtr(<span class="keyword">const</span> MeshPtr&amp; r) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt;Mesh&gt;(r) {}
30800813         MeshPtr(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&amp; r);
30900815         MeshPtr&amp; operator=(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&amp; r);
31000816     <span class="keyword">protected</span>:
31100818         <span class="keywordtype">void</span> destroy(<span class="keywordtype">void</span>);
31200819     };
31300820
314<a name="l00822"></a><a class="code" href="structOgre_1_1MeshLodUsage.html">00822</a>     <span class="keyword">struct </span><a class="code" href="structOgre_1_1MeshLodUsage.html">MeshLodUsage</a>
31500823     {
316<a name="l00825"></a><a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo0">00825</a>         <a class="code" href="namespaceOgre.html#a465">Real</a> <a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo0">fromDepthSquared</a>;
317<a name="l00827"></a><a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo1">00827</a>         <a class="code" href="namespaceOgre.html#a471">String</a> <a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo1">manualName</a>;
318<a name="l00829"></a><a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo2">00829</a>         <span class="keyword">mutable</span> MeshPtr <a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo2">manualMesh</a>;
319<a name="l00831"></a><a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo3">00831</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1EdgeData.html">EdgeData</a>* <a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo3">edgeData</a>;
32000832     };
32100833
32200834
32300835
32400836 } <span class="comment">// namespace</span>
32500837
32600838 <span class="preprocessor">#endif</span>
327</pre></div><hr>
328<p>
329Copyright &copy; 2000-2005 by The OGRE Team<br />
330<!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>
331This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/>
332                <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
333                <Work rdf:about="">
334                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
335        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
336                </Work>
337                <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> -->
338
339Last modified Sun Mar 12 14:37:44 2006
340</p>
341</body>
342</html>
Note: See TracBrowser for help on using the repository browser.