dsrc isn't necessary for this repo
[client-tools.git] / src / external / 3rd / library / directx9 / include / d3dx9.h
blob822f0a819041e64ace9fb5a67c2caaaadf918d5e
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) Microsoft Corporation. All Rights Reserved.
4 //
5 // File: d3dx9.h
6 // Content: D3DX utility library
7 //
8 //////////////////////////////////////////////////////////////////////////////
10 #ifdef __D3DX_INTERNAL__
11 #error Incorrect D3DX header used
12 #endif
14 #ifndef __D3DX9_H__
15 #define __D3DX9_H__
18 // Defines
19 #include <limits.h>
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)
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
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"
58 // Errors
59 #define _FACDD 0x876
60 #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code )
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),
75 #endif //__D3DX9_H__