Commit Graph

9 Commits

Author SHA1 Message Date
Steve Checkoway e87789da7c Rename XToString2 to XToString. 2006-10-15 00:09:18 +00:00
Glenn Maynard 1c8188cf21 XToString 2006-09-27 06:06:36 +00:00
Steve Checkoway 003454ccfd Deprecated. Note that lua_objlen() doesn't actually return the number of elements in the table. It simply evaluates the new # operator which will return the first integer n such that t[n] is not nil and t[n+1] is nil. Note that this means that this is only useful for tables which have no "holes" and integer indexes (starting at 1).
If you really want the table size, you have to walk the whole table (using next() or pairs() in Lua or lua_next() in C).
2006-09-26 09:13:11 +00:00
Glenn Maynard 50a5d55383 fix gcc compile 2006-09-26 08:38:57 +00:00
Glenn Maynard 444dd8afbb update binding 2006-09-26 07:01:39 +00:00
Glenn Maynard 5595cd0443 typo 2006-09-26 06:56:39 +00:00
Glenn Maynard 57e544385d remove comment about code that's not there anymore 2006-09-07 03:52:10 +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