diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2017-01-31 11:57:02 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2017-01-31 14:09:55 +0000 |
commit | c35f8e7c5f573fcc89b3042157d5843d9322ac90 (patch) | |
tree | 441f70a284d957056d917842b76881fe6420b13e /src/animation/backend/evaluateblendclipanimatorjob_p.h | |
parent | 26b1dd88d374b17314218584487a383e3d558018 (diff) |
BlendedAnimations: allow nested blending nodes evaluation
Change-Id: Ic6a70ee57f56dff7406b5917d620ea15b74ecb44
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/animation/backend/evaluateblendclipanimatorjob_p.h')
-rw-r--r-- | src/animation/backend/evaluateblendclipanimatorjob_p.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/animation/backend/evaluateblendclipanimatorjob_p.h b/src/animation/backend/evaluateblendclipanimatorjob_p.h index 07db68fdc..8090a025a 100644 --- a/src/animation/backend/evaluateblendclipanimatorjob_p.h +++ b/src/animation/backend/evaluateblendclipanimatorjob_p.h @@ -50,6 +50,8 @@ #include <Qt3DCore/qaspectjob.h> #include <Qt3DAnimation/private/handle_types_p.h> +#include <Qt3DAnimation/private/animationutils_p.h> +#include <Qt3DAnimation/private/blendedclipanimator_p.h> QT_BEGIN_NAMESPACE @@ -57,6 +59,7 @@ namespace Qt3DAnimation { namespace Animation { class Handler; +class ClipBlendNode; class EvaluateBlendClipAnimatorJob : public Qt3DCore::QAspectJob { @@ -75,6 +78,14 @@ protected: private: HBlendedClipAnimator m_blendClipAnimatorHandle; Handler *m_handler; + + void blendClips(ClipBlendNode *node, const BlendedClipAnimator::BlendNodeData &nodeData, + const AnimationUtils::AnimatorEvaluationData &animatorEvaluationData); + void blendNodes(ClipBlendNode *node, const BlendedClipAnimator::BlendNodeData &nodeData); + + QHash<ClipBlendNode *, QVector<float>> m_clipBlendResultsTable; + int m_currentLoop; + bool m_isFinalFrame; }; typedef QSharedPointer<EvaluateBlendClipAnimatorJob> EvaluateBlendClipAnimatorJobPtr; |