msvcrt/tests: Remove a space before a '\n'.
[wine/gsoc-2012-control.git] / dlls / dxgi / dxgi_private.h
blob4e6901ca8ac8fe760bb0dc2c4e9421bcfa5a06ef
1 /*
2 * Copyright 2008 Henri Verbeet for CodeWeavers
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.
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.
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
19 #ifndef __WINE_DXGI_PRIVATE_H
20 #define __WINE_DXGI_PRIVATE_H
22 #include "wine/debug.h"
24 #define COBJMACROS
25 #include "winbase.h"
26 #include "wingdi.h"
27 #include "winuser.h"
28 #include "objbase.h"
30 #include "dxgi.h"
31 #ifdef DXGI_INIT_GUID
32 #include "initguid.h"
33 #endif
34 #include "wine/wined3d.h"
35 #include "wine/winedxgi.h"
37 extern CRITICAL_SECTION dxgi_cs;
39 /* TRACE helper functions */
40 const char *debug_dxgi_format(DXGI_FORMAT format);
42 /* IDXGIFactory */
43 extern const struct IWineDXGIFactoryVtbl dxgi_factory_vtbl;
44 struct dxgi_factory
46 const struct IWineDXGIFactoryVtbl *vtbl;
47 LONG refcount;
48 IWineD3D *wined3d;
49 UINT adapter_count;
50 IDXGIAdapter **adapters;
53 /* IDXGIDevice */
54 extern const struct IWineDXGIDeviceVtbl dxgi_device_vtbl;
55 struct dxgi_device
57 const struct IWineDXGIDeviceVtbl *vtbl;
58 IUnknown *child_layer;
59 LONG refcount;
60 IWineD3DDevice *wined3d_device;
61 IWineDXGIFactory *factory;
64 /* IDXGIAdapter */
65 extern const struct IWineDXGIAdapterVtbl dxgi_adapter_vtbl;
66 struct dxgi_adapter
68 const struct IWineDXGIAdapterVtbl *vtbl;
69 IDXGIFactory *parent;
70 LONG refcount;
71 UINT ordinal;
74 /* IDXGISwapChain */
75 extern const struct IDXGISwapChainVtbl dxgi_swapchain_vtbl;
76 struct dxgi_swapchain
78 const struct IDXGISwapChainVtbl *vtbl;
79 LONG refcount;
82 /* IDXGISurface */
83 extern const struct IDXGISurfaceVtbl dxgi_surface_vtbl;
84 extern const struct IUnknownVtbl dxgi_surface_inner_unknown_vtbl;
85 struct dxgi_surface
87 const struct IDXGISurfaceVtbl *vtbl;
88 const struct IUnknownVtbl *inner_unknown_vtbl;
89 IUnknown *outer_unknown;
90 LONG refcount;
93 /* Layered device */
94 enum dxgi_device_layer_id
96 DXGI_DEVICE_LAYER_DEBUG1 = 0x8,
97 DXGI_DEVICE_LAYER_THREAD_SAFE = 0x10,
98 DXGI_DEVICE_LAYER_DEBUG2 = 0x20,
99 DXGI_DEVICE_LAYER_SWITCH_TO_REF = 0x30,
100 DXGI_DEVICE_LAYER_D3D10_DEVICE = 0xffffffff,
103 struct layer_get_size_args
105 DWORD unknown0;
106 DWORD unknown1;
107 DWORD *unknown2;
108 DWORD *unknown3;
109 IDXGIAdapter *adapter;
110 WORD interface_major;
111 WORD interface_minor;
112 WORD version_build;
113 WORD version_revision;
116 struct dxgi_device_layer
118 enum dxgi_device_layer_id id;
119 HRESULT (WINAPI *init)(enum dxgi_device_layer_id id, DWORD *count, DWORD *values);
120 UINT (WINAPI *get_size)(enum dxgi_device_layer_id id, struct layer_get_size_args *args, DWORD unknown0);
121 HRESULT (WINAPI *create)(enum dxgi_device_layer_id id, void **layer_base, DWORD unknown0,
122 void *device_object, REFIID riid, void **device_layer);
125 #endif /* __WINE_DXGI_PRIVATE_H */