mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-15 19:07:17 +02:00
24 lines
689 B
C
24 lines
689 B
C
//
|
|
// AnimUtil.h
|
|
//
|
|
// Created by Anthony J. Thibault on 9/2/15.
|
|
// Copyright (c) 2015 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_AnimUtil_h
|
|
#define hifi_AnimUtil_h
|
|
|
|
#include "AnimNode.h"
|
|
|
|
// this is where the magic happens
|
|
void blend(size_t numPoses, const AnimPose* a, const AnimPose* b, float alpha, AnimPose* result);
|
|
|
|
float accumulateTime(float startFrame, float endFrame, float timeScale, float currentFrame, float dt, bool loopFlag,
|
|
const QString& id, AnimNode::Triggers& triggersOut);
|
|
|
|
#endif
|
|
|
|
|