Microsoft DirectX 8.0

MP_CURVE_TYPE Enumeration

Enumerated Types

Defines the curve that a media parameter follows within an envelope segment.

Syntax

typedef enum _MP_CURVE_TYPE {
    MP_CURVE_JUMP       = 0x0001, 
    MP_CURVE_LINEAR     = 0x0002, 
    MP_CURVE_SQUARE     = 0x0004, 
    MP_CURVE_INVSQUARE  = 0x0008, 
    MP_CURVE_SINE       = 0x0010, 
    MP_CURVE_CURRENTVAL = 0x8000,
} MP_CURVE_TYPE;

Elements

MP_CURVE_JUMP
No interpolation. Jump to the next point.
MP_CURVE_LINEAR
Linear interpolation.
MP_CURVE_SQUARE
Parabolic curve.
MP_CURVE_INVSQUARE
Inverse square curve.
MP_CURVE_SINE
Sine curve.
MP_CURVE_CURRENTVAL
Ignore the start value specified for this segment. Start from the final value of the previous segment.

Remarks

The following table lists the defined curves and their mathematical equivalents.

ValueCurve to FitRange
MP_CURVE_LINEARy = x0.0 – 1.0
MP_CURVE_SQUAREy = x20.0 – 1.0
MP_CURVE_INVSQUAREy = 1 – x20.0 – 1.0
MP_CURVE_SINEy = sin(x)π/2 – π/2

For Boolean and enumeration parameters, only MP_CURVE_JUMP is valid.

See Also

MP_ENVELOPE