Microsoft DirectX 8.0

MP_TYPE Enumeration

Enumerated Types

Specifies the data type for a parameter.

Syntax

typedef enum _MP_Type {
    MPT_INT,
    MPT_FLOAT,
    MPT_BOOL,
    MPT_ENUM,
    MPT_MAX,						
} MP_TYPE;

Elements

MPT_INT
Value is a signed 32-bit integer.
MPT_FLOAT
Value is a 32-bit IEEE floating-point value.
MPT_BOOL
Value is Boolean. Use the following constants for Boolean parameters:
ConstantDescription
MP_DATA MPBOOL_TRUETRUE
MP_DATA MPBOOL_FALSEFALSE
MPT_ENUM
Value is taken from a set of consecutive integers.
MPT_MAX
Reserved.

Remarks

To reduce type conversions at run time, all parameters have 32-bit float values, defined as type MP_DATA. The members of this enumeration specify how a given parameter should be interpreted.

See Also

MP_PARAMINFO