Commit Graph
9 Commits
Author SHA1 Message Date
Glenn Maynard 617e8b5335 FOREACH_ENUM2 -> FOREACH_ENUM 2006-10-07 08:56:58 +00:00
Glenn Maynard 2eca7b670c use FOREACH_ENUM2 2006-09-27 05:18:47 +00:00
Glenn Maynard 8644ab382d missing header 2006-09-26 08:25:14 +00:00
Glenn Maynard 444dd8afbb update binding 2006-09-26 07:01:39 +00:00
Glenn Maynard b2a67c4340 TweenType_Invalid 2006-09-26 06:48:30 +00:00
Glenn Maynard 550c9fd938 cleanup, comment 2006-07-24 06:03:00 +00:00
Glenn Maynard 82f56ff696 Tween.cpp:29: warning: ‘struct TweenLinear’ has virtual functions but non-virtual destructor 2006-01-25 05:14:06 +00:00
Glenn Maynard 3da3825e20 remove TWEEN_SMOOTH. Use Bezier. 2006-01-23 06:53:11 +00:00
Glenn Maynard a62788fb9f Split out tween weighting functions. Add tweening from 1d and 2d
bezier curves.

The "bouncebegin" and "bounceend" tweens are now implemented in Lua,
using 2D beziers which approximate the old behavior very closely.
Added "ease" tween, which works like Flash's.

Custom tweens can be used, passing in a table of 4 values for a
1D bezier, or 8 values for 2D.

   tween,.5,TweenBezier,{ 0, p1, p2, 1 }
   tween,.5,TweenBezier,{ 0, 0, x1, y1, x2, y2, 1, 1 }

As with all tweens, the first parameter is the duration.

The 1D bezier { a, b, c, d } is equivalent to the 2D bezier
{ 0, a, 1/3, b, 2/3, c, 1, d }, but a 1D bezier is more efficient.
2006-01-23 05:48:40 +00:00