1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreEntity.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>OgreEntity.h</h1><a href="OgreEntity_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://ogre.sourceforge.net/</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 __Entity_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define __Entity_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 <span class="preprocessor">#include "<a class="code" href="OgreCommon_8h.html">OgreCommon.h</a>"</span> |
---|
39 | 00030 |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreString_8h.html">OgreString.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreMovableObject_8h.html">OgreMovableObject.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreAnimationState_8h.html">OgreAnimationState.h</a>"</span> |
---|
43 | 00034 <span class="preprocessor">#include "<a class="code" href="OgreQuaternion_8h.html">OgreQuaternion.h</a>"</span> |
---|
44 | 00035 <span class="preprocessor">#include "<a class="code" href="OgreVector3_8h.html">OgreVector3.h</a>"</span> |
---|
45 | 00036 <span class="preprocessor">#include "<a class="code" href="OgreHardwareBufferManager_8h.html">OgreHardwareBufferManager.h</a>"</span> |
---|
46 | 00037 <span class="preprocessor">#include "<a class="code" href="OgreMesh_8h.html">OgreMesh.h</a>"</span> |
---|
47 | 00038 |
---|
48 | 00039 <span class="keyword">namespace </span>Ogre { |
---|
49 | <a name="l00071"></a><a class="code" href="classOgre_1_1Entity.html">00071</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> Entity: <span class="keyword">public</span> <a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a> |
---|
50 | 00072 { |
---|
51 | 00073 <span class="comment">// Allow SceneManager full access</span> |
---|
52 | <a name="l00074"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityn0">00074</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>; |
---|
53 | <a name="l00075"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityn1">00075</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1SubEntity.html">SubEntity</a>; |
---|
54 | 00076 <span class="keyword">public</span>: |
---|
55 | <a name="l00077"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityw0">00077</a> <span class="keyword">typedef</span> std::set<Entity*> <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityw0">EntitySet</a>; |
---|
56 | 00078 |
---|
57 | 00079 <span class="keyword">protected</span>: |
---|
58 | 00080 |
---|
59 | 00083 Entity(); |
---|
60 | 00086 Entity( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, <a class="code" href="classOgre_1_1MeshPtr.html">MeshPtr</a>& mesh, <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* creator); |
---|
61 | 00087 |
---|
62 | <a name="l00090"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp0">00090</a> <a class="code" href="namespaceOgre.html#a426">String</a> mName; |
---|
63 | 00091 |
---|
64 | <a name="l00094"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp1">00094</a> <a class="code" href="classOgre_1_1MeshPtr.html">MeshPtr</a> mMesh; |
---|
65 | 00095 |
---|
66 | <a name="l00098"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityx0">00098</a> <span class="keyword">typedef</span> std::vector<SubEntity*> <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityx0">SubEntityList</a>; |
---|
67 | <a name="l00099"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp2">00099</a> <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityx0">SubEntityList</a> mSubEntityList; |
---|
68 | 00100 |
---|
69 | <a name="l00104"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp3">00104</a> <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* mCreatorSceneManager; |
---|
70 | 00105 |
---|
71 | 00106 |
---|
72 | <a name="l00108"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp4">00108</a> <a class="code" href="namespaceOgre.html#a0">AnimationStateSet</a>* mAnimationState; |
---|
73 | 00109 |
---|
74 | <a name="l00111"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityt0">00111</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a426">String</a> msMovableType; |
---|
75 | 00112 |
---|
76 | 00113 |
---|
77 | <a name="l00115"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp5">00115</a> <a class="code" href="classOgre_1_1TempBlendedBufferInfo.html">TempBlendedBufferInfo</a> mTempBlendedBuffer; |
---|
78 | <a name="l00117"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp6">00117</a> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* mSharedBlendedVertexData; |
---|
79 | 00118 |
---|
80 | 00121 <span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* findBlendedVertexData(<span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* orig); |
---|
81 | 00124 <a class="code" href="classOgre_1_1SubEntity.html">SubEntity</a>* findSubEntityForVertexData(<span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* orig); |
---|
82 | 00125 |
---|
83 | 00128 <span class="keywordtype">void</span> extractTempBufferInfo(<a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* sourceData, <a class="code" href="classOgre_1_1TempBlendedBufferInfo.html">TempBlendedBufferInfo</a>* info); |
---|
84 | 00130 <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* cloneVertexDataRemoveBlendInfo(<span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* source); |
---|
85 | 00132 <span class="keywordtype">void</span> prepareTempBlendBuffers(<span class="keywordtype">void</span>); |
---|
86 | 00133 |
---|
87 | <a name="l00135"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp7">00135</a> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> *mBoneMatrices; |
---|
88 | <a name="l00136"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp8">00136</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> mNumBoneMatrices; |
---|
89 | <a name="l00138"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp9">00138</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> mFrameAnimationLastUpdated; |
---|
90 | 00139 |
---|
91 | 00141 <span class="keywordtype">void</span> updateAnimation(<span class="keywordtype">void</span>); |
---|
92 | 00142 |
---|
93 | <a name="l00146"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp10">00146</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *mFrameBonesLastUpdated; |
---|
94 | 00147 |
---|
95 | <a name="l00153"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp11">00153</a> <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityw0">EntitySet</a>* mSharedSkeletonEntities; |
---|
96 | 00154 |
---|
97 | 00156 <span class="keywordtype">void</span> cacheBoneMatrices(<span class="keywordtype">void</span>); |
---|
98 | 00157 |
---|
99 | <a name="l00159"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp12">00159</a> <span class="keywordtype">bool</span> mDisplaySkeleton; |
---|
100 | <a name="l00161"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp13">00161</a> <span class="keywordtype">bool</span> mHardwareSkinning; |
---|
101 | <a name="l00163"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp14">00163</a> <span class="keywordtype">int</span> mSoftwareSkinningRequests; |
---|
102 | <a name="l00165"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp15">00165</a> <span class="keywordtype">int</span> mSoftwareSkinningNormalsRequests; |
---|
103 | <a name="l00167"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp16">00167</a> <span class="keywordtype">bool</span> mVertexProgramInUse; |
---|
104 | 00168 |
---|
105 | 00169 |
---|
106 | <a name="l00171"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp17">00171</a> <a class="code" href="namespaceOgre.html#a422">ushort</a> mMeshLodIndex; |
---|
107 | 00172 |
---|
108 | <a name="l00174"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp18">00174</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mMeshLodFactorInv; |
---|
109 | <a name="l00176"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp19">00176</a> <a class="code" href="namespaceOgre.html#a422">ushort</a> mMinMeshLodIndex; |
---|
110 | <a name="l00178"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp20">00178</a> <a class="code" href="namespaceOgre.html#a422">ushort</a> mMaxMeshLodIndex; |
---|
111 | 00179 |
---|
112 | <a name="l00181"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp21">00181</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mMaterialLodFactorInv; |
---|
113 | <a name="l00183"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp22">00183</a> <a class="code" href="namespaceOgre.html#a422">ushort</a> mMinMaterialLodIndex; |
---|
114 | <a name="l00185"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp23">00185</a> <a class="code" href="namespaceOgre.html#a422">ushort</a> mMaxMaterialLodIndex; |
---|
115 | 00186 |
---|
116 | <a name="l00188"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp24">00188</a> <span class="keywordtype">bool</span> mUsingManualLOD; |
---|
117 | <a name="l00194"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityx1">00194</a> <span class="keyword">typedef</span> std::vector<Entity*> <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityx1">LODEntityList</a>; |
---|
118 | <a name="l00195"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp25">00195</a> <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityx1">LODEntityList</a> mLodEntityList; |
---|
119 | 00196 |
---|
120 | <a name="l00199"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp26">00199</a> <a class="code" href="classOgre_1_1SkeletonInstance.html">SkeletonInstance</a>* mSkeletonInstance; |
---|
121 | 00200 |
---|
122 | 00202 <span class="keywordtype">void</span> buildSubEntityList(<a class="code" href="classOgre_1_1MeshPtr.html">MeshPtr</a>& mesh, <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityx0">SubEntityList</a>* sublist); |
---|
123 | 00203 |
---|
124 | 00205 <span class="keywordtype">void</span> attachObjectImpl(<a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a> *pMovable, <a class="code" href="classOgre_1_1TagPoint.html">TagPoint</a> *pAttachingPoint); |
---|
125 | 00206 |
---|
126 | 00208 <span class="keywordtype">void</span> detachObjectImpl(<a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a>* pObject); |
---|
127 | 00209 |
---|
128 | 00211 <span class="keywordtype">void</span> detachAllObjectsImpl(<span class="keywordtype">void</span>); |
---|
129 | 00212 |
---|
130 | 00214 <span class="keywordtype">void</span> reevaluateVertexProcessing(<span class="keywordtype">void</span>); |
---|
131 | 00215 |
---|
132 | 00216 <span class="keyword">public</span>: |
---|
133 | <a name="l00218"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityw1">00218</a> <span class="keyword">typedef</span> std::map<String, MovableObject*> <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityw1">ChildObjectList</a>; |
---|
134 | 00219 <span class="keyword">protected</span>: |
---|
135 | <a name="l00220"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp27">00220</a> <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityw1">ChildObjectList</a> mChildObjectList; |
---|
136 | 00221 |
---|
137 | 00222 |
---|
138 | <a name="l00224"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp28">00224</a> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> *mFullBoundingBox; |
---|
139 | 00225 |
---|
140 | <a name="l00226"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp29">00226</a> <span class="keywordtype">bool</span> mNormaliseNormals; |
---|
141 | 00227 |
---|
142 | <a name="l00228"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityp30">00228</a> ShadowRenderableList mShadowRenderables; |
---|
143 | 00229 |
---|
144 | <a name="l00231"></a><a class="code" href="classOgre_1_1Entity_1_1EntityShadowRenderable.html">00231</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> EntityShadowRenderable : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ShadowRenderable.html">ShadowRenderable</a> |
---|
145 | 00232 { |
---|
146 | 00233 <span class="keyword">protected</span>: |
---|
147 | <a name="l00234"></a><a class="code" href="classOgre_1_1Entity_1_1EntityShadowRenderable.html#Ogre_1_1Entity_1_1EntityShadowRenderablep0">00234</a> Entity* mParent; |
---|
148 | 00235 <span class="comment">// Shared link to position buffer</span> |
---|
149 | <a name="l00236"></a><a class="code" href="classOgre_1_1Entity_1_1EntityShadowRenderable.html#Ogre_1_1Entity_1_1EntityShadowRenderablep1">00236</a> <a class="code" href="classOgre_1_1HardwareVertexBufferSharedPtr.html">HardwareVertexBufferSharedPtr</a> mPositionBuffer; |
---|
150 | 00237 <span class="comment">// Shared link to w-coord buffer (optional)</span> |
---|
151 | <a name="l00238"></a><a class="code" href="classOgre_1_1Entity_1_1EntityShadowRenderable.html#Ogre_1_1Entity_1_1EntityShadowRenderablep2">00238</a> <a class="code" href="classOgre_1_1HardwareVertexBufferSharedPtr.html">HardwareVertexBufferSharedPtr</a> mWBuffer; |
---|
152 | 00239 <span class="comment">// Link to original vertex data</span> |
---|
153 | <a name="l00240"></a><a class="code" href="classOgre_1_1Entity_1_1EntityShadowRenderable.html#Ogre_1_1Entity_1_1EntityShadowRenderablep3">00240</a> <span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* mOriginalVertexData; |
---|
154 | 00241 <span class="comment">// Original position buffer source binding</span> |
---|
155 | <a name="l00242"></a><a class="code" href="classOgre_1_1Entity_1_1EntityShadowRenderable.html#Ogre_1_1Entity_1_1EntityShadowRenderablep4">00242</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> mOriginalPosBufferBinding; |
---|
156 | <a name="l00244"></a><a class="code" href="classOgre_1_1Entity_1_1EntityShadowRenderable.html#Ogre_1_1Entity_1_1EntityShadowRenderablep5">00244</a> <a class="code" href="classOgre_1_1SubEntity.html">SubEntity</a>* mSubEntity; |
---|
157 | 00245 |
---|
158 | 00246 |
---|
159 | 00247 <span class="keyword">public</span>: |
---|
160 | 00248 EntityShadowRenderable(Entity* parent, |
---|
161 | 00249 <a class="code" href="classOgre_1_1HardwareIndexBufferSharedPtr.html">HardwareIndexBufferSharedPtr</a>* indexBuffer, <span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* vertexData, |
---|
162 | 00250 <span class="keywordtype">bool</span> createSeparateLightCap, <a class="code" href="classOgre_1_1SubEntity.html">SubEntity</a>* subent, <span class="keywordtype">bool</span> isLightCap = <span class="keyword">false</span>); |
---|
163 | 00251 ~EntityShadowRenderable(); |
---|
164 | 00253 <span class="keywordtype">void</span> getWorldTransforms(<a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>* xform) <span class="keyword">const</span>; |
---|
165 | 00255 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>& getWorldOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
166 | 00257 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& getWorldPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
167 | <a name="l00258"></a><a class="code" href="classOgre_1_1Entity_1_1EntityShadowRenderable.html#Ogre_1_1Entity_1_1EntityShadowRenderablea5">00258</a> <a class="code" href="classOgre_1_1HardwareVertexBufferSharedPtr.html">HardwareVertexBufferSharedPtr</a> getPositionBuffer(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> mPositionBuffer; } |
---|
168 | <a name="l00259"></a><a class="code" href="classOgre_1_1Entity_1_1EntityShadowRenderable.html#Ogre_1_1Entity_1_1EntityShadowRenderablea6">00259</a> <a class="code" href="classOgre_1_1HardwareVertexBufferSharedPtr.html">HardwareVertexBufferSharedPtr</a> getWBuffer(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> mWBuffer; } |
---|
169 | 00261 <span class="keywordtype">void</span> rebindPositionBuffer(<span class="keywordtype">void</span>); |
---|
170 | 00263 <span class="keywordtype">bool</span> isVisible(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
171 | 00264 |
---|
172 | 00265 }; |
---|
173 | 00266 <span class="keyword">public</span>: |
---|
174 | 00269 ~Entity(); |
---|
175 | 00270 |
---|
176 | 00273 <a class="code" href="classOgre_1_1MeshPtr.html">MeshPtr</a>& getMesh(<span class="keywordtype">void</span>); |
---|
177 | 00274 |
---|
178 | 00277 <a class="code" href="classOgre_1_1SubEntity.html">SubEntity</a>* getSubEntity(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index); |
---|
179 | 00278 |
---|
180 | 00282 <a class="code" href="classOgre_1_1SubEntity.html">SubEntity</a>* getSubEntity( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name ); |
---|
181 | 00283 |
---|
182 | 00286 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNumSubEntities(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
183 | 00287 |
---|
184 | 00297 Entity* clone( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& newName ); |
---|
185 | 00298 |
---|
186 | 00307 <span class="keywordtype">void</span> setMaterialName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
187 | 00308 |
---|
188 | 00311 <span class="keywordtype">void</span> _notifyCurrentCamera(<a class="code" href="classOgre_1_1Camera.html">Camera</a>* cam); |
---|
189 | 00312 |
---|
190 | 00314 <span class="keywordtype">void</span> setRenderQueueGroup(RenderQueueGroupID queueID); |
---|
191 | 00315 |
---|
192 | 00318 <span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>& getBoundingBox(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
193 | 00319 |
---|
194 | 00321 <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> getChildObjectsBoundingBox(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
195 | 00322 |
---|
196 | 00325 <span class="keywordtype">void</span> _updateRenderQueue(<a class="code" href="classOgre_1_1RenderQueue.html">RenderQueue</a>* queue); |
---|
197 | 00326 |
---|
198 | 00328 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getName(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
199 | 00329 |
---|
200 | 00331 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getMovableType(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
201 | 00332 |
---|
202 | 00339 <a class="code" href="classOgre_1_1AnimationState.html">AnimationState</a>* getAnimationState(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
203 | 00349 <a class="code" href="namespaceOgre.html#a0">AnimationStateSet</a>* getAllAnimationStates(<span class="keywordtype">void</span>); |
---|
204 | 00350 |
---|
205 | 00353 <span class="keywordtype">void</span> setDisplaySkeleton(<span class="keywordtype">bool</span> display); |
---|
206 | 00354 |
---|
207 | 00357 <span class="keywordtype">bool</span> getDisplaySkeleton(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
208 | 00358 |
---|
209 | 00359 |
---|
210 | 00365 Entity* getManualLodLevel(size_t index) <span class="keyword">const</span>; |
---|
211 | 00366 |
---|
212 | 00372 size_t getNumManualLodLevels(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
213 | 00373 |
---|
214 | 00400 <span class="keywordtype">void</span> setMeshLodBias(<a class="code" href="namespaceOgre.html#a420">Real</a> factor, <a class="code" href="namespaceOgre.html#a422">ushort</a> maxDetailIndex = 0, <a class="code" href="namespaceOgre.html#a422">ushort</a> minDetailIndex = 99); |
---|
215 | 00401 |
---|
216 | 00428 <span class="keywordtype">void</span> setMaterialLodBias(<a class="code" href="namespaceOgre.html#a420">Real</a> factor, <a class="code" href="namespaceOgre.html#a422">ushort</a> maxDetailIndex = 0, <a class="code" href="namespaceOgre.html#a422">ushort</a> minDetailIndex = 99); |
---|
217 | 00429 |
---|
218 | 00431 <span class="keywordtype">void</span> setRenderDetail(SceneDetailLevel renderDetail); |
---|
219 | 00432 |
---|
220 | 00436 <span class="keywordtype">void</span> setRenderDetailOverrideable(<span class="keywordtype">bool</span> renderDetailOverrideable); |
---|
221 | 00447 <span class="keywordtype">void</span> attachObjectToBone(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &boneName, <a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a> *pMovable, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> &offsetOrientation = Quaternion::IDENTITY, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> &offsetPosition = Vector3::ZERO); |
---|
222 | 00448 |
---|
223 | 00450 <a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a>* detachObjectFromBone(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a> &movableName); |
---|
224 | 00451 |
---|
225 | 00458 <span class="keywordtype">void</span> detachObjectFromBone(<a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a>* obj); |
---|
226 | 00459 |
---|
227 | 00461 <span class="keywordtype">void</span> detachAllObjectsFromBone(<span class="keywordtype">void</span>); |
---|
228 | 00462 |
---|
229 | <a name="l00463"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityw2">00463</a> <span class="keyword">typedef</span> <a class="code" href="classOgre_1_1MapIterator.html">MapIterator<ChildObjectList></a> <a class="code" href="classOgre_1_1MapIterator.html">ChildObjectListIterator</a>; |
---|
230 | 00465 <a class="code" href="classOgre_1_1MapIterator.html">ChildObjectListIterator</a> getAttachedObjectIterator(<span class="keywordtype">void</span>); |
---|
231 | 00467 <a class="code" href="namespaceOgre.html#a420">Real</a> getBoundingRadius(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
232 | 00469 <span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>& getWorldBoundingBox(<span class="keywordtype">bool</span> derive = <span class="keyword">false</span>) <span class="keyword">const</span>; |
---|
233 | 00471 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Sphere.html">Sphere</a>& getWorldBoundingSphere(<span class="keywordtype">bool</span> derive = <span class="keyword">false</span>) <span class="keyword">const</span>; |
---|
234 | 00472 |
---|
235 | <a name="l00481"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya32">00481</a> <span class="keywordtype">void</span> setNormaliseNormals(<span class="keywordtype">bool</span> normalise) { mNormaliseNormals = normalise; } |
---|
236 | 00482 |
---|
237 | <a name="l00484"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya33">00484</a> <span class="keywordtype">bool</span> getNormaliseNormals(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> mNormaliseNormals; } |
---|
238 | 00485 |
---|
239 | 00486 |
---|
240 | 00488 <a class="code" href="classOgre_1_1EdgeData.html">EdgeData</a>* getEdgeList(<span class="keywordtype">void</span>); |
---|
241 | 00490 ShadowRenderableListIterator getShadowVolumeRenderableIterator( |
---|
242 | 00491 ShadowTechnique shadowTechnique, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Light.html">Light</a>* light, |
---|
243 | 00492 <a class="code" href="classOgre_1_1HardwareIndexBufferSharedPtr.html">HardwareIndexBufferSharedPtr</a>* indexBuffer, |
---|
244 | 00493 <span class="keywordtype">bool</span> extrudeVertices, <a class="code" href="namespaceOgre.html#a420">Real</a> extrusionDistance, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> flags = 0 ); |
---|
245 | 00494 |
---|
246 | <a name="l00496"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya36">00496</a> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>* _getBoneMatrices(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> mBoneMatrices;} |
---|
247 | <a name="l00498"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya37">00498</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> _getNumBoneMatrices(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> mNumBoneMatrices; } |
---|
248 | <a name="l00500"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya38">00500</a> <span class="keywordtype">bool</span> hasSkeleton(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> mSkeletonInstance != 0; } |
---|
249 | <a name="l00502"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya39">00502</a> <a class="code" href="classOgre_1_1SkeletonInstance.html">SkeletonInstance</a>* getSkeleton(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> mSkeletonInstance; } |
---|
250 | <a name="l00512"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya40">00512</a> <span class="keywordtype">bool</span> isHardwareSkinningEnabled(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mHardwareSkinning; } |
---|
251 | <a name="l00520"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya41">00520</a> <span class="keywordtype">int</span> getSoftwareSkinningRequests(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSoftwareSkinningRequests; } |
---|
252 | <a name="l00532"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya42">00532</a> <span class="keywordtype">int</span> getSoftwareSkinningNormalsRequests(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSoftwareSkinningNormalsRequests; } |
---|
253 | 00548 <span class="keywordtype">void</span> addSoftwareSkinningRequest(<span class="keywordtype">bool</span> normalsAlso); |
---|
254 | 00557 <span class="keywordtype">void</span> removeSoftwareSkinningRequest(<span class="keywordtype">bool</span> normalsAlso); |
---|
255 | 00558 |
---|
256 | 00560 <span class="keywordtype">void</span> _notifyAttached(<a class="code" href="classOgre_1_1Node.html">Node</a>* parent, <span class="keywordtype">bool</span> isTagPoint = <span class="keyword">false</span>); |
---|
257 | 00561 |
---|
258 | 00566 <span class="keywordtype">void</span> shareSkeletonInstanceWith(Entity* entity); |
---|
259 | 00567 |
---|
260 | 00568 |
---|
261 | 00571 <span class="keywordtype">void</span> Entity::stopSharingSkeletonInstance(); |
---|
262 | 00572 |
---|
263 | 00573 |
---|
264 | <a name="l00577"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya48">00577</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> sharesSkeletonInstance()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSharedSkeletonEntities != NULL; } |
---|
265 | 00578 |
---|
266 | <a name="l00583"></a><a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entitya49">00583</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Entity.html#Ogre_1_1Entityw0">EntitySet</a>* getSkeletonInstanceSharingSet()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSharedSkeletonEntities; } |
---|
267 | 00584 |
---|
268 | 00595 <span class="keywordtype">void</span> refreshAvailableAnimationState(<span class="keywordtype">void</span>); |
---|
269 | 00596 |
---|
270 | 00604 <span class="keywordtype">void</span> _updateAnimation(<span class="keywordtype">void</span>); |
---|
271 | 00605 |
---|
272 | 00609 <span class="keyword">const</span> <a class="code" href="classOgre_1_1VertexData.html">VertexData</a>* _getSharedBlendedVertexData(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
273 | 00610 |
---|
274 | 00611 |
---|
275 | 00612 |
---|
276 | 00613 }; |
---|
277 | 00614 |
---|
278 | 00615 } <span class="comment">// namespace</span> |
---|
279 | 00616 |
---|
280 | 00617 <span class="preprocessor">#endif</span> |
---|
281 | </pre></div><hr> |
---|
282 | <p> |
---|
283 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
284 | <!--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/> |
---|
285 | 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/> |
---|
286 | <!--/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#"> |
---|
287 | <Work rdf:about=""> |
---|
288 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
289 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
290 | </Work> |
---|
291 | <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> --> |
---|
292 | |
---|
293 | Last modified Sun Feb 12 12:59:44 2006 |
---|
294 | </p> |
---|
295 | </body> |
---|
296 | </html> |
---|