1 | /*
|
---|
2 | * Copyright 2008-2009 Henri Verbeet for CodeWeavers
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | /*
|
---|
29 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
30 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
31 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
32 | * a choice of LGPL license versions is made available with the language indicating
|
---|
33 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
34 | * of the LGPL is applied is otherwise unspecified.
|
---|
35 | */
|
---|
36 |
|
---|
37 | import "dxgi.idl";
|
---|
38 |
|
---|
39 | [
|
---|
40 | object,
|
---|
41 | local,
|
---|
42 | uuid(a07ad9ab-fb01-4574-8bfb-0a70a7373f04)
|
---|
43 | ]
|
---|
44 | interface IWineDXGIFactory : IDXGIFactory
|
---|
45 | {
|
---|
46 | struct IWineD3D *get_wined3d();
|
---|
47 | }
|
---|
48 |
|
---|
49 | [
|
---|
50 | object,
|
---|
51 | local,
|
---|
52 | uuid(ab1de34c-2963-4ffd-8493-40f580e510e5)
|
---|
53 | ]
|
---|
54 | interface IWineDXGIAdapter : IDXGIAdapter
|
---|
55 | {
|
---|
56 | UINT get_ordinal();
|
---|
57 | }
|
---|
58 |
|
---|
59 | [
|
---|
60 | object,
|
---|
61 | local,
|
---|
62 | uuid(3e1ff30b-c951-48c3-b010-0fb49f3dca71)
|
---|
63 | ]
|
---|
64 | interface IWineDXGIDevice : IDXGIDevice
|
---|
65 | {
|
---|
66 | struct IWineD3DDevice *get_wined3d_device();
|
---|
67 | HRESULT create_surface(
|
---|
68 | [in] const DXGI_SURFACE_DESC *desc,
|
---|
69 | [in] DXGI_USAGE usage,
|
---|
70 | [in] const DXGI_SHARED_RESOURCE *shared_resource,
|
---|
71 | [in] IUnknown *outer,
|
---|
72 | [out] void **surface
|
---|
73 | );
|
---|
74 | HRESULT create_swapchain(
|
---|
75 | [in] struct _WINED3DPRESENT_PARAMETERS *present_parameters,
|
---|
76 | [out] struct IWineD3DSwapChain **wined3d_swapchain
|
---|
77 | );
|
---|
78 | }
|
---|