D3DMTEXTUREADDRESS (Windows Embedded CE 6.0)
1/6/2010
This enumeration provides values that identify texture coordinate addressing modes.
Syntax
typedef enum _D3DMTEXTUREADDRESS {
D3DMTADDRESS_WRAP = 1,
D3DMTADDRESS_MIRROR = 2,
D3DMTADDRESS_CLAMP = 3,
D3DMTADDRESS_BORDER = 4,
D3DMTADDRESS_FORCE_ULONG = 0x7fffffff
} D3DMTEXTUREADDRESS;
Elements
- D3DMTADDRESS_WRAP
Indicates that coordinates are mapped into the range of 0.0 to 1.0 as if the texture map was replicated at every integer junction. For example, for values between 0 and 3, the texture is repeated three times. No mirroring is performed.
- D3DMTADDRESS_MIRROR
Indicates that the coordinates are mapped into the range of 0.0 to 1.0 as if the texture map was replicated at every integer junction, and every other map was mirrored in the direction of the texture coordinate. For example, for values between 0 and 3, 0 to 1 are normal, 1 to 2 map to 1 to 0 (respectively) and 2 to 3 maps back to 0 to 1.
- D3DMTADDRESS_CLAMP
Indicates that coordinates outside of the range of 0.0 to 1.0 are set to either 1 or 0, depending if they are greater than 1 or less and 0, respectfully.
- D3DMTADDRESS_BORDER
Indicates that coordinates outside of the range of 0.0 to 1.0 always result in the border color being read. The border color is controlled via the D3DMTSS_BORDERCOLOR texture stage state. For more information, see D3DMTEXTURESTAGESTATETYPE. This texture stage state accepts 32-bit ARGB color values.
- D3DMTADDRESS_FORCE_ULONG
Forces the compiler to interpret the enumeration as a ULONG value. This value is not used directly in Direct3D Mobile programming.
Requirements
Header | d3dmtypes.h |
Windows Embedded CE | Windows CE 5.0 and later |