Other D3DX Constants
Microsoft DirectX 9.0 SDK Update (October 2004)

Other D3DX Constants


Other D3DX constants include the following:

16-Bit Floating Point Numbers

#defineValueDescription
D3DX_16F_DIG3Number of decimal digits of precision
D3DX_16F_EPSILON4.8875809e-4fSmallest such that 1.0 + epsilon != 1.0
D3DX_16F_MANT_DIG11Number of bits in mantissa
D3DX_16F_MAX6.5519996e+4fMaximum value
D3DX_16F_MAX_10_EXP4Maximum decimal exponent
D3DX_16F_MAX_EXP15Maximum binary exponent
D3DX_16F_MIN6.1035156e-5fMinimum positive value
D3DX_16F_MIN_10_EXP(-4)Minimum decimal exponent
D3DX_16F_MIN_EXP(-12)Minimum binary exponent
D3DX_16F_RADIX2Exponent radix
D3DX_16F_ROUNDS1Addition rounding: near
D3DX_1BYPI((FLOAT) 0.318309886f)1/pi
D3DX_PI((FLOAT) 3.141592654f)pi

These #defines are declared in D3dx9math.h.

PRT Constants

#defineValueDescription
D3DXSH_MINORDER2Lowest allowable order of the simulation.
D3DXSH_MAXORDER6Highest allowable order of the simulation.

These #defines are declared in D3dx9math.h. For more about precomputed radiance transfer (PRT), see Precomputed Radiance Transfer.

Texture Constants

#defineDescription
D3DFMT_FROM_FILETake the format exactly from a file.
D3DX_DEFAULTA default value.
D3DX_DEFAULT_NONPOW2Do not round up numbers such as width or height to a power of two.
D3DX_FROM_FILETake the texture dimensions exactly from a file.

These #defines are declared in D3dx9.h.

Internal Use Constants

The following constants are used internally:

#defineValue
UNUSED160xffff
UNUSED320xffffffff

These #defines are declared in D3dx9mesh.h.

#defineValue
D3DX_VERSION0x0902
D3DX_SDK_VERSION22

These #defines are declared in D3dx9core.h.

#defineValue
D3DX_DEFAULT_FLOATFLT_MAX

This #defines is declared in D3dx9.h.

Constant Information

Minimum operating systemWindows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.