![]() |
![]() |
![]() |
Other D3DX constants include the following:
#define | Value | Description |
---|---|---|
D3DX_16F_DIG | 3 | Number of decimal digits of precision |
D3DX_16F_EPSILON | 4.8875809e-4f | Smallest such that 1.0 + epsilon != 1.0 |
D3DX_16F_MANT_DIG | 11 | Number of bits in mantissa |
D3DX_16F_MAX | 6.5519996e+4f | Maximum value |
D3DX_16F_MAX_10_EXP | 4 | Maximum decimal exponent |
D3DX_16F_MAX_EXP | 15 | Maximum binary exponent |
D3DX_16F_MIN | 6.1035156e-5f | Minimum positive value |
D3DX_16F_MIN_10_EXP | (-4) | Minimum decimal exponent |
D3DX_16F_MIN_EXP | (-12) | Minimum binary exponent |
D3DX_16F_RADIX | 2 | Exponent radix |
D3DX_16F_ROUNDS | 1 | Addition rounding: near |
D3DX_1BYPI | ((FLOAT) 0.318309886f) | 1/pi |
D3DX_PI | ((FLOAT) 3.141592654f) | pi |
These #defines are declared in D3dx9math.h.
#define | Value | Description |
---|---|---|
D3DXSH_MINORDER | 2 | Lowest allowable order of the simulation. |
D3DXSH_MAXORDER | 6 | Highest allowable order of the simulation. |
These #defines are declared in D3dx9math.h. For more about precomputed radiance transfer (PRT), see Precomputed Radiance Transfer.
#define | Description |
---|---|
D3DFMT_FROM_FILE | Take the format exactly from a file. |
D3DX_DEFAULT | A default value. |
D3DX_DEFAULT_NONPOW2 | Do not round up numbers such as width or height to a power of two. |
D3DX_FROM_FILE | Take the texture dimensions exactly from a file. |
These #defines are declared in D3dx9.h.
The following constants are used internally:
#define | Value |
---|---|
UNUSED16 | 0xffff |
UNUSED32 | 0xffffffff |
These #defines are declared in D3dx9mesh.h.
#define | Value |
---|---|
D3DX_VERSION | 0x0902 |
D3DX_SDK_VERSION | 22 |
These #defines are declared in D3dx9core.h.
#define | Value |
---|---|
D3DX_DEFAULT_FLOAT | FLT_MAX |
This #defines is declared in D3dx9.h.
Minimum operating system | Windows 98 |
---|