implemented full bezier interpolation for keyframes
This commit is contained in:
+11
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user