DirectX SDK

CONST_D3DCAPSTEXTURE

The CONST_D3DCAPSTEXTURE enumeration defines texturing capability flags that are combined and present in the lTextureCaps member of the D3DPRIMCAPS type.

Enum CONST_D3DCAPSTEXTURE {
    D3DPTEXTURECAPS_ALPHA = 4
    D3DPTEXTURECAPS_BORDER = 16
    D3DPTEXTURECAPS_COLORKEYBLEND = 4096
    D3DPTEXTURECAPS_CUBEMAP = 1024
    D3DPTEXTURECAPS_NONPOW2CONDITIONAL = 256
    D3DPTEXTURECAPS_PERSPECTIVE = 1
    D3DPTEXTURECAPS_POW2 = 2
    D3DPTEXTURECAPS_SQUAREONLY = 32
    D3DPTEXTURECAPS_TRANSPARENCY = 8
End Enum
D3DPTEXTURECAPS_ALPHA
Supports RGBA textures in the D3DTEX_DECAL and D3DTEX_MODULATE texture filtering modes. If this capability is not set, then only RGB textures are supported in those modes. Regardless of the setting of this flag, alpha must always be supported in D3DTEX_DECAL_MASK, D3DTEX_DECAL_ALPHA, and D3DTEX_MODULATE_ALPHA filtering modes whenever those filtering modes are available.
D3DPTEXTURECAPS_ALPHAPALETTE
Supports palettized texture surfaces whose palettes contain alpha information (see DDPCAPS_ALPHA in the DDCAPS type).
D3DPTEXTURECAPS_COLORKEYBLEND
The device supports alpha-blended colorkeying through the use of the D3DRENDERSTATE_COLORKEYBLENDENABLE render state.
D3DPTEXTURECAPS_CUBEMAP
Supports cubic environment mapping.
D3DPTEXTURECAPS_BORDER
Superseded by D3DPTADDRESSCAPS_BORDER.
D3DPTEXTURECAPS_PERSPECTIVE
Perspective correction is supported.
D3DPTEXTURECAPS_PROJECTED
Supports the D3DTTFF_PROJECTED texture transformation flag. When applied, the device divides transformed texture coordinates by the last texture coordinate.
D3DPTEXTURECAPS_NONPOW2CONDITIONAL
Conditionally supports the use of textures with dimensions that are not powers of two. A device that exposes this capability can use such a texture if all of the following requirements are met.
D3DPTEXTURECAPS_POW2
All nonmipmapped textures must have widths and heights specified as powers of two if this flag is set. (Note that all mipmapped textures must always have dimensions that are powers of two.)
D3DPTEXTURECAPS_SQUAREONLY
All textures must be square.
D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE
Texture indices are not scaled by the texture size prior to interpolation.
D3DPTEXTURECAPS_TRANSPARENCY
Texture transparency is supported. (Only those texels that are not the current transparent color are drawn.)