---------------------------------------------------------------------
| 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 ) |
nothing calls this directly
no test coverage detected