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

Revision 657, 30.5 KB checked in by mattausch, 18 years ago (diff)

added ogre dependencies and patched ogre sources

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="OgreAnimationState_8h.html">OgreAnimationState.h</a>"</span>
4400035 <span class="preprocessor">#include "<a class="code" href="OgreIteratorWrappers_8h.html">OgreIteratorWrappers.h</a>"</span>
4500036 <span class="preprocessor">#include "<a class="code" href="OgreProgressiveMesh_8h.html">OgreProgressiveMesh.h</a>"</span>
4600037 <span class="preprocessor">#include "<a class="code" href="OgreHardwareVertexBuffer_8h.html">OgreHardwareVertexBuffer.h</a>"</span>
4700038 <span class="preprocessor">#include "<a class="code" href="OgreSkeleton_8h.html">OgreSkeleton.h</a>"</span>
4800039
4900040
5000041 <span class="keyword">namespace </span>Ogre {
5100042
5200043
5300078     <span class="keyword">struct </span>MeshLodUsage;
5400079
55<a name="l00080"></a><a class="code" href="classOgre_1_1Mesh.html">00080</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>
5600081     {
57<a name="l00082"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1Meshn0">00082</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>;
58<a name="l00083"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1Meshn1">00083</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1MeshSerializerImpl.html">MeshSerializerImpl</a>;
59<a name="l00084"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1Meshn2">00084</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>;
60<a name="l00085"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1Meshn3">00085</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>;
6100086
6200087     <span class="keyword">public</span>:
63<a name="l00088"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw0">00088</a>         <span class="keyword">typedef</span> std::vector&lt;Real&gt; LodDistanceList;
64<a name="l00090"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">00090</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>;
65<a name="l00091"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw2">00091</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>;
66<a name="l00092"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw3">00092</a>         <span class="keyword">typedef</span> std::vector&lt;SubMesh*&gt; <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw3">SubMeshList</a>;
6700093
6800094     <span class="keyword">protected</span>:
69<a name="l00101"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp2">00101</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw3">SubMeshList</a> mSubMeshList;
7000102     
7100104         <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);
7200105
7300106     <span class="keyword">public</span>:
74<a name="l00110"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">00110</a>         <span class="keyword">typedef</span> HashMap&lt;String, ushort&gt; <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">SubMeshNameMap</a> ;
7500111     <span class="keyword">protected</span>:
76<a name="l00112"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp3">00112</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">SubMeshNameMap</a> mSubMeshNameMap ;
7700113
78<a name="l00115"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp4">00115</a>         <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> mAABB;
79<a name="l00117"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp5">00117</a>         <a class="code" href="namespaceOgre.html#a420">Real</a> mBoundRadius;
8000118
81<a name="l00120"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp6">00120</a>         <a class="code" href="namespaceOgre.html#a426">String</a> mSkeletonName;
82<a name="l00121"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp7">00121</a>         <a class="code" href="classOgre_1_1SkeletonPtr.html">SkeletonPtr</a> mSkeleton;
8300122
8400123       
85<a name="l00124"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp8">00124</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">VertexBoneAssignmentList</a> mBoneAssignments;
8600125
87<a name="l00127"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp9">00127</a>         <span class="keywordtype">bool</span> mBoneAssignmentsOutOfDate;
8800128
8900130         <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,
9000131             <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> numBlendWeightsPerVertex,
9100132             <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetVertexData);
9200134         <span class="keywordtype">void</span> compileBoneAssignmentsSoftware(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">VertexBoneAssignmentList</a>&amp; boneAssignments,
9300135             <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> numBlendWeightsPerVertex, <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetVertexData);
9400136
9500137
96<a name="l00138"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp10">00138</a>         <span class="keywordtype">bool</span> mIsLodManual;
97<a name="l00139"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp11">00139</a>         <a class="code" href="namespaceOgre.html#a422">ushort</a> mNumLods;
98<a name="l00140"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshx0">00140</a>         <span class="keyword">typedef</span> std::vector&lt;MeshLodUsage&gt; <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshx0">MeshLodUsageList</a>;
99<a name="l00141"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp12">00141</a>         <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshx0">MeshLodUsageList</a> mMeshLodUsageList;
10000142
101<a name="l00143"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp13">00143</a>         HardwareBuffer::Usage mVertexBufferUsage;
102<a name="l00144"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp14">00144</a>         HardwareBuffer::Usage mIndexBufferUsage;
103<a name="l00145"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp15">00145</a>         <span class="keywordtype">bool</span> mVertexBufferShadowBuffer;
104<a name="l00146"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp16">00146</a>         <span class="keywordtype">bool</span> mIndexBufferShadowBuffer;
10500147
10600148
107<a name="l00149"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp17">00149</a>         <span class="keywordtype">bool</span> mPreparedForShadowVolumes;
108<a name="l00150"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp18">00150</a>         <span class="keywordtype">bool</span> mEdgeListsBuilt;
109<a name="l00151"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp19">00151</a>         <span class="keywordtype">bool</span> mAutoBuildEdgeLists;
11000152
11100154         <span class="keywordtype">void</span> loadImpl(<span class="keywordtype">void</span>);
11200156         <span class="keywordtype">void</span> unloadImpl(<span class="keywordtype">void</span>);
11300158         size_t calculateSize(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
11400159
11500160     <span class="keyword">public</span>:
11600165         Mesh(<a class="code" href="classOgre_1_1ResourceManager.html">ResourceManager</a>* creator, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; name, <a class="code" href="namespaceOgre.html#a485">ResourceHandle</a> handle,
11700166             <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">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);
11800167         ~Mesh();
11900168
12000170         <span class="keywordtype">void</span> load(<span class="keywordtype">void</span>);
12100171
12200172         <span class="comment">// NB All methods below are non-virtual since they will be</span>
12300173         <span class="comment">// called in the rendering loop - speed is of the essence.</span>
12400174
12500181         <a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>* createSubMesh(<span class="keywordtype">void</span>);
12600182
12700185         <a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>* createSubMesh(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; name);
12800186         
12900189         <span class="keywordtype">void</span> nameSubMesh(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; name, <a class="code" href="namespaceOgre.html#a422">ushort</a> index);
13000190         
13100196         <a class="code" href="namespaceOgre.html#a422">ushort</a> _getSubMeshIndex(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; name) <span class="keyword">const</span>;
13200197
13300200         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> getNumSubMeshes(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
13400201
13500204         <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>;
13600205
13700208         <a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>* getSubMesh(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; name) <span class="keyword">const</span> ;
13800209
139<a name="l00210"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw5">00210</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>;
140<a name="l00212"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha11">00212</a>         <a class="code" href="classOgre_1_1VectorIterator.html">SubMeshIterator</a> getSubMeshIterator(<span class="keywordtype">void</span>)
14100213         { <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1VectorIterator.html">SubMeshIterator</a>(mSubMeshList.begin(), mSubMeshList.end()); }
14200214       
143<a name="l00223"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesho0">00223</a>         <a class="code" href="classOgre_1_1VertexData.html">VertexData</a> *sharedVertexData;
14400224
14500234         <a class="code" href="classOgre_1_1MeshPtr.html">MeshPtr</a> clone(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; newName, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; newGroup = StringUtil::BLANK);
14600235
14700238         <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>;
14800239
14900241         <a class="code" href="namespaceOgre.html#a420">Real</a> getBoundingSphereRadius(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
15000242
15100251         <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>);
15200252
15300260         <span class="keywordtype">void</span> _setBoundingSphereRadius(<a class="code" href="namespaceOgre.html#a420">Real</a> radius);
15400261
15500272         <span class="keywordtype">void</span> setSkeletonName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; skelName);
15600273
15700275         <span class="keywordtype">bool</span> hasSkeleton(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
15800276
15900280         <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>;
16000281
16100283         <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; getSkeletonName(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
16200288         <span class="keywordtype">void</span> _initAnimationState(<a class="code" href="namespaceOgre.html#a0">AnimationStateSet</a>* animSet);
16300289
16400302         <span class="keywordtype">void</span> addBoneAssignment(<span class="keyword">const</span> <a class="code" href="structOgre_1_1VertexBoneAssignment__s.html">VertexBoneAssignment</a>&amp; vertBoneAssign);
16500303
16600309         <span class="keywordtype">void</span> clearBoneAssignments(<span class="keywordtype">void</span>);
16700310
16800317         <span class="keywordtype">void</span> _notifySkeleton(<a class="code" href="classOgre_1_1SkeletonPtr.html">SkeletonPtr</a>&amp; pSkel);
16900318
17000319
17100322         <a class="code" href="classOgre_1_1MapIterator.html">BoneAssignmentIterator</a> getBoneAssignmentIterator(<span class="keywordtype">void</span>);
17200323
17300324
17400348         <span class="keywordtype">void</span> generateLodLevels(<span class="keyword">const</span> LodDistanceList&amp; lodDistances,
17500349             ProgressiveMesh::VertexReductionQuota reductionMethod, <a class="code" href="namespaceOgre.html#a420">Real</a> reductionValue);
17600350
17700355         <a class="code" href="namespaceOgre.html#a422">ushort</a> getNumLodLevels(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
17800357         <span class="keyword">const</span> <a class="code" href="structOgre_1_1MeshLodUsage.html">MeshLodUsage</a>&amp; getLodLevel(<a class="code" href="namespaceOgre.html#a422">ushort</a> index) <span class="keyword">const</span>;
17900371         <span class="keywordtype">void</span> createManualLodLevel(<a class="code" href="namespaceOgre.html#a420">Real</a> fromDepth, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; meshName);
18000372
18100380         <span class="keywordtype">void</span> updateManualLodLevel(<a class="code" href="namespaceOgre.html#a422">ushort</a> index, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>&amp; meshName);
18200381
18300384         <a class="code" href="namespaceOgre.html#a422">ushort</a> getLodIndex(<a class="code" href="namespaceOgre.html#a420">Real</a> depth) <span class="keyword">const</span>;
18400385
18500392         <a class="code" href="namespaceOgre.html#a422">ushort</a> getLodIndexSquaredDepth(<a class="code" href="namespaceOgre.html#a420">Real</a> squaredDepth) <span class="keyword">const</span>;
18600393
187<a name="l00400"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha33">00400</a>         <span class="keywordtype">bool</span> isLodManual(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mIsLodManual; }
18800401
18900403         <span class="keywordtype">void</span> _setLodInfo(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> numLevels, <span class="keywordtype">bool</span> isManual);
19000405         <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);
19100407         <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);
19200408
19300410         <span class="keywordtype">void</span> removeLodLevels(<span class="keywordtype">void</span>);
19400411
19500434         <span class="keywordtype">void</span> setVertexBufferPolicy(HardwareBuffer::Usage usage, <span class="keywordtype">bool</span> shadowBuffer = <span class="keyword">false</span>);
19600457         <span class="keywordtype">void</span> setIndexBufferPolicy(HardwareBuffer::Usage usage, <span class="keywordtype">bool</span> shadowBuffer = <span class="keyword">false</span>);
197<a name="l00459"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha40">00459</a>         HardwareBuffer::Usage getVertexBufferUsage(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mVertexBufferUsage; }
198<a name="l00461"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha41">00461</a>         HardwareBuffer::Usage getIndexBufferUsage(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mIndexBufferUsage; }
199<a name="l00463"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha42">00463</a>         <span class="keywordtype">bool</span> isVertexBufferShadowed(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mVertexBufferShadowBuffer; }
200<a name="l00465"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha43">00465</a>         <span class="keywordtype">bool</span> isIndexBufferShadowed(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mIndexBufferShadowBuffer; }
20100466       
20200467
20300481         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> _rationaliseBoneAssignments(size_t vertexCount, VertexBoneAssignmentList&amp; assignments);
20400482
20500490         <span class="keywordtype">void</span> _compileBoneAssignments(<span class="keywordtype">void</span>);
20600491
20700509         <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);
20800510
20900523         <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);
21000524
21100528         <span class="keywordtype">void</span> buildEdgeList(<span class="keywordtype">void</span>);
21200530         <span class="keywordtype">void</span> freeEdgeList(<span class="keywordtype">void</span>);
21300531
21400550         <span class="keywordtype">void</span> prepareForShadowVolume(<span class="keywordtype">void</span>);
21500551
21600558         <a class="code" href="classOgre_1_1EdgeData.html">EdgeData</a>* getEdgeList(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lodIndex = 0);
21700559
21800566         <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>;
21900567
220<a name="l00570"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha53">00570</a>         <span class="keywordtype">bool</span> isPreparedForShadowVolumes(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mPreparedForShadowVolumes; }
22100571
222<a name="l00573"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha54">00573</a>         <span class="keywordtype">bool</span> isEdgeListBuilt(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mEdgeListsBuilt; }
22300574
22400590         <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,
22500591             <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,
22600592             <span class="keywordtype">bool</span> blendNormals);
22700593
228<a name="l00595"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha55">00595</a>         <span class="keyword">const</span> <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">SubMeshNameMap</a>&amp; getSubMeshNameMap(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSubMeshNameMap; }
22900596
230<a name="l00607"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha56">00607</a>         <span class="keywordtype">void</span> setAutoBuildEdgeLists(<span class="keywordtype">bool</span> autobuild) { mAutoBuildEdgeLists = autobuild; }
231<a name="l00612"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMesha57">00612</a>         <span class="keywordtype">bool</span> getAutoBuildEdgeLists(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mAutoBuildEdgeLists; }
23200613
23300614
23400615     };
23500616
236<a name="l00623"></a><a class="code" href="classOgre_1_1MeshPtr.html">00623</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;
23700624     {
23800625     <span class="keyword">public</span>:
239<a name="l00626"></a><a class="code" href="classOgre_1_1MeshPtr.html#Ogre_1_1MeshPtra0">00626</a>         MeshPtr() : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt;Mesh&gt;() {}
240<a name="l00627"></a><a class="code" href="classOgre_1_1MeshPtr.html#Ogre_1_1MeshPtra1">00627</a>         <span class="keyword">explicit</span> MeshPtr(Mesh* rep) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt;Mesh&gt;(rep) {}
241<a name="l00628"></a><a class="code" href="classOgre_1_1MeshPtr.html#Ogre_1_1MeshPtra2">00628</a>         MeshPtr(<span class="keyword">const</span> MeshPtr&amp; r) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a>&lt;Mesh&gt;(r) {}
24200629         MeshPtr(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&amp; r);
24300631         MeshPtr&amp; operator=(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>&amp; r);
24400632     <span class="keyword">protected</span>:
24500634         <span class="keywordtype">void</span> destroy(<span class="keywordtype">void</span>);
24600635     };
24700636
248<a name="l00638"></a><a class="code" href="structOgre_1_1MeshLodUsage.html">00638</a>     <span class="keyword">struct </span><a class="code" href="structOgre_1_1MeshLodUsage.html">MeshLodUsage</a>
24900639     {
250<a name="l00641"></a><a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo0">00641</a>         <a class="code" href="namespaceOgre.html#a420">Real</a> <a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo0">fromDepthSquared</a>;
251<a name="l00643"></a><a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo1">00643</a>         <a class="code" href="namespaceOgre.html#a426">String</a> <a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo1">manualName</a>;
252<a name="l00645"></a><a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo2">00645</a>         <span class="keyword">mutable</span> MeshPtr <a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo2">manualMesh</a>;
253<a name="l00647"></a><a class="code" href="structOgre_1_1MeshLodUsage.html#Ogre_1_1MeshLodUsageo3">00647</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>;
25400648     };
25500649
25600650
25700651
25800652 } <span class="comment">// namespace</span>
25900653
26000654 <span class="preprocessor">#endif</span>
261</pre></div><hr>
262<p>
263Copyright &copy; 2000-2005 by The OGRE Team<br />
264<!--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/>
265This 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/>
266                <!--/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#">
267                <Work rdf:about="">
268                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
269        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
270                </Work>
271                <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> -->
272
273Last modified Sun Feb 12 12:59:48 2006
274</p>
275</body>
276</html>
Note: See TracBrowser for help on using the repository browser.