MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / getNumWorldTransforms

Method getNumWorldTransforms

OgreMain/src/OgreSubEntity.cpp:222–239  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

220 }
221 //-----------------------------------------------------------------------
222 unsigned short SubEntity::getNumWorldTransforms() const
223 {
224 if( !mParentEntity->mNumBoneMatrices || !mParentEntity->isHardwareAnimationEnabled() )
225 {
226 // No skeletal animation, or software skinning
227 return 1;
228 }
229 else
230 {
231 // Hardware skinning, pass all actually used matrices
232 const Mesh::IndexMap &indexMap = mSubMesh->useSharedVertices
233 ? mSubMesh->parent->sharedBlendIndexToBoneIndexMap
234 : mSubMesh->blendIndexToBoneIndexMap;
235 assert( indexMap.size() <= mParentEntity->mNumBoneMatrices );
236
237 return static_cast<unsigned short>( indexMap.size() );
238 }
239 }
240 //-----------------------------------------------------------------------
241 Real SubEntity::getSquaredViewDepth( const Camera *cam ) const
242 {

Callers 4

fillBuffersForMethod · 0.80
renderSingleObjectMethod · 0.80
executeCommandMethod · 0.80

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected