Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | ////////////////////////////////////////////////////////////////////////////// |
2 | // |
||
3 | // Copyright (C) Microsoft Corporation. All Rights Reserved. |
||
4 | // |
||
5 | // File: d3dx9.h |
||
6 | // Content: D3DX utility library |
||
7 | // |
||
8 | ////////////////////////////////////////////////////////////////////////////// |
||
9 | |||
10 | #ifdef __D3DX_INTERNAL__ |
||
11 | #error Incorrect D3DX header used |
||
12 | #endif |
||
13 | |||
14 | #ifndef __D3DX9_H__ |
||
15 | #define __D3DX9_H__ |
||
16 | |||
17 | |||
18 | // Defines |
||
19 | #include <limits.h> |
||
20 | |||
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) |
||
26 | |||
27 | #ifndef D3DXINLINE |
||
28 | #ifdef _MSC_VER |
||
29 | #if (_MSC_VER >= 1200) |
||
30 | #define D3DXINLINE __forceinline |
||
31 | #else |
||
32 | #define D3DXINLINE __inline |
||
33 | #endif |
||
34 | #else |
||
35 | #ifdef __cplusplus |
||
36 | #define D3DXINLINE inline |
||
37 | #else |
||
38 | #define D3DXINLINE |
||
39 | #endif |
||
40 | #endif |
||
41 | #endif |
||
42 | |||
43 | |||
44 | |||
45 | // Includes |
||
46 | #include "d3d9.h" |
||
47 | #include "d3dx9math.h" |
||
48 | #include "d3dx9core.h" |
||
49 | #include "d3dx9xof.h" |
||
50 | #include "d3dx9mesh.h" |
||
51 | #include "d3dx9shader.h" |
||
52 | #include "d3dx9effect.h" |
||
53 | #include "d3dx9tex.h" |
||
54 | #include "d3dx9shape.h" |
||
55 | #include "d3dx9anim.h" |
||
56 | |||
57 | |||
58 | // Errors |
||
59 | #define _FACDD 0x876 |
||
60 | #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) |
||
61 | |||
62 | enum _D3DXERR { |
||
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), |
||
72 | }; |
||
73 | |||
74 | |||
75 | #endif //__D3DX9_H__ |
||
76 |