D3DMTEXTUREFILTERTYPE (Windows CE 5.0)

Send Feedback

This enumeration provides values for the texture stage states used for texture filtering and for mipmaps. The applicable texture stage states are D3DMTSS_MAGFILTER, D3DMTSS_MINFILTER, and D3DMTSS_MIPFILTER (see D3DMTEXTURESTAGESTATETYPE).

typedef enum _D3DMTEXTUREFILTERTYPE {  D3DMTEXF_NONE        = 0,  D3DMTEXF_POINT       = 1,  D3DMTEXF_LINEAR      = 2,  D3DMTEXF_ANISOTROPIC = 3,  D3DMTEXF_FORCE_ULONG = 0x7fffffff,} D3DMTEXTUREFILTERTYPE;

Elements

  • D3DMTEXF_NONE
    Identifies that filtering is disabled. This value is only valid for D3DMTSS_MIPFILTER.
  • D3DMTEXF_POINT
    Identifies that the color value at the nearest texel corresponding to the texture coordinate is used.
  • D3DMTEXF_LINEAR
    Identifies that the nearest texel — plus the texels immediately above, below, left, and right of the nearest texel — are used in a weighted average.
  • D3DMTEXF_ANISOTROPIC
    Identifies that anisotropic filtering is used. Anisotropic filtering is a variant of linear filtering that compensates for the orientation of the primitive verses the orientation of screen space. Anisotropic filtering uses a constant, which is the maximum allowed anisotropy. This unsigned integer constant is set on a per stage basis by the texture stage state D3DMTSS_MAXANISOTROPY. The value of 1 causes all computations to be disabled and the results are identical to linear filtering.
  • D3DMTEXF_FORCE_ULONG
    Forces the compiler to interpret the enumeration as a ULONG value. This value is not used directly in Direct3D Mobile programming.

Remarks

Set a texture stage's magnification filter by calling the IDirect3DMobileDevice::SetTextureStageState method with the D3DMTSS_MAGFILTER value as the second parameter and one member of this enumeration as the third parameter.

Set a texture stage's minification filter by calling IDirect3DMobileDevice::SetTextureStageState with the D3DMTSS_MINFILTER value as the second parameter and one member of this enumeration as the third parameter.

Set the texture filter to use between mipmap levels by calling IDirect3DMobileDevice::SetTextureStageState with the D3DMTSS_MIPFILTER value as the second parameter and one member of this enumeration as the third parameter.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: D3dmtypes.h.

See Also

Direct3D Mobile Enumerations | D3DMTEXTURESTAGESTATETYPE | IDirect3DMobileDevice::SetTextureStageState

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.