| SetMode
Changes the type of fade used.
bSuccess = mySquash.SetMode( Type )
Return value
TRUE if successful, otherwise FALSE.
Parameters
- Type
Pointer to a distortion function; This can be one of your own (takes 3 surfaces (target, oldFrame, newFrame) and a value from 0 to 1 and applies the desired effect to the target) or one of the following:
- Squash_BookLeft
The effect of a book opening / closing to the left
- Squash_BookRight
The effect of a book opening / closing to the right
- Squash_BookUp
The effect of a book opening / closing to the top
- Squash_BookDown
The effect of a book opening / closing to the bottom
Comments
When making your own effect, the function should be in the form:
function MyFade( sTarget, sOld, sNew, pos )
sTarget is the target surface to draw to, sOld is the old frame, sNew is the new frame and pos is the time from 0.0 to 1.0
See also
Squash:GetMode
JAM © 2005 no one in particular Project started by David Evans in 2005 | |