d3d_caps

This variable contains information about the capabilities of the 3D hardware device. It is the sum of several flags that can be checked individually through AND (&) comparisions:

Range:

1  - Device supports rasterization, transform, lighting in hardware (Hardware T&L).
2  - Device supports rasterization, transform, lighting, and shading in hardware.
- Device supports stencil shadows.
8  - Device supports compressed textures (DDS).
16 - Device supports cubic environment mapping.
32 - Device supports user clip planes for mirrors.

Type:

var, read-only

Remarks:

Example:

if (d3d_caps & 16) // cubic environment mapping
{
	bmap_to_cube(bmSky);
}

See also:

d3d_shaderversion ► latest version online