DirectX SDK

D3DTEXTUREMINFILTER

The D3DTEXTUREMINFILTER enumerated type defines texture-minification filtering modes for a texture stage.

typedef enum _D3DTEXTUREMINFILTER {
    D3DTFN_POINT        = 1,
    D3DTFN_LINEAR       = 2,
    D3DTFN_ANISOTROPIC  = 3,
    D3DTFN_FORCE_DWORD  = 0x7fffffff,
} D3DTEXTUREMINFILTER; 
D3DTFN_POINT
Point filtering. The texel with coordinates nearest to the desired pixel value is used.
D3DTFN_LINEAR
Bilinear interpolation filtering. A weighted average of a 2×2 area of texels surrounding the desired pixel is used.
D3DTFN_ANISOTROPIC
Anisotropic texture filtering. Compensates for distortion caused by the difference in angle between the texture polygon and the plane of the screen.
D3DTFN_FORCE_DWORD
Forces this enumeration to compile to 32 bits in size. This value is not used.

Remarks

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

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 6.0 or later.
  Header: Declared in d3dtypes.h.

See Also

D3DTEXTUREMAGFILTER, D3DTEXTUREMIPFILTER, Texture Filtering