implemented full bezier interpolation for keyframes

This commit is contained in:
itsmattkc
2019-01-03 21:52:01 +11:00
parent 215c784f8e
commit 30933cbfcd
25 changed files with 1311 additions and 1071 deletions
+11 -7
View File
@@ -1,17 +1,21 @@
#ifndef KEYFRAME_H
#define KEYFRAME_H
#include <QVariant>
#include <QPoint>
class KeyframeData
{
class EffectKeyframe {
public:
EffectKeyframe();
long time;
int type;
QVariant data;
QPoint handle_pre;
QPoint handle_post;
// only for bezier type
double pre_handle_x;
double pre_handle_y;
double post_handle_x;
double post_handle_y;
};
#endif // KEYFRAME_H