Commit Graph
27 Commits
Author SHA1 Message Date
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
Glenn Maynard a56b7ac59b Declare these as const functions, like sinf and cosf. This fixes the compiler
not optimizing calls to these as well as sinf/cosf.
2005-07-28 02:47:51 +00:00
Chris Danford 32c3953726 "scale, rotate, translate", not "rotate, scale, translate". It's amazing that this is a day 1 bug. 2005-07-25 17:57:42 +00:00
Steve Checkoway 20118bc43a comment 2005-06-21 08:06:59 +00:00
Chris Danford 0ac5e2b008 add Skew for faux italic fonts 2005-05-02 21:43:27 +00:00
Chris Danford 7ca20486ef use sin lookup table to fix terrible performance with float and tipsy performance on some archs 2005-03-22 00:58:05 +00:00
Glenn Maynard bf80420cd8 short desc in the header, long desc in the implementation 2005-02-05 03:18:27 +00:00
Glenn Maynard 944bba77b6 I don't remember what RageMatrixCommand was for. Remove it. 2005-02-05 03:15:40 +00:00
Glenn Maynard 3e389c103b Translation and scaling (when applied in that order) are trivially combined;
save a matrix multiply for every actor.  (Maybe we can avoid doing any,
for objects which are neither rotated nor scaled--such as those positioned
based on their parent--but I'm not sure it's worth it.)  Rotations can be
combined without doing a full matrix multiply, too; if an actor rotates at all,
only do one matrix multiply.
2005-02-05 03:12:04 +00:00
Glenn Maynard aceff788bf remove wasteful and mostly unused matrix math helpers (pass by reference,
don't return by value)
2005-02-05 02:42:33 +00:00
Glenn Maynard 4595b7e34e simplify 2004-08-19 02:13:07 +00:00
Glenn Maynard f9f10e2372 more license updates 2004-05-06 02:40:33 +00:00
Chris Danford e3cc4e3ff5 cleanup Model, remove MathUtil files, fix col major/row major errors 2003-12-24 12:30:41 +00:00
Glenn Maynard 63106abd5e add regular RageQuatFromHPR and simple AABB functions 2003-12-20 03:51:25 +00:00
William Reading 2b02f13690 Guess these aren't needed after all.. 2003-07-05 01:09:29 +00:00
William Reading d310d0e252 Fix darwin math problems 2003-07-04 18:03:20 +00:00
Chris Danford f34d409d6e DDR-like camera motions for DancingCharacters 2003-06-07 22:20:39 +00:00
Chris Danford a75cd6e7b1 Fix D3D z-buffer problem by having separate GetOrthoMatrix functions for OGL and D3D.
I don't understand why the two APIs create an ortho matrix so differently, but I'm tried of messing with it for now.
2003-05-25 00:43:44 +00:00
Chris Danford 02016ae442 Reorganize RageDisplay
Add Direct3D renderer (separate project configuration)
Add Xbox project config (doesn't yet compile)
2003-05-22 05:28:37 +00:00
Glenn Maynard b2df827995 add quaternion math 2003-04-14 21:58:19 +00:00
Chris Danford d34102b717 scripting support in BGAnimations 2003-03-05 02:52:40 +00:00
Chris Danford 7d1c2ea22e removed dependency on plib, updated installer, fixed warnings 2003-01-08 04:16:39 +00:00
Glenn Maynard 2d7b9001b1 cleanups; remove commented out stuff that's not needed; fix broken
friend function (it's to make 3 * RageColor/Vector work like RageColor * 3,
but I don't know if anything uses it.)
2002-11-16 07:11:05 +00:00
Glenn Maynard 4fa74d7118 remove unused RageMatrixOrthoOffCenterLH 2002-11-15 08:15:15 +00:00
Glenn Maynard 9169da5b9d remove d3dx stuff 2002-11-15 08:07:26 +00:00
Glenn Maynard ea28757815 Use plib for some matrix ops, implement some others without
d3dx.  (Rest coming soon ...)
2002-11-13 03:54:20 +00:00
Chris Danford 73f7db6b15 Replaced most D3DX dependencies. Added Brendan's not-yet-functional networking code. 2002-10-28 05:30:45 +00:00