root/trunk/win32/directx/d3dx10.d

Revision 231, 1.7 kB (checked in by WeirdCat, 5 years ago)

some d3dx10 files

Line 
1 /***********************************************************************\
2 *                                d3dx10.d                               *
3 *                                                                       *
4 *                       Windows API header module                       *
5 *                                                                       *
6 *                       Placed into public domain                       *
7 \***********************************************************************/
8 module win32.directx.d3dx10;
9
10 private import win32.windows;
11
12 public import win32.directx.d3d10;
13 public import win32.directx.d3dx10math;
14 public import win32.directx.d3dx10core;
15 public import win32.directx.d3dx10tex;
16 public import win32.directx.d3dx10mesh;
17 public import win32.directx.d3dx10async;
18
19 pragma(lib, "d3dx10.lib");
20
21 const UINT D3DX10_DEFAULT = -1;
22 const UINT D3DX10_FROM_FILE = -3;
23 const DXGI_FORMAT DXGI_FORMAT_FROM_FILE = cast(DXGI_FORMAT)-3;
24
25 const _FACDD = 0x876;
26 HRESULT MAKE_DDHRESULT(T)(T code) {
27     return MAKE_HRESULT(1, _FACDD, code);
28 }
29
30 alias HRESULT _D3DX10_ERR;
31 _D3DX10_ERR D3DX10_ERR_CANNOT_MODIFY_INDEX_BUFFER   = MAKE_DDHRESULT(2900);
32 _D3DX10_ERR D3DX10_ERR_INVALID_MESH                 = MAKE_DDHRESULT(2901);
33 _D3DX10_ERR D3DX10_ERR_CANNOT_ATTR_SORT             = MAKE_DDHRESULT(2902);
34 _D3DX10_ERR D3DX10_ERR_SKINNING_NOT_SUPPORTED       = MAKE_DDHRESULT(2903);
35 _D3DX10_ERR D3DX10_ERR_TOO_MANY_INFLUENCES          = MAKE_DDHRESULT(2904);
36 _D3DX10_ERR D3DX10_ERR_INVALID_DATA                 = MAKE_DDHRESULT(2905);
37 _D3DX10_ERR D3DX10_ERR_LOADED_MESH_HAS_NO_DATA      = MAKE_DDHRESULT(2906);
38 _D3DX10_ERR D3DX10_ERR_DUPLICATE_NAMED_FRAGMENT     = MAKE_DDHRESULT(2907);
39 _D3DX10_ERR D3DX10_ERR_CANNOT_REMOVE_LAST_ITEM      = MAKE_DDHRESULT(2908);
Note: See TracBrowser for help on using the browser.