D3DMCMPFUNC
A version of this page is also available for
4/8/2010
This enumeration provides values that identify comparison functions for various render states. For more information, see D3DMRENDERSTATETYPE.
Syntax
typedef enum _D3DMCMPFUNC {
D3DMCMP_NEVER = 1,
D3DMCMP_LESS = 2,
D3DMCMP_EQUAL = 3,
D3DMCMP_LESSEQUAL = 4,
D3DMCMP_GREATER = 5,
D3DMCMP_NOTEQUAL = 6,
D3DMCMP_GREATEREQUAL = 7,
D3DMCMP_ALWAYS = 8,
D3DMCMP_FORCE_ULONG = 0x7fffffff,
} D3DMCMPFUNC;
Elements
- D3DMCMP_NEVER
The comparison is always FALSE.
- D3DMCMP_LESS
The comparison is TRUE if the input value is less than the reference value.
- D3DMCMP_EQUAL
The comparison is TRUE if the input value and reference value are equal.
- D3DMCMP_LESSEQUAL
The comparison is TRUE if the input value is less than or equal to the reference value.
- D3DMCMP_GREATER
The comparison is TRUE if the input value is greater than the reference value.
- D3DMCMP_NOTEQUAL
The comparison is TRUE if the input value is not equal to the reference value.
- D3DMCMP_GREATEREQUAL
The comparison is TRUE if the input value is greater than or equal to the reference value.
- D3DMCMP_ALWAYS
The comparison is always TRUE.
- D3DMCMP_FORCE_ULONG
Forces the compiler to interpret the enumeration as a ULONG value. This value is not used directly in Direct3D Mobile programming.
Remarks
Values from this enumeration are used in the D3DMRS_ZFUNC render state.
Requirements
Header | d3dmtypes.h |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
Direct3D Mobile Enumerations
D3DMRENDERSTATETYPE