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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related 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> |
---|
11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
13 | 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> |
---|
14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
15 | 00006 <span class="comment"></span> |
---|
16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
18 | 00009 <span class="comment"></span> |
---|
19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
22 | 00013 <span class="comment">version.</span> |
---|
23 | 00014 <span class="comment"></span> |
---|
24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
27 | 00018 <span class="comment"></span> |
---|
28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
33 | 00024 <span class="comment">*/</span> |
---|
34 | 00025 <span class="preprocessor">#ifndef __Mesh_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define __Mesh_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span> |
---|
37 | 00028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
38 | 00029 |
---|
39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreResource_8h.html">OgreResource.h</a>"</span> |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreVertexIndexData_8h.html">OgreVertexIndexData.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreAxisAlignedBox_8h.html">OgreAxisAlignedBox.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreVertexBoneAssignment_8h.html">OgreVertexBoneAssignment.h</a>"</span> |
---|
43 | 00034 <span class="preprocessor">#include "<a class="code" href="OgreAnimationState_8h.html">OgreAnimationState.h</a>"</span> |
---|
44 | 00035 <span class="preprocessor">#include "<a class="code" href="OgreIteratorWrappers_8h.html">OgreIteratorWrappers.h</a>"</span> |
---|
45 | 00036 <span class="preprocessor">#include "<a class="code" href="OgreProgressiveMesh_8h.html">OgreProgressiveMesh.h</a>"</span> |
---|
46 | 00037 <span class="preprocessor">#include "<a class="code" href="OgreHardwareVertexBuffer_8h.html">OgreHardwareVertexBuffer.h</a>"</span> |
---|
47 | 00038 <span class="preprocessor">#include "<a class="code" href="OgreSkeleton_8h.html">OgreSkeleton.h</a>"</span> |
---|
48 | 00039 |
---|
49 | 00040 |
---|
50 | 00041 <span class="keyword">namespace </span>Ogre { |
---|
51 | 00042 |
---|
52 | 00043 |
---|
53 | 00078 <span class="keyword">struct </span>MeshLodUsage; |
---|
54 | 00079 |
---|
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> |
---|
56 | 00081 { |
---|
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>; |
---|
61 | 00086 |
---|
62 | 00087 <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<Real> 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<size_t, VertexBoneAssignment> <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<VertexBoneAssignmentList></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<SubMesh*> <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw3">SubMeshList</a>; |
---|
67 | 00093 |
---|
68 | 00094 <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; |
---|
70 | 00102 |
---|
71 | 00104 <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); |
---|
72 | 00105 |
---|
73 | 00106 <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<String, ushort> <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw4">SubMeshNameMap</a> ; |
---|
75 | 00111 <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 ; |
---|
77 | 00113 |
---|
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; |
---|
80 | 00118 |
---|
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; |
---|
83 | 00122 |
---|
84 | 00123 |
---|
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; |
---|
86 | 00125 |
---|
87 | <a name="l00127"></a><a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshp9">00127</a> <span class="keywordtype">bool</span> mBoneAssignmentsOutOfDate; |
---|
88 | 00128 |
---|
89 | 00130 <span class="keywordtype">void</span> compileBoneAssignments(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">VertexBoneAssignmentList</a>& boneAssignments, |
---|
90 | 00131 <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> numBlendWeightsPerVertex, |
---|
91 | 00132 <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetVertexData); |
---|
92 | 00134 <span class="keywordtype">void</span> compileBoneAssignmentsSoftware(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Mesh.html#Ogre_1_1PatchMeshw1">VertexBoneAssignmentList</a>& boneAssignments, |
---|
93 | 00135 <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> numBlendWeightsPerVertex, <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* targetVertexData); |
---|
94 | 00136 |
---|
95 | 00137 |
---|
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<MeshLodUsage> <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; |
---|
100 | 00142 |
---|
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; |
---|
105 | 00147 |
---|
106 | 00148 |
---|
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; |
---|
110 | 00152 |
---|
111 | 00154 <span class="keywordtype">void</span> loadImpl(<span class="keywordtype">void</span>); |
---|
112 | 00156 <span class="keywordtype">void</span> unloadImpl(<span class="keywordtype">void</span>); |
---|
113 | 00158 size_t calculateSize(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
114 | 00159 |
---|
115 | 00160 <span class="keyword">public</span>: |
---|
116 | 00165 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>& name, <a class="code" href="namespaceOgre.html#a485">ResourceHandle</a> handle, |
---|
117 | 00166 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& group, <span class="keywordtype">bool</span> isManual = <span class="keyword">false</span>, <a class="code" href="classOgre_1_1ManualResourceLoader.html">ManualResourceLoader</a>* loader = 0); |
---|
118 | 00167 ~Mesh(); |
---|
119 | 00168 |
---|
120 | 00170 <span class="keywordtype">void</span> load(<span class="keywordtype">void</span>); |
---|
121 | 00171 |
---|
122 | 00172 <span class="comment">// NB All methods below are non-virtual since they will be</span> |
---|
123 | 00173 <span class="comment">// called in the rendering loop - speed is of the essence.</span> |
---|
124 | 00174 |
---|
125 | 00181 <a class="code" href="classOgre_1_1SubMesh.html">SubMesh</a>* createSubMesh(<span class="keywordtype">void</span>); |
---|
126 | 00182 |
---|
127 | 00185 <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>& name); |
---|
128 | 00186 |
---|
129 | 00189 <span class="keywordtype">void</span> nameSubMesh(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, <a class="code" href="namespaceOgre.html#a422">ushort</a> index); |
---|
130 | 00190 |
---|
131 | 00196 <a class="code" href="namespaceOgre.html#a422">ushort</a> _getSubMeshIndex(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name) <span class="keyword">const</span>; |
---|
132 | 00197 |
---|
133 | 00200 <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> getNumSubMeshes(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
134 | 00201 |
---|
135 | 00204 <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>; |
---|
136 | 00205 |
---|
137 | 00208 <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>& name) <span class="keyword">const</span> ; |
---|
138 | 00209 |
---|
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<SubMeshList></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>) |
---|
141 | 00213 { <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1VectorIterator.html">SubMeshIterator</a>(mSubMeshList.begin(), mSubMeshList.end()); } |
---|
142 | 00214 |
---|
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; |
---|
144 | 00224 |
---|
145 | 00234 <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>& newName, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& newGroup = StringUtil::BLANK); |
---|
146 | 00235 |
---|
147 | 00238 <span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>& getBounds(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
148 | 00239 |
---|
149 | 00241 <a class="code" href="namespaceOgre.html#a420">Real</a> getBoundingSphereRadius(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
150 | 00242 |
---|
151 | 00251 <span class="keywordtype">void</span> _setBounds(<span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>& bounds, <span class="keywordtype">bool</span> pad = <span class="keyword">true</span>); |
---|
152 | 00252 |
---|
153 | 00260 <span class="keywordtype">void</span> _setBoundingSphereRadius(<a class="code" href="namespaceOgre.html#a420">Real</a> radius); |
---|
154 | 00261 |
---|
155 | 00272 <span class="keywordtype">void</span> setSkeletonName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& skelName); |
---|
156 | 00273 |
---|
157 | 00275 <span class="keywordtype">bool</span> hasSkeleton(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
158 | 00276 |
---|
159 | 00280 <span class="keyword">const</span> <a class="code" href="classOgre_1_1SkeletonPtr.html">SkeletonPtr</a>& getSkeleton(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
160 | 00281 |
---|
161 | 00283 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getSkeletonName(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
162 | 00288 <span class="keywordtype">void</span> _initAnimationState(<a class="code" href="namespaceOgre.html#a0">AnimationStateSet</a>* animSet); |
---|
163 | 00289 |
---|
164 | 00302 <span class="keywordtype">void</span> addBoneAssignment(<span class="keyword">const</span> <a class="code" href="structOgre_1_1VertexBoneAssignment__s.html">VertexBoneAssignment</a>& vertBoneAssign); |
---|
165 | 00303 |
---|
166 | 00309 <span class="keywordtype">void</span> clearBoneAssignments(<span class="keywordtype">void</span>); |
---|
167 | 00310 |
---|
168 | 00317 <span class="keywordtype">void</span> _notifySkeleton(<a class="code" href="classOgre_1_1SkeletonPtr.html">SkeletonPtr</a>& pSkel); |
---|
169 | 00318 |
---|
170 | 00319 |
---|
171 | 00322 <a class="code" href="classOgre_1_1MapIterator.html">BoneAssignmentIterator</a> getBoneAssignmentIterator(<span class="keywordtype">void</span>); |
---|
172 | 00323 |
---|
173 | 00324 |
---|
174 | 00348 <span class="keywordtype">void</span> generateLodLevels(<span class="keyword">const</span> LodDistanceList& lodDistances, |
---|
175 | 00349 ProgressiveMesh::VertexReductionQuota reductionMethod, <a class="code" href="namespaceOgre.html#a420">Real</a> reductionValue); |
---|
176 | 00350 |
---|
177 | 00355 <a class="code" href="namespaceOgre.html#a422">ushort</a> getNumLodLevels(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
178 | 00357 <span class="keyword">const</span> <a class="code" href="structOgre_1_1MeshLodUsage.html">MeshLodUsage</a>& getLodLevel(<a class="code" href="namespaceOgre.html#a422">ushort</a> index) <span class="keyword">const</span>; |
---|
179 | 00371 <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>& meshName); |
---|
180 | 00372 |
---|
181 | 00380 <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>& meshName); |
---|
182 | 00381 |
---|
183 | 00384 <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>; |
---|
184 | 00385 |
---|
185 | 00392 <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>; |
---|
186 | 00393 |
---|
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; } |
---|
188 | 00401 |
---|
189 | 00403 <span class="keywordtype">void</span> _setLodInfo(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> numLevels, <span class="keywordtype">bool</span> isManual); |
---|
190 | 00405 <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>& usage); |
---|
191 | 00407 <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); |
---|
192 | 00408 |
---|
193 | 00410 <span class="keywordtype">void</span> removeLodLevels(<span class="keywordtype">void</span>); |
---|
194 | 00411 |
---|
195 | 00434 <span class="keywordtype">void</span> setVertexBufferPolicy(HardwareBuffer::Usage usage, <span class="keywordtype">bool</span> shadowBuffer = <span class="keyword">false</span>); |
---|
196 | 00457 <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; } |
---|
201 | 00466 |
---|
202 | 00467 |
---|
203 | 00481 <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> _rationaliseBoneAssignments(size_t vertexCount, VertexBoneAssignmentList& assignments); |
---|
204 | 00482 |
---|
205 | 00490 <span class="keywordtype">void</span> _compileBoneAssignments(<span class="keywordtype">void</span>); |
---|
206 | 00491 |
---|
207 | 00509 <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); |
---|
208 | 00510 |
---|
209 | 00523 <span class="keywordtype">bool</span> suggestTangentVectorBuildParams(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>& outSourceCoordSet, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>& outDestCoordSet); |
---|
210 | 00524 |
---|
211 | 00528 <span class="keywordtype">void</span> buildEdgeList(<span class="keywordtype">void</span>); |
---|
212 | 00530 <span class="keywordtype">void</span> freeEdgeList(<span class="keywordtype">void</span>); |
---|
213 | 00531 |
---|
214 | 00550 <span class="keywordtype">void</span> prepareForShadowVolume(<span class="keywordtype">void</span>); |
---|
215 | 00551 |
---|
216 | 00558 <a class="code" href="classOgre_1_1EdgeData.html">EdgeData</a>* getEdgeList(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lodIndex = 0); |
---|
217 | 00559 |
---|
218 | 00566 <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>; |
---|
219 | 00567 |
---|
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; } |
---|
221 | 00571 |
---|
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; } |
---|
223 | 00574 |
---|
224 | 00590 <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, |
---|
225 | 00591 <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, |
---|
226 | 00592 <span class="keywordtype">bool</span> blendNormals); |
---|
227 | 00593 |
---|
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>& getSubMeshNameMap(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSubMeshNameMap; } |
---|
229 | 00596 |
---|
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; } |
---|
232 | 00613 |
---|
233 | 00614 |
---|
234 | 00615 }; |
---|
235 | 00616 |
---|
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><Mesh> |
---|
237 | 00624 { |
---|
238 | 00625 <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><Mesh>() {} |
---|
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><Mesh>(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& r) : <a class="code" href="classOgre_1_1SharedPtr.html">SharedPtr</a><Mesh>(r) {} |
---|
242 | 00629 MeshPtr(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& r); |
---|
243 | 00631 MeshPtr& operator=(<span class="keyword">const</span> <a class="code" href="classOgre_1_1SharedPtr.html">ResourcePtr</a>& r); |
---|
244 | 00632 <span class="keyword">protected</span>: |
---|
245 | 00634 <span class="keywordtype">void</span> destroy(<span class="keywordtype">void</span>); |
---|
246 | 00635 }; |
---|
247 | 00636 |
---|
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> |
---|
249 | 00639 { |
---|
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>; |
---|
254 | 00648 }; |
---|
255 | 00649 |
---|
256 | 00650 |
---|
257 | 00651 |
---|
258 | 00652 } <span class="comment">// namespace</span> |
---|
259 | 00653 |
---|
260 | 00654 <span class="preprocessor">#endif</span> |
---|
261 | </pre></div><hr> |
---|
262 | <p> |
---|
263 | Copyright © 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/> |
---|
265 | This 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 | |
---|
273 | Last modified Sun Feb 12 12:59:48 2006 |
---|
274 | </p> |
---|
275 | </body> |
---|
276 | </html> |
---|