3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 06:55:39 +02:00

Baby steps toward new animation system

* AnimNode pure virtual base class for all animation nodes.
* AnimClip playback of a single FBX animation.
This commit is contained in:
Anthony J. Thibault 2015-07-30 18:40:48 -07:00
parent 9af6b00403
commit 836cdeb103
2 changed files with 45 additions and 0 deletions
libraries/animation/src

View file

@ -0,0 +1,26 @@
//
// AnimClip.h
//
// Copyright 2015 High Fidelity, Inc.
//
// 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_AnimClip_h
#define hifi_AnimClip_h
class AnimClip : public AnimNode {
void setURL(const std::string& url);
void setStartFrame(AnimFrame startFrame);
void setEndFrame(AnimFrame startFrame);
void setLoopFlag(bool loopFlag);
void setTimeScale(float timeScale);
public:
virtual const float getEnd() const;
virtual const AnimPose& evaluate(float t);
};
#endif // hifi_AnimClip_h

View file

@ -0,0 +1,19 @@
//
// AnimInterface.h
//
// Copyright 2015 High Fidelity, Inc.
//
// 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_AnimNode_h
#define hifi_AnimNode_h
class AnimNode {
public:
virtual float getEnd() const = 0;
virtual const AnimPose& evaluate(float t) = 0;
};
#endif // hifi_AnimNode_h