CONST_D3DPTEXTURECAPSFLAGS
Defines miscellaneous texture-mapping capabilities.
Enum CONST_D3DPTEXTURECAPSFLAGS
D3DPTEXTURECAPS_PERSPECTIVE = 1
D3DPTEXTURECAPS_POW2 = 2
D3DPTEXTURECAPS_ALPHA = 4
D3DPTEXTURECAPS_SQUAREONLY = 32 (&H20)
D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE = 64 (&H40)
D3DPTEXTURECAPS_ALPHAPALETTE = 128 (&H80)
D3DPTEXTURECAPS_NONPOW2CONDITIONAL = 256 (&H100)
D3DPTEXTURECAPS_PROJECTED = 1024 (&H400)
D3DPTEXTURECAPS_CUBEMAP = 2048 (&H800)
D3DPTEXTURECAPS_VOLUMEMAP = 8192 (&H2000)
D3DPTEXTURECAPS_MIPMAP = 16384 (&H4000)
D3DPTEXTURECAPS_MIPVOLUMEMAP = 32768 (&H8000)
D3DPTEXTURECAPS_MIPCUBEMAP = 65536 (&H10000)
D3DPTEXTURECAPS_CUBEMAP_POW2 = 131072 (&H20000)
D3DPTEXTURECAPS_VOLUMEMAP_POW2 = 262144 (&H40000)
End Enum
Constants
- D3DPTEXTURECAPS_PERSPECTIVE
- texturing is supported.
- D3DPTEXTURECAPS_POW2
- All textures must have widths and heights specified as powers of 2. This requirement does not apply to either cube textures or volume textures.
- D3DPTEXTURECAPS_ALPHA
- Alpha in texture pixels is supported.
- D3DPTEXTURECAPS_SQUAREONLY
- All textures must be square.
- D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE
- Texture indices are not scaled by the texture size prior to interpolation.
- D3DPTEXTURECAPS_ALPHAPALETTE
- Device can draw alpha from texture palettes.
- D3DPTEXTURECAPS_NONPOW2CONDITIONAL
- Conditionally supports the use of textures with dimensions that are not powers of 2. A device that exposes this capability can use such a texture if all of the following requirements are met.
- The texture addressing mode for the texture stage is set to D3DTADDRESS_CLAMP.
- Texture wrapping for the texture stage is disabled (D3DRS_WRAPn set to 0).
- Mipmapping is not in use (use magnification filter only).
- D3DPTEXTURECAPS_PROJECTED
- Supports the D3DTTFF_PROJECTED texture transformation flag. When applied, the device divides transformed texture coordinates by the last texture coordinate. If this capability is supported then the projective divide happens on a per pixel basis. If this capability is not set and the application still wants the projective divide to happen, then it happens on a per-vertex basis by the Direct3D runtime.
- D3DPTEXTURECAPS_CUBEMAP
- Supports cube textures.
- D3DPTEXTURECAPS_VOLUMEMAP
- Device supports volume textures.
- D3DPTEXTURECAPS_MIPMAP
- Device supports mipmapped textures.
- D3DPTEXTURECAPS_MIPVOLUMEMAP
- Device supports mipmapped volume textures.
- D3DPTEXTURECAPS_MIPCUBEMAP
- Device supports mipmapped cube textures.
- D3DPTEXTURECAPS_CUBEMAP_POW2
- Device requires that cube texture maps have dimensions specified as powers of 2.
- D3DPTEXTURECAPS_VOLUMEMAP_POW2
- Device requires that volume texture maps have dimensions specified as powers of 2.
Remarks
These flags may be combined and present in the TextureCaps member of D3DCAPS8.
See Also
D3DCAPS8