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: d3dx11.h |
||
| 6 | // Content: D3DX11 utility library |
||
| 7 | // |
||
| 8 | ////////////////////////////////////////////////////////////////////////////// |
||
| 9 | |||
| 10 | #ifdef __D3DX11_INTERNAL__ |
||
| 11 | #error Incorrect D3DX11 header used |
||
| 12 | #endif |
||
| 13 | |||
| 14 | #ifndef __D3DX11_H__ |
||
| 15 | #define __D3DX11_H__ |
||
| 16 | |||
| 17 | |||
| 18 | // Defines |
||
| 19 | #include <limits.h> |
||
| 20 | #include <float.h> |
||
| 21 | |||
| 22 | #ifdef ALLOW_THROWING_NEW |
||
| 23 | #include <new> |
||
| 24 | #endif |
||
| 25 | |||
| 26 | #define D3DX11_DEFAULT ((UINT) -1) |
||
| 27 | #define D3DX11_FROM_FILE ((UINT) -3) |
||
| 28 | #define DXGI_FORMAT_FROM_FILE ((DXGI_FORMAT) -3) |
||
| 29 | |||
| 30 | #ifndef D3DX11INLINE |
||
| 31 | #ifdef _MSC_VER |
||
| 32 | #if (_MSC_VER >= 1200) |
||
| 33 | #define D3DX11INLINE __forceinline |
||
| 34 | #else |
||
| 35 | #define D3DX11INLINE __inline |
||
| 36 | #endif |
||
| 37 | #else |
||
| 38 | #ifdef __cplusplus |
||
| 39 | #define D3DX11INLINE inline |
||
| 40 | #else |
||
| 41 | #define D3DX11INLINE |
||
| 42 | #endif |
||
| 43 | #endif |
||
| 44 | #endif |
||
| 45 | |||
| 46 | |||
| 47 | |||
| 48 | // Includes |
||
| 49 | #include "d3d11.h" |
||
| 50 | #include "d3dx11.h" |
||
| 51 | #include "d3dx11core.h" |
||
| 52 | #include "d3dx11tex.h" |
||
| 53 | #include "d3dx11async.h" |
||
| 54 | |||
| 55 | |||
| 56 | // Errors |
||
| 57 | #define _FACDD 0x876 |
||
| 58 | #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) |
||
| 59 | |||
| 60 | enum _D3DX11_ERR { |
||
| 61 | D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER = MAKE_DDHRESULT(2900), |
||
| 62 | D3DX11_ERR_INVALID_MESH = MAKE_DDHRESULT(2901), |
||
| 63 | D3DX11_ERR_CANNOT_ATTR_SORT = MAKE_DDHRESULT(2902), |
||
| 64 | D3DX11_ERR_SKINNING_NOT_SUPPORTED = MAKE_DDHRESULT(2903), |
||
| 65 | D3DX11_ERR_TOO_MANY_INFLUENCES = MAKE_DDHRESULT(2904), |
||
| 66 | D3DX11_ERR_INVALID_DATA = MAKE_DDHRESULT(2905), |
||
| 67 | D3DX11_ERR_LOADED_MESH_HAS_NO_DATA = MAKE_DDHRESULT(2906), |
||
| 68 | D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT = MAKE_DDHRESULT(2907), |
||
| 69 | D3DX11_ERR_CANNOT_REMOVE_LAST_ITEM = MAKE_DDHRESULT(2908), |
||
| 70 | }; |
||
| 71 | |||
| 72 | |||
| 73 | #endif //__D3DX11_H__ |
||
| 74 |