Files
BlitzNext/Runtime/blitz3d/animation.hpp
T
Michael Fabian 'Xaymar' Dirks 3afa84df85 runtime/blitz3d: Fixup C++ification
2019-01-18 21:26:42 +01:00

31 lines
622 B
C++

#pragma once
#include "geom.hpp"
class Animation {
public:
Animation();
Animation(const Animation& t);
Animation(const Animation& t, int first, int last);
~Animation();
Animation& operator=(const Animation& t);
void setScaleKey(int frame, const Vector& q);
void setPositionKey(int frame, const Vector& p);
void setRotationKey(int frame, const Quat& q);
int numScaleKeys() const;
int numRotationKeys() const;
int numPositionKeys() const;
Vector getScale(float time) const;
Vector getPosition(float time) const;
Quat getRotation(float time) const;
private:
struct Rep;
Rep* rep;
Rep* write();
};