Refactored seek method a bit in the FFmpegReader, to fix some bugs. Also, being changing the cache object again, on how it cleans up pointers. Some debug code is checked in also.

This commit is contained in:
Jonathan Thomas
2012-10-10 17:27:46 -05:00
parent b7792b04d8
commit cebf9728c8
8 changed files with 80 additions and 67 deletions

View File

@@ -74,6 +74,16 @@ void Keyframe::AddPoint(float x, float y)
AddPoint(new_point);
}
// Add a new point on the key-frame, with a specific interpolation type
void Keyframe::AddPoint(float x, float y, Interpolation_Type interpolate)
{
// Create a point
Point new_point(x, y, interpolate);
// Add the point
AddPoint(new_point);
}
// Set the handles, used for smooth curves. The handles are based
// on the surrounding points.
void Keyframe::SetHandles(Point current)