Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

Other D3DX Constants

Other D3DX constants include the following:

16-Bit Floating Point Numbers

D3DX_16F_DIGNumber of decimal digits of precision
D3DX_16F_EPSILONSmallest such that 1.0 + epsilon != 1.0
D3DX_16F_MANT_DIGNumber of bits in mantissa
D3DX_16F_MAXMaximum value
D3DX_16F_MAX_10_EXPMaximum decimal exponent
D3DX_16F_MAX_EXPMaximum binary exponent
D3DX_16F_MINMinimum positive value
D3DX_16F_MIN_10_EXPMinimum decimal exponent
D3DX_16F_MIN_EXPMinimum binary exponent
D3DX_16F_RADIXExponent radix
D3DX_16F_ROUNDSAddition rounding: near
D3DX_DEFAULT_FLOATMaximum float value


These #defines are declared in d3dx9.h and d3dx9math.h.

PRT Constants

D3DXSH_MINORDERLowest allowable order of the simulation.
D3DXSH_MAXORDERHighest allowable order of the simulation.


These #defines are declared in d3dx9math.h. For more about PRT, see Precomputed Radiance Transfer (Direct3D 9).

Texture Constants

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.

Other D3DX Constants

The UNUSED16 and D3DX_VERSION constants defined in D3dx9mesh.h and D3dx9core.h are used internally. Do not use these constants.



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.