port from perforce

This commit is contained in:
2026-04-18 22:31:51 +02:00
commit 8d0ab5b7cc
8409 changed files with 3972376 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include "ITransformationAnimation.h"
#include "IEngine.h"
class TransformationAnimation
: public ITransformationAnimation
{
public:
TransformationAnimation(IEngine& argEngine);
virtual ~TransformationAnimation();
virtual std::wstring get_Name() const;
virtual void AddKeyFrame(const KeyFrame& argKeyFrame);
virtual float get_Duration() const;
virtual D3DXMATRIX GetTransformationAtTime(float argTime);
protected:
std::map<float, KeyFrame>::const_iterator FindLowerBoundKey(float argTime, KeyFrameTarget::Enumeration argTarget) const;
std::map<float, KeyFrame>::const_iterator FindUpperBoundKey(float argTime, KeyFrameTarget::Enumeration argTarget) const;
private:
IEngine& m_Engine;
string16 m_Name;
std::map<float, KeyFrame> m_Keys[3];
};