zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
d3dx9.h
Go to the documentation of this file.
1 //
3 // Copyright (C) Microsoft Corporation. All Rights Reserved.
4 //
5 // File: d3dx9.h
6 // Content: D3DX utility library
7 //
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 
54 #include "d3dx9tex.h"
55 #include "d3dx9shape.h"
56 #include "d3dx9anim.h"
57 
58 
59 
60 // Errors
61 #define _FACDD 0x876
62 #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
63 
64 enum _D3DXERR {
65  D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900),
66  D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901),
67  D3DXERR_CANNOTATTRSORT = MAKE_DDHRESULT(2902),
68  D3DXERR_SKINNINGNOTSUPPORTED = MAKE_DDHRESULT(2903),
69  D3DXERR_TOOMANYINFLUENCES = MAKE_DDHRESULT(2904),
70  D3DXERR_INVALIDDATA = MAKE_DDHRESULT(2905),
71  D3DXERR_LOADEDMESHASNODATA = MAKE_DDHRESULT(2906),
72  D3DXERR_DUPLICATENAMEDFRAGMENT = MAKE_DDHRESULT(2907),
73  D3DXERR_CANNOTREMOVELASTITEM = MAKE_DDHRESULT(2908),
74 };
75 
76 
77 #endif //__D3DX9_H__
78 
_D3DXERR
Definition: d3dx9.h:64