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.
4 - 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:
- More detailed information about the capabilities of the 3D hardware
device can be obtained by evaluating the ev->pd3dcaps variable
in a plugin.
- Today's 3D hardware normally supports all of the above flags.
Example:
if (d3d_caps & 16) // cubic environment mapping
{
bmap_to_cube(bmSky);
}
See also:
d3d_shaderversion
► latest
version online