1 //////////////////////////////////////////////////////////////////////////////
3 // Copyright (C) Microsoft Corporation. All Rights Reserved.
6 // Content: D3DX utility library
8 //////////////////////////////////////////////////////////////////////////////
10 #ifdef __D3DX_INTERNAL__
11 #error Incorrect D3DX header used
21 #define D3DX_DEFAULT ((UINT) -1)
22 #define D3DX_DEFAULT_NONPOW2 ((UINT) -2)
23 #define D3DX_DEFAULT_FLOAT FLT_MAX
24 #define D3DX_FROM_FILE ((UINT) -3)
25 #define D3DFMT_FROM_FILE ((D3DFORMAT) -3)
29 #if (_MSC_VER >= 1200)
30 #define D3DXINLINE __forceinline
32 #define D3DXINLINE __inline
36 #define D3DXINLINE inline
47 #include "d3dx9math.h"
48 #include "d3dx9core.h"
50 #include "d3dx9mesh.h"
51 #include "d3dx9shader.h"
52 #include "d3dx9effect.h"
54 #include "d3dx9shape.h"
55 #include "d3dx9anim.h"
60 #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
63 D3DXERR_CANNOTMODIFYINDEXBUFFER
= MAKE_DDHRESULT(2900),
64 D3DXERR_INVALIDMESH
= MAKE_DDHRESULT(2901),
65 D3DXERR_CANNOTATTRSORT
= MAKE_DDHRESULT(2902),
66 D3DXERR_SKINNINGNOTSUPPORTED
= MAKE_DDHRESULT(2903),
67 D3DXERR_TOOMANYINFLUENCES
= MAKE_DDHRESULT(2904),
68 D3DXERR_INVALIDDATA
= MAKE_DDHRESULT(2905),
69 D3DXERR_LOADEDMESHASNODATA
= MAKE_DDHRESULT(2906),
70 D3DXERR_DUPLICATENAMEDFRAGMENT
= MAKE_DDHRESULT(2907),
71 D3DXERR_CANNOTREMOVELASTITEM
= MAKE_DDHRESULT(2908),