C4 Engine
C4 Engine API Documentation

Interpolator::SetMode

Defined in:  C4Time.h
Sets the current mode for an interpolator.
Prototype

void SetMode(uint32 mode);

Parameters
mode The new interpolator mode.
Description
The SetMode function sets the interpolator mode to the value specified by the mode parameter. This value can be a combination (through logical OR) of the following constants.
kInterpolatorStop The interpolator is stopped.
kInterpolatorForward The interpolator is moving forward. Only one of kInterpolatorForward and kInterpolatorBackward may be set.
kInterpolatorBackward The interpolator is moving backward. Only one of kInterpolatorForward and kInterpolatorBackward may be set.
kInterpolatorLoop The interpolator is loops in the same direction when it reaches the maximum or minimum value.
kInterpolatorOscillate The interpolator reverses direction when it reaches the maximum value. If kInterpolatorLoop is also set, the interpolator reverses direction when it reaches the minimum value as well.
See Also

Interpolator::GetMode