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

Method calcAnimationTrackSize

OgreMain/src/OgreSkeletonSerializer.cpp:398–413  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

396 }
397 //---------------------------------------------------------------------
398 size_t SkeletonSerializer::calcAnimationTrackSize( const Skeleton *pSkel,
399 const OldNodeAnimationTrack *pTrack )
400 {
401 size_t size = SSTREAM_OVERHEAD_SIZE;
402
403 // unsigned short boneIndex : Index of bone to apply to
404 size += sizeof( unsigned short );
405
406 // Nested keyframes
407 for( unsigned short i = 0; i < pTrack->getNumKeyFrames(); ++i )
408 {
409 size += calcKeyFrameSize( pSkel, pTrack->getNodeKeyFrame( i ) );
410 }
411
412 return size;
413 }
414 //---------------------------------------------------------------------
415 size_t SkeletonSerializer::calcKeyFrameSize( const Skeleton *pSkel,
416 const TransformKeyFrame *pKey )

Callers

nothing calls this directly

Calls 2

getNumKeyFramesMethod · 0.80
getNodeKeyFrameMethod · 0.80

Tested by

no test coverage detected