Added the initial timeline and clip classes, with some of the initial curves and constructors.

This commit is contained in:
Jonathan Thomas
2012-10-03 01:55:24 -05:00
parent be3519558b
commit e96bd5ba98
12 changed files with 225 additions and 2 deletions

View File

@@ -33,6 +33,15 @@ void Keyframe::ReorderPoints() {
}
}
// Constructor which sets the default point & coordinate at X=0
Keyframe::Keyframe(float value) : Auto_Handle_Percentage(0.4f) {
// Init the factorial table, needed by bezier curves
CreateFactorialTable();
// Add initial point
AddPoint(Point(value));
}
/// Keyframe constructor
Keyframe::Keyframe() : Auto_Handle_Percentage(0.4f) {
// Init the factorial table, needed by bezier curves