* The Shell.. for a long time we dreamed of having a compatible, properly working...
[reactos.git] / reactos / include / psdk / d3d9.h
1 /*
2 * Copyright (C) 2002-2003 Jason Edmeades
3 * Raphael Junqueira
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20 #ifndef _D3D9_H_
21 #define _D3D9_H_
22
23 #ifndef DIRECT3D_VERSION
24 #define DIRECT3D_VERSION 0x0900
25 #endif
26
27 #include <stdlib.h>
28
29 #define COM_NO_WINDOWS_H
30 #include <objbase.h>
31
32 #ifndef __WINESRC__
33 # include <windows.h>
34 #endif
35
36 #include <d3d9types.h>
37 #include <d3d9caps.h>
38
39 /*****************************************************************************
40 * Behavior Flags for IDirect3D8::CreateDevice
41 */
42 #define D3DCREATE_FPU_PRESERVE 0x00000002L
43 #define D3DCREATE_MULTITHREADED 0x00000004L
44 #define D3DCREATE_PUREDEVICE 0x00000010L
45 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L
46 #define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L
47 #define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L
48 #define D3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100L
49 #define D3DCREATE_ADAPTERGROUP_DEVICE 0x00000200L
50 #define D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX 0x00000400L
51 #define D3DCREATE_NOWINDOWCHANGES 0x00000800L
52 #define D3DCREATE_DISABLE_PSGP_THREADING 0x00002000L
53 #define D3DCREATE_ENABLE_PRESENTSTATS 0x00004000L
54 #define D3DCREATE_DISABLE_PRINTSCREEN 0x00008000L
55 #define D3DCREATE_SCREENSAVER 0x10000000L
56
57 /*****************************************************************************
58 * Flags for SetPrivateData
59 */
60 #define D3DSPD_IUNKNOWN 0x00000001L
61
62
63 /*****************************************************************************
64 * #defines and error codes
65 */
66 #define D3D_SDK_VERSION 32
67 #define D3DADAPTER_DEFAULT 0
68 #define D3DENUM_NO_WHQL_LEVEL 0x00000002L
69 #define D3DPRESENT_BACK_BUFFERS_MAX 3L
70 #define D3DSGR_NO_CALIBRATION 0x00000000L
71 #define D3DSGR_CALIBRATE 0x00000001L
72
73 #define _FACD3D 0x876
74 #define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code )
75 #define MAKE_D3DSTATUS( code ) MAKE_HRESULT( 0, _FACD3D, code )
76
77 /*****************************************************************************
78 * Direct3D Errors
79 */
80 #define D3D_OK S_OK
81 #define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072)
82 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073)
83 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074)
84 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075)
85 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076)
86 #define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077)
87 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078)
88 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079)
89 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081)
90 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082)
91 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086)
92 #define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087)
93 #define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150)
94 #define D3DERR_MOREDATA MAKE_D3DHRESULT(2151)
95 #define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152)
96 #define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153)
97 #define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154)
98 #define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380)
99 #define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155)
100 #define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156)
101 #define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157)
102 #define D3DERR_WASSTILLDRAWING MAKE_D3DHRESULT(540)
103 #define D3DOK_NOAUTOGEN MAKE_D3DSTATUS(2159)
104
105 #define D3DERR_DEVICEREMOVED MAKE_D3DHRESULT(2160)
106 #define D3DERR_DEVICEHUNG MAKE_D3DHRESULT(2164)
107 #define S_NOT_RESIDENT MAKE_D3DSTATUS(2165)
108 #define S_RESIDENT_IN_SHARED_MEMORY MAKE_D3DSTATUS(2166)
109 #define S_PRESENT_MODE_CHANGED MAKE_D3DSTATUS(2167)
110 #define S_PRESENT_OCCLUDED MAKE_D3DSTATUS(2168)
111 #define D3DERR_UNSUPPORTEDOVERLAY MAKE_D3DHRESULT(2171)
112 #define D3DERR_UNSUPPORTEDOVERLAYFORMAT MAKE_D3DHRESULT(2172)
113 #define D3DERR_CANNOTPROTECTCONTENT MAKE_D3DHRESULT(2173)
114 #define D3DERR_UNSUPPORTEDCRYPTO MAKE_D3DHRESULT(2174)
115 #define D3DERR_PRESENT_STATISTICS_DISJOINT MAKE_D3DHRESULT(2180)
116
117
118 /*****************************************************************************
119 * Predeclare the interfaces
120 */
121 DEFINE_GUID(IID_IDirect3D9, 0x81BDCBCA, 0x64D4, 0x426D, 0xAE, 0x8D, 0xAD, 0x1, 0x47, 0xF4, 0x27, 0x5C);
122 typedef struct IDirect3D9 *LPDIRECT3D9, *PDIRECT3D9;
123
124 DEFINE_GUID(IID_IDirect3D9Ex, 0x02177241, 0x69FC, 0x400C, 0x8F, 0xF1, 0x93, 0xA4, 0x4D, 0xF6, 0x86, 0x1D);
125 typedef struct IDirect3D9Ex *LPDIRECT3D9EX, *PDIRECT3D9EX;
126
127 DEFINE_GUID(IID_IDirect3DDevice9, 0xd0223b96, 0xbf7a, 0x43fd, 0x92, 0xbd, 0xa4, 0x3b, 0xd, 0x82, 0xb9, 0xeb);
128 typedef struct IDirect3DDevice9 *LPDIRECT3DDEVICE9;
129
130 DEFINE_GUID(IID_IDirect3DDevice9Ex, 0xb18b10ce, 0x2649, 0x405a, 0x87, 0xf, 0x95, 0xf7, 0x77, 0xd4, 0x31, 0x3a);
131 typedef struct IDirect3DDevice9Ex *LPDIRECT3DDEVICE9EX, *PDIRECT3DDEVICE9EX;
132
133 DEFINE_GUID(IID_IDirect3DResource9, 0x5eec05d, 0x8f7d, 0x4362, 0xb9, 0x99, 0xd1, 0xba, 0xf3, 0x57, 0xc7, 0x4);
134 typedef struct IDirect3DResource9 *LPDIRECT3DRESOURCE9, *PDIRECT3DRESOURCE9;
135
136 DEFINE_GUID(IID_IDirect3DVertexBuffer9, 0xb64bb1b5, 0xfd70, 0x4df6, 0xbf, 0x91, 0x19, 0xd0, 0xa1, 0x24, 0x55, 0xe3);
137 typedef struct IDirect3DVertexBuffer9 *LPDIRECT3DVERTEXBUFFER9, *PDIRECT3DVERTEXBUFFER9;
138
139 DEFINE_GUID(IID_IDirect3DVolume9, 0x24f416e6, 0x1f67, 0x4aa7, 0xb8, 0x8e, 0xd3, 0x3f, 0x6f, 0x31, 0x28, 0xa1);
140 typedef struct IDirect3DVolume9 *LPDIRECT3DVOLUME9, *PDIRECT3DVOLUME9;
141
142 DEFINE_GUID(IID_IDirect3DSwapChain9, 0x794950f2, 0xadfc, 0x458a, 0x90, 0x5e, 0x10, 0xa1, 0xb, 0xb, 0x50, 0x3b);
143 typedef struct IDirect3DSwapChain9 *LPDIRECT3DSWAPCHAIN9, *PDIRECT3DSWAPCHAIN9;
144
145 DEFINE_GUID(IID_IDirect3DSwapChain9Ex, 0x91886caf, 0x1c3d, 0x4d2e, 0xa0, 0xab, 0x3e, 0x4c, 0x7d, 0x8d, 0x33, 0x3);
146 typedef struct IDirect3DSwapChain9Ex *LPDIRECT3DSWAPCHAIN9EX, *PDIRECT3DSWAPCHAIN9EX;
147
148 DEFINE_GUID(IID_IDirect3DSurface9, 0xcfbaf3a, 0x9ff6, 0x429a, 0x99, 0xb3, 0xa2, 0x79, 0x6a, 0xf8, 0xb8, 0x9b);
149 typedef struct IDirect3DSurface9 *LPDIRECT3DSURFACE9, *PDIRECT3DSURFACE9;
150
151 DEFINE_GUID(IID_IDirect3DIndexBuffer9, 0x7c9dd65e, 0xd3f7, 0x4529, 0xac, 0xee, 0x78, 0x58, 0x30, 0xac, 0xde, 0x35);
152 typedef struct IDirect3DIndexBuffer9 *LPDIRECT3DINDEXBUFFER9, *PDIRECT3DINDEXBUFFER9;
153
154 DEFINE_GUID(IID_IDirect3DBaseTexture9, 0x580ca87e, 0x1d3c, 0x4d54, 0x99, 0x1d, 0xb7, 0xd3, 0xe3, 0xc2, 0x98, 0xce);
155 typedef struct IDirect3DBaseTexture9 *LPDIRECT3DBASETEXTURE9, *PDIRECT3DBASETEXTURE9;
156
157 DEFINE_GUID(IID_IDirect3DTexture9, 0x85c31227, 0x3de5, 0x4f00, 0x9b, 0x3a, 0xf1, 0x1a, 0xc3, 0x8c, 0x18, 0xb5);
158 typedef struct IDirect3DTexture9 *LPDIRECT3DTEXTURE9, *PDIRECT3DTEXTURE9;
159
160 DEFINE_GUID(IID_IDirect3DCubeTexture9, 0xfff32f81, 0xd953, 0x473a, 0x92, 0x23, 0x93, 0xd6, 0x52, 0xab, 0xa9, 0x3f);
161 typedef struct IDirect3DCubeTexture9 *LPDIRECT3DCUBETEXTURE9, *PDIRECT3DCUBETEXTURE9;
162
163 DEFINE_GUID(IID_IDirect3DVolumeTexture9, 0x2518526c, 0xe789, 0x4111, 0xa7, 0xb9, 0x47, 0xef, 0x32, 0x8d, 0x13, 0xe6);
164 typedef struct IDirect3DVolumeTexture9 *LPDIRECT3DVOLUMETEXTURE9, *PDIRECT3DVOLUMETEXTURE9;
165
166 DEFINE_GUID(IID_IDirect3DVertexDeclaration9, 0xdd13c59c, 0x36fa, 0x4098, 0xa8, 0xfb, 0xc7, 0xed, 0x39, 0xdc, 0x85, 0x46);
167 typedef struct IDirect3DVertexDeclaration9 *LPDIRECT3DVERTEXDECLARATION9;
168
169 DEFINE_GUID(IID_IDirect3DVertexShader9, 0xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36);
170 typedef struct IDirect3DVertexShader9 *LPDIRECT3DVERTEXSHADER9;
171
172 DEFINE_GUID(IID_IDirect3DPixelShader9, 0x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89);
173 typedef struct IDirect3DPixelShader9 *LPDIRECT3DPIXELSHADER9;
174
175 DEFINE_GUID(IID_IDirect3DStateBlock9, 0xb07c4fe5, 0x310d, 0x4ba8, 0xa2, 0x3c, 0x4f, 0xf, 0x20, 0x6f, 0x21, 0x8b);
176 typedef struct IDirect3DStateBlock9 *LPDIRECT3DSTATEBLOCK9;
177
178 DEFINE_GUID(IID_IDirect3DQuery9, 0xd9771460, 0xa695, 0x4f26, 0xbb, 0xd3, 0x27, 0xb8, 0x40, 0xb5, 0x41, 0xcc);
179 typedef struct IDirect3DQuery9 *LPDIRECT3DQUERY9, *PDIRECT3DQUERY9;
180
181 /*****************************************************************************
182 * IDirect3D9 interface
183 */
184 #undef INTERFACE
185 #define INTERFACE IDirect3D9
186 DECLARE_INTERFACE_(IDirect3D9,IUnknown)
187 {
188 /*** IUnknown methods ***/
189 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
190 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
191 STDMETHOD_(ULONG,Release)(THIS) PURE;
192 /*** IDirect3D9 methods ***/
193 STDMETHOD(RegisterSoftwareDevice)(THIS_ void* pInitializeFunction) PURE;
194 STDMETHOD_(UINT, GetAdapterCount)(THIS) PURE;
195 STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER9* pIdentifier) PURE;
196 STDMETHOD_(UINT, GetAdapterModeCount)(THIS_ UINT Adapter, D3DFORMAT Format) PURE;
197 STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE* pMode) PURE;
198 STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, D3DDISPLAYMODE* pMode) PURE;
199 STDMETHOD(CheckDeviceType)(THIS_ UINT iAdapter, D3DDEVTYPE DevType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL bWindowed) PURE;
200 STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) PURE;
201 STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType, DWORD* pQualityLevels) PURE;
202 STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) PURE;
203 STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat) PURE;
204 STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS9* pCaps) PURE;
205 STDMETHOD_(HMONITOR, GetAdapterMonitor)(THIS_ UINT Adapter) PURE;
206 STDMETHOD(CreateDevice)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS* pPresentationParameters, struct IDirect3DDevice9** ppReturnedDeviceInterface) PURE;
207 };
208 #undef INTERFACE
209
210 #ifdef __CRT_UUID_DECL
211 __CRT_UUID_DECL(IDirect3D9, 0x81BDCBCA, 0x64D4, 0x426D, 0xAE, 0x8D, 0xAD, 0x1, 0x47, 0xF4, 0x27, 0x5C);
212 #endif
213
214 #if !defined(__cplusplus) || defined(CINTERFACE)
215 /*** IUnknown methods ***/
216 #define IDirect3D9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
217 #define IDirect3D9_AddRef(p) (p)->lpVtbl->AddRef(p)
218 #define IDirect3D9_Release(p) (p)->lpVtbl->Release(p)
219 /*** IDirect3D9 methods ***/
220 #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
221 #define IDirect3D9_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
222 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
223 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
224 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
225 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
226 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
227 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
228 #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
229 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
230 #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
231 #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
232 #define IDirect3D9_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
233 #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
234 #else
235 /*** IUnknown methods ***/
236 #define IDirect3D9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
237 #define IDirect3D9_AddRef(p) (p)->AddRef()
238 #define IDirect3D9_Release(p) (p)->Release()
239 /*** IDirect3D9 methods ***/
240 #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a)
241 #define IDirect3D9_GetAdapterCount(p) (p)->GetAdapterCount()
242 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c)
243 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->GetAdapterModeCount(a,b)
244 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->EnumAdapterModes(a,b,c,d)
245 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b)
246 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e)
247 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f)
248 #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->CheckDeviceMultiSampleType(a,b,c,d,e,f)
249 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e)
250 #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->CheckDeviceFormatConversion(a,b,c,d)
251 #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c)
252 #define IDirect3D9_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a)
253 #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f)
254 #endif
255
256 /*****************************************************************************
257 * IDirect3D9Ex interface
258 */
259 #define INTERFACE IDirect3D9Ex
260 DECLARE_INTERFACE_(IDirect3D9Ex,IDirect3D9)
261 {
262 /*** IUnknown methods ***/
263 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
264 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
265 STDMETHOD_(ULONG,Release)(THIS) PURE;
266 /*** IDirect3D9 methods ***/
267
268 /* Note: Microsoft's d3d9.h does not declare IDirect3D9Ex::RegisterSoftwareDevice . This would mean that
269 * the offsets of the other methods in the Vtable change too. This is wrong. In Microsoft's
270 * d3d9.dll, the offsets for the other functions are still compatible with IDirect3D9.
271 * This is probably because even in MS header IDirect3D9Ex inherits from IDirect3D9, which makes the
272 * C++ interface compatible, and nobody uses the C interface in Windows world.
273 */
274 STDMETHOD(RegisterSoftwareDevice)(THIS_ void* pInitializeFunction) PURE;
275
276 STDMETHOD_(UINT, GetAdapterCount)(THIS) PURE;
277 STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER9* pIdentifier) PURE;
278 STDMETHOD_(UINT, GetAdapterModeCount)(THIS_ UINT Adapter, D3DFORMAT Format) PURE;
279 STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE* pMode) PURE;
280 STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, D3DDISPLAYMODE* pMode) PURE;
281 STDMETHOD(CheckDeviceType)(THIS_ UINT iAdapter, D3DDEVTYPE DevType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL bWindowed) PURE;
282 STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) PURE;
283 STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType, DWORD* pQualityLevels) PURE;
284 STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) PURE;
285 STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat) PURE;
286 STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS9* pCaps) PURE;
287 STDMETHOD_(HMONITOR, GetAdapterMonitor)(THIS_ UINT Adapter) PURE;
288 STDMETHOD(CreateDevice)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS* pPresentationParameters, struct IDirect3DDevice9** ppReturnedDeviceInterface) PURE;
289 /*** IDirect3D9Ex methods ***/
290 STDMETHOD_(UINT, GetAdapterModeCountEx)(THIS_ UINT adapter_idx, const D3DDISPLAYMODEFILTER *filter) PURE;
291 STDMETHOD(EnumAdapterModesEx)(THIS_ UINT adapter_idx, const D3DDISPLAYMODEFILTER *filter,
292 UINT mode_idx, D3DDISPLAYMODEEX *mode) PURE;
293 STDMETHOD(GetAdapterDisplayModeEx)(THIS_ UINT Adapter, D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation);
294 STDMETHOD(CreateDeviceEx)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS* pPresentationParameters, D3DDISPLAYMODEEX* pFullscreenDisplayMode, struct IDirect3DDevice9Ex **ppReturnedDeviceInterface) PURE;
295 STDMETHOD(GetAdapterLUID)(THIS_ UINT Adatper, LUID *pLUID) PURE;
296 };
297 #undef INTERFACE
298
299 #ifdef __CRT_UUID_DECL
300 __CRT_UUID_DECL(IDirect3D9Ex, 0x02177241, 0x69FC, 0x400C, 0x8F, 0xF1, 0x93, 0xA4, 0x4D, 0xF6, 0x86, 0x1D);
301 #endif
302
303 #if !defined(__cplusplus) || defined(CINTERFACE)
304 /*** IUnknown methods ***/
305 #define IDirect3D9Ex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
306 #define IDirect3D9Ex_AddRef(p) (p)->lpVtbl->AddRef(p)
307 #define IDirect3D9Ex_Release(p) (p)->lpVtbl->Release(p)
308 /*** IDirect3D9 methods ***/
309 #define IDirect3D9Ex_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
310 #define IDirect3D9Ex_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
311 #define IDirect3D9Ex_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
312 #define IDirect3D9Ex_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
313 #define IDirect3D9Ex_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
314 #define IDirect3D9Ex_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
315 #define IDirect3D9Ex_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
316 #define IDirect3D9Ex_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
317 #define IDirect3D9Ex_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
318 #define IDirect3D9Ex_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
319 #define IDirect3D9Ex_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
320 #define IDirect3D9Ex_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
321 #define IDirect3D9Ex_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
322 #define IDirect3D9Ex_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
323 /*** IDirect3D9Ex methods ***/
324 #define IDirect3D9Ex_GetAdapterModeCountEx(p,a,b) (p)->lpVtbl->GetAdapterModeCountEx(p,a,b)
325 #define IDirect3D9Ex_EnumAdapterModesEx(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModesEx(p,a,b,c,d)
326 #define IDirect3D9Ex_GetAdapterDisplayModeEx(p,a,b,c) (p)->lpVtbl->GetAdapterDisplayModeEx(p,a,b,c)
327 #define IDirect3D9Ex_CreateDeviceEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateDeviceEx(p,a,b,c,d,e,f,g)
328 #define IDirect3D9Ex_GetAdapterLUID(p,a,b) (p)->lpVtbl->GetAdapterLUID(p,a,b)
329 #else
330 /*** IUnknown methods ***/
331 #define IDirect3D9Ex_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
332 #define IDirect3D9Ex_AddRef(p) (p)->AddRef()
333 #define IDirect3D9Ex_Release(p) (p)->Release()
334 /*** IDirect3D9 methods ***/
335 #define IDirect3D9Ex_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a)
336 #define IDirect3D9Ex_GetAdapterCount(p) (p)->GetAdapterCount()
337 #define IDirect3D9Ex_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c)
338 #define IDirect3D9Ex_GetAdapterModeCount(p,a,b) (p)->GetAdapterModeCount(a,b)
339 #define IDirect3D9Ex_EnumAdapterModes(p,a,b,c,d) (p)->EnumAdapterModes(a,b,c,d)
340 #define IDirect3D9Ex_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b)
341 #define IDirect3D9Ex_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e)
342 #define IDirect3D9Ex_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f)
343 #define IDirect3D9Ex_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->CheckDeviceMultiSampleType(a,b,c,d,e,f)
344 #define IDirect3D9Ex_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e)
345 #define IDirect3D9Ex_CheckDeviceFormatConversion(p,a,b,c,d) (p)->CheckDeviceFormatConversion(a,b,c,d)
346 #define IDirect3D9Ex_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c)
347 #define IDirect3D9Ex_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a)
348 #define IDirect3D9Ex_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f)
349 #endif
350
351 /*****************************************************************************
352 * IDirect3DVolume9 interface
353 */
354 #define INTERFACE IDirect3DVolume9
355 DECLARE_INTERFACE_(IDirect3DVolume9,IUnknown)
356 {
357 /*** IUnknown methods ***/
358 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
359 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
360 STDMETHOD_(ULONG,Release)(THIS) PURE;
361 /*** IDirect3DVolume9 methods ***/
362 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
363 STDMETHOD(SetPrivateData)(THIS_ REFGUID guid, const void *data, DWORD data_size, DWORD flags) PURE;
364 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
365 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
366 STDMETHOD(GetContainer)(THIS_ REFIID riid, void** ppContainer) PURE;
367 STDMETHOD(GetDesc)(THIS_ D3DVOLUME_DESC* pDesc) PURE;
368 STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX *locked_box, const D3DBOX *box, DWORD flags) PURE;
369 STDMETHOD(UnlockBox)(THIS) PURE;
370 };
371 #undef INTERFACE
372
373 #ifdef __CRT_UUID_DECL
374 __CRT_UUID_DECL(IDirect3DVolume9, 0x24f416e6, 0x1f67, 0x4aa7, 0xb8, 0x8e, 0xd3, 0x3f, 0x6f, 0x31, 0x28, 0xa1);
375 #endif
376
377 #if !defined(__cplusplus) || defined(CINTERFACE)
378 /*** IUnknown methods ***/
379 #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
380 #define IDirect3DVolume9_AddRef(p) (p)->lpVtbl->AddRef(p)
381 #define IDirect3DVolume9_Release(p) (p)->lpVtbl->Release(p)
382 /*** IDirect3DVolume9 methods ***/
383 #define IDirect3DVolume9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
384 #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
385 #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
386 #define IDirect3DVolume9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
387 #define IDirect3DVolume9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
388 #define IDirect3DVolume9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
389 #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
390 #define IDirect3DVolume9_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
391 #else
392 /*** IUnknown methods ***/
393 #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
394 #define IDirect3DVolume9_AddRef(p) (p)->AddRef()
395 #define IDirect3DVolume9_Release(p) (p)->Release()
396 /*** IDirect3DVolume9 methods ***/
397 #define IDirect3DVolume9_GetDevice(p,a) (p)->GetDevice(a)
398 #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
399 #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
400 #define IDirect3DVolume9_FreePrivateData(p,a) (p)->FreePrivateData(a)
401 #define IDirect3DVolume9_GetContainer(p,a,b) (p)->GetContainer(a,b)
402 #define IDirect3DVolume9_GetDesc(p,a) (p)->GetDesc(a)
403 #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->LockBox(a,b,c)
404 #define IDirect3DVolume9_UnlockBox(p) (p)->UnlockBox()
405 #endif
406
407 /*****************************************************************************
408 * IDirect3DSwapChain9 interface
409 */
410 #define INTERFACE IDirect3DSwapChain9
411 DECLARE_INTERFACE_(IDirect3DSwapChain9,IUnknown)
412 {
413 /*** IUnknown methods ***/
414 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
415 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
416 STDMETHOD_(ULONG,Release)(THIS) PURE;
417 /*** IDirect3DSwapChain9 methods ***/
418 STDMETHOD(Present)(THIS_ const RECT *src_rect, const RECT *dst_rect, HWND dst_window_override,
419 const RGNDATA *dirty_region, DWORD flags) PURE;
420 STDMETHOD(GetFrontBufferData)(THIS_ struct IDirect3DSurface9 *pDestSurface) PURE;
421 STDMETHOD(GetBackBuffer)(THIS_ UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, struct IDirect3DSurface9 **ppBackBuffer) PURE;
422 STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS *pRasterStatus) PURE;
423 STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE *pMode) PURE;
424 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9 **ppDevice) PURE;
425 STDMETHOD(GetPresentParameters)(THIS_ D3DPRESENT_PARAMETERS *pPresentationParameters) PURE;
426 };
427 #undef INTERFACE
428
429 #ifdef __CRT_UUID_DECL
430 __CRT_UUID_DECL(IDirect3DSwapChain9, 0x794950f2, 0xadfc, 0x458a, 0x90, 0x5e, 0x10, 0xa1, 0xb, 0xb, 0x50, 0x3b);
431 #endif
432
433 #if !defined(__cplusplus) || defined(CINTERFACE)
434 /*** IUnknown methods ***/
435 #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
436 #define IDirect3DSwapChain9_AddRef(p) (p)->lpVtbl->AddRef(p)
437 #define IDirect3DSwapChain9_Release(p) (p)->lpVtbl->Release(p)
438 /*** IDirect3DSwapChain9 methods ***/
439 #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
440 #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
441 #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
442 #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
443 #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
444 #define IDirect3DSwapChain9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
445 #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
446 #else
447 /*** IUnknown methods ***/
448 #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
449 #define IDirect3DSwapChain9_AddRef(p) (p)->AddRef()
450 #define IDirect3DSwapChain9_Release(p) (p)->Release()
451 /*** IDirect3DSwapChain9 methods ***/
452 #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->Present(a,b,c,d,e)
453 #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->GetFrontBufferData(a)
454 #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
455 #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
456 #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
457 #define IDirect3DSwapChain9_GetDevice(p,a) (p)->GetDevice(a)
458 #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->GetPresentParameters(a)
459 #endif
460
461 /*****************************************************************************
462 * IDirect3DSwapChain9Ex interface
463 */
464 #define INTERFACE IDirect3DSwapChain9Ex
465 DECLARE_INTERFACE_(IDirect3DSwapChain9Ex,IDirect3DSwapChain9)
466 {
467 /*** IUnknown methods ***/
468 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
469 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
470 STDMETHOD_(ULONG,Release)(THIS) PURE;
471 /*** IDirect3DSwapChain9 methods ***/
472 STDMETHOD(Present)(THIS_ const RECT *src_rect, const RECT *dst_rect, HWND dst_window_override,
473 const RGNDATA *dirty_region, DWORD flags) PURE;
474 STDMETHOD(GetFrontBufferData)(THIS_ struct IDirect3DSurface9 *pDestSurface) PURE;
475 STDMETHOD(GetBackBuffer)(THIS_ UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, struct IDirect3DSurface9 **ppBackBuffer) PURE;
476 STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS *pRasterStatus) PURE;
477 STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE *pMode) PURE;
478 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9 **ppDevice) PURE;
479 STDMETHOD(GetPresentParameters)(THIS_ D3DPRESENT_PARAMETERS *pPresentationParameters) PURE;
480 /*** IDirect3DSwapChain9Ex methods ***/
481 STDMETHOD(GetLastPresentCount)(THIS_ UINT *pLastPresentCount) PURE;
482 STDMETHOD(GetPresentStats)(THIS_ D3DPRESENTSTATS *pPresentationStatistics) PURE;
483 STDMETHOD(GetDisplayModeEx)(THIS_ D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation) PURE;
484 };
485 #undef INTERFACE
486
487 #ifdef __CRT_UUID_DECL
488 __CRT_UUID_DECL(IDirect3DSwapChain9Ex, 0x91886caf, 0x1c3d, 0x4d2e, 0xa0, 0xab, 0x3e, 0x4c, 0x7d, 0x8d, 0x33, 0x3);
489 #endif
490
491 #if !defined(__cplusplus) || defined(CINTERFACE)
492 /*** IUnknown methods ***/
493 #define IDirect3DSwapChain9Ex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
494 #define IDirect3DSwapChain9Ex_AddRef(p) (p)->lpVtbl->AddRef(p)
495 #define IDirect3DSwapChain9Ex_Release(p) (p)->lpVtbl->Release(p)
496 /*** IDirect3DSwapChain9 methods ***/
497 #define IDirect3DSwapChain9Ex_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
498 #define IDirect3DSwapChain9Ex_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
499 #define IDirect3DSwapChain9EX_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
500 #define IDirect3DSwapChain9EX_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
501 #define IDirect3DSwapChain9Ex_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
502 #define IDirect3DSwapChain9Ex_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
503 #define IDirect3DSwapChain9Ex_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
504 /*** IDirect3DSwapChain9Ex methods ***/
505 #define IDirect3DSwapChain9Ex_GetLastPresentCount(p,a) (p)->lpVtbl->GetLastPresentCount(p,a)
506 #define IDirect3DSwapChain9Ex_GetPresentStats(p,a) (p)->lpVtbl->GetPresentStats(p,a)
507 #define IDirect3DSwapChain9Ex_GetDisplayModeEx(p,a,b) (p)->lpVtbl->GetDisplayModeEx(p,a,b)
508 #else
509 /*** IUnknown methods ***/
510 #define IDirect3DSwapChain9Ex_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
511 #define IDirect3DSwapChain9Ex_AddRef(p) (p)->AddRef()
512 #define IDirect3DSwapChain9Ex_Release(p) (p)->Release()
513 /*** IDirect3DSwapChain9 methods ***/
514 #define IDirect3DSwapChain9Ex_Present(p,a,b,c,d,e) (p)->Present(a,b,c,d,e)
515 #define IDirect3DSwapChain9Ex_GetFrontBufferData(p,a) (p)->GetFrontBufferData(a)
516 #define IDirect3DSwapChain9Ex_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
517 #define IDirect3DSwapChain9Ex_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
518 #define IDirect3DSwapChain9Ex_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
519 #define IDirect3DSwapChain9Ex_GetDevice(p,a) (p)->GetDevice(a)
520 #define IDirect3DSwapChain9Ex_GetPresentParameters(p,a) (p)->GetPresentParameters(a)
521 /*** IDirect3DSwapChain9Ex methods ***/
522 #define IDirect3DSwapChain9Ex_GetLastPresentCount(p,a) (p)->GetLastPresentCount(a)
523 #define IDirect3DSwapChain9Ex_GetPresentStats(p,a) (p)->GetPresentStats(a)
524 #define IDirect3DSwapChain9Ex_GetDisplayModeEx(p,a,b) (p)->GetDisplayModeEx(a,b)
525 #endif
526
527 /*****************************************************************************
528 * IDirect3DResource9 interface
529 */
530 #define INTERFACE IDirect3DResource9
531 DECLARE_INTERFACE_(IDirect3DResource9,IUnknown)
532 {
533 /*** IUnknown methods ***/
534 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
535 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
536 STDMETHOD_(ULONG,Release)(THIS) PURE;
537 /*** IDirect3DResource9 methods ***/
538 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
539 STDMETHOD(SetPrivateData)(THIS_ REFGUID guid, const void *data, DWORD data_size, DWORD flags) PURE;
540 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
541 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
542 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
543 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
544 STDMETHOD_(void, PreLoad)(THIS) PURE;
545 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
546 };
547 #undef INTERFACE
548
549 #ifdef __CRT_UUID_DECL
550 __CRT_UUID_DECL(IDirect3DResource9, 0x5eec05d, 0x8f7d, 0x4362, 0xb9, 0x99, 0xd1, 0xba, 0xf3, 0x57, 0xc7, 0x4);
551 #endif
552
553 #if !defined(__cplusplus) || defined(CINTERFACE)
554 /*** IUnknown methods ***/
555 #define IDirect3DResource9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
556 #define IDirect3DResource9_AddRef(p) (p)->lpVtbl->AddRef(p)
557 #define IDirect3DResource9_Release(p) (p)->lpVtbl->Release(p)
558 /*** IDirect3DResource9 methods ***/
559 #define IDirect3DResource9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
560 #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
561 #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
562 #define IDirect3DResource9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
563 #define IDirect3DResource9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
564 #define IDirect3DResource9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
565 #define IDirect3DResource9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
566 #define IDirect3DResource9_GetType(p) (p)->lpVtbl->GetType(p)
567 #else
568 /*** IUnknown methods ***/
569 #define IDirect3DResource9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
570 #define IDirect3DResource9_AddRef(p) (p)->AddRef()
571 #define IDirect3DResource9_Release(p) (p)->Release()
572 /*** IDirect3DResource9 methods ***/
573 #define IDirect3DResource9_GetDevice(p,a) (p)->GetDevice(a)
574 #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
575 #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
576 #define IDirect3DResource9_FreePrivateData(p,a) (p)->FreePrivateData(a)
577 #define IDirect3DResource9_SetPriority(p,a) (p)->SetPriority(a)
578 #define IDirect3DResource9_GetPriority(p) (p)->GetPriority()
579 #define IDirect3DResource9_PreLoad(p) (p)->PreLoad()
580 #define IDirect3DResource9_GetType(p) (p)->GetType()
581 #endif
582
583 /*****************************************************************************
584 * IDirect3DSurface9 interface
585 */
586 #define INTERFACE IDirect3DSurface9
587 DECLARE_INTERFACE_(IDirect3DSurface9,IDirect3DResource9)
588 {
589 /*** IUnknown methods ***/
590 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
591 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
592 STDMETHOD_(ULONG,Release)(THIS) PURE;
593 /*** IDirect3DResource9 methods ***/
594 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
595 STDMETHOD(SetPrivateData)(THIS_ REFGUID guid, const void *data, DWORD data_size, DWORD flags) PURE;
596 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
597 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
598 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
599 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
600 STDMETHOD_(void, PreLoad)(THIS) PURE;
601 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
602 /*** IDirect3DSurface9 methods ***/
603 STDMETHOD(GetContainer)(THIS_ REFIID riid, void** ppContainer) PURE;
604 STDMETHOD(GetDesc)(THIS_ D3DSURFACE_DESC* pDesc) PURE;
605 STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT *locked_rect, const RECT *rect, DWORD flags) PURE;
606 STDMETHOD(UnlockRect)(THIS) PURE;
607 STDMETHOD(GetDC)(THIS_ HDC* phdc) PURE;
608 STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE;
609 };
610 #undef INTERFACE
611
612 #ifdef __CRT_UUID_DECL
613 __CRT_UUID_DECL(IDirect3DSurface9, 0xcfbaf3a, 0x9ff6, 0x429a, 0x99, 0xb3, 0xa2, 0x79, 0x6a, 0xf8, 0xb8, 0x9b);
614 #endif
615
616 #if !defined(__cplusplus) || defined(CINTERFACE)
617 /*** IUnknown methods ***/
618 #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
619 #define IDirect3DSurface9_AddRef(p) (p)->lpVtbl->AddRef(p)
620 #define IDirect3DSurface9_Release(p) (p)->lpVtbl->Release(p)
621 /*** IDirect3DSurface9 methods: IDirect3DResource9 ***/
622 #define IDirect3DSurface9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
623 #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
624 #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
625 #define IDirect3DSurface9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
626 #define IDirect3DSurface9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
627 #define IDirect3DSurface9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
628 #define IDirect3DSurface9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
629 #define IDirect3DSurface9_GetType(p) (p)->lpVtbl->GetType(p)
630 /*** IDirect3DSurface9 methods ***/
631 #define IDirect3DSurface9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
632 #define IDirect3DSurface9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
633 #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
634 #define IDirect3DSurface9_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
635 #define IDirect3DSurface9_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
636 #define IDirect3DSurface9_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
637 #else
638 /*** IUnknown methods ***/
639 #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
640 #define IDirect3DSurface9_AddRef(p) (p)->AddRef()
641 #define IDirect3DSurface9_Release(p) (p)->Release()
642 /*** IDirect3DSurface9 methods: IDirect3DResource9 ***/
643 #define IDirect3DSurface9_GetDevice(p,a) (p)->GetDevice(a)
644 #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
645 #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
646 #define IDirect3DSurface9_FreePrivateData(p,a) (p)->FreePrivateData(a)
647 #define IDirect3DSurface9_SetPriority(p,a) (p)->SetPriority(a)
648 #define IDirect3DSurface9_GetPriority(p) (p)->GetPriority()
649 #define IDirect3DSurface9_PreLoad(p) (p)->PreLoad()
650 #define IDirect3DSurface9_GetType(p) (p)->GetType()
651 /*** IDirect3DSurface9 methods ***/
652 #define IDirect3DSurface9_GetContainer(p,a,b) (p)->GetContainer(a,b)
653 #define IDirect3DSurface9_GetDesc(p,a) (p)->GetDesc(a)
654 #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->LockRect(a,b,c)
655 #define IDirect3DSurface9_UnlockRect(p) (p)->UnlockRect()
656 #define IDirect3DSurface9_GetDC(p,a) (p)->GetDC(a)
657 #define IDirect3DSurface9_ReleaseDC(p,a) (p)->ReleaseDC(a)
658 #endif
659
660 /*****************************************************************************
661 * IDirect3DVertexBuffer9 interface
662 */
663 #define INTERFACE IDirect3DVertexBuffer9
664 DECLARE_INTERFACE_(IDirect3DVertexBuffer9,IDirect3DResource9)
665 {
666 /*** IUnknown methods ***/
667 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
668 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
669 STDMETHOD_(ULONG,Release)(THIS) PURE;
670 /*** IDirect3DResource9 methods ***/
671 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
672 STDMETHOD(SetPrivateData)(THIS_ REFGUID guid, const void *data, DWORD data_size, DWORD flags) PURE;
673 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
674 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
675 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
676 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
677 STDMETHOD_(void, PreLoad)(THIS) PURE;
678 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
679 /*** IDirect3DVertexBuffer9 methods ***/
680 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, void** ppbData, DWORD Flags) PURE;
681 STDMETHOD(Unlock)(THIS) PURE;
682 STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC* pDesc) PURE;
683 };
684 #undef INTERFACE
685
686 #ifdef __CRT_UUID_DECL
687 __CRT_UUID_DECL(IDirect3DVertexBuffer9, 0xb64bb1b5, 0xfd70, 0x4df6, 0xbf, 0x91, 0x19, 0xd0, 0xa1, 0x24, 0x55, 0xe3);
688 #endif
689
690 #if !defined(__cplusplus) || defined(CINTERFACE)
691 /*** IUnknown methods ***/
692 #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
693 #define IDirect3DVertexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
694 #define IDirect3DVertexBuffer9_Release(p) (p)->lpVtbl->Release(p)
695 /*** IDirect3DVertexBuffer9 methods: IDirect3DResource9 ***/
696 #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
697 #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
698 #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
699 #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
700 #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
701 #define IDirect3DVertexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
702 #define IDirect3DVertexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
703 #define IDirect3DVertexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
704 /*** IDirect3DVertexBuffer9 methods ***/
705 #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
706 #define IDirect3DVertexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
707 #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
708 #else
709 /*** IUnknown methods ***/
710 #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
711 #define IDirect3DVertexBuffer9_AddRef(p) (p)->AddRef()
712 #define IDirect3DVertexBuffer9_Release(p) (p)->Release()
713 /*** IDirect3DVertexBuffer9 methods: IDirect3DResource9 ***/
714 #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->GetDevice(a)
715 #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
716 #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
717 #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a)
718 #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->SetPriority(a)
719 #define IDirect3DVertexBuffer9_GetPriority(p) (p)->GetPriority()
720 #define IDirect3DVertexBuffer9_PreLoad(p) (p)->PreLoad()
721 #define IDirect3DVertexBuffer9_GetType(p) (p)->GetType()
722 /*** IDirect3DVertexBuffer9 methods ***/
723 #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
724 #define IDirect3DVertexBuffer9_Unlock(p) (p)->Unlock()
725 #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->GetDesc(a)
726 #endif
727
728 /*****************************************************************************
729 * IDirect3DIndexBuffer9 interface
730 */
731 #define INTERFACE IDirect3DIndexBuffer9
732 DECLARE_INTERFACE_(IDirect3DIndexBuffer9,IDirect3DResource9)
733 {
734 /*** IUnknown methods ***/
735 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
736 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
737 STDMETHOD_(ULONG,Release)(THIS) PURE;
738 /*** IDirect3DResource9 methods ***/
739 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
740 STDMETHOD(SetPrivateData)(THIS_ REFGUID guid, const void *data, DWORD data_size, DWORD flags) PURE;
741 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
742 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
743 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
744 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
745 STDMETHOD_(void, PreLoad)(THIS) PURE;
746 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
747 /*** IDirect3DIndexBuffer9 methods ***/
748 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, void** ppbData, DWORD Flags) PURE;
749 STDMETHOD(Unlock)(THIS) PURE;
750 STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC* pDesc) PURE;
751 };
752 #undef INTERFACE
753
754 #ifdef __CRT_UUID_DECL
755 __CRT_UUID_DECL(IDirect3DIndexBuffer9, 0x7c9dd65e, 0xd3f7, 0x4529, 0xac, 0xee, 0x78, 0x58, 0x30, 0xac, 0xde, 0x35);
756 #endif
757
758 #if !defined(__cplusplus) || defined(CINTERFACE)
759 /*** IUnknown methods ***/
760 #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
761 #define IDirect3DIndexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
762 #define IDirect3DIndexBuffer9_Release(p) (p)->lpVtbl->Release(p)
763 /*** IDirect3DIndexBuffer9 methods: IDirect3DResource9 ***/
764 #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
765 #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
766 #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
767 #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
768 #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
769 #define IDirect3DIndexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
770 #define IDirect3DIndexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
771 #define IDirect3DIndexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
772 /*** IDirect3DIndexBuffer9 methods ***/
773 #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
774 #define IDirect3DIndexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
775 #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
776 #else
777 /*** IUnknown methods ***/
778 #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
779 #define IDirect3DIndexBuffer9_AddRef(p) (p)->AddRef()
780 #define IDirect3DIndexBuffer9_Release(p) (p)->Release()
781 /*** IDirect3DIndexBuffer9 methods: IDirect3DResource9 ***/
782 #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->GetDevice(a)
783 #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
784 #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
785 #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a)
786 #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->SetPriority(a)
787 #define IDirect3DIndexBuffer9_GetPriority(p) (p)->GetPriority()
788 #define IDirect3DIndexBuffer9_PreLoad(p) (p)->PreLoad()
789 #define IDirect3DIndexBuffer9_GetType(p) (p)->GetType()
790 /*** IDirect3DIndexBuffer9 methods ***/
791 #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
792 #define IDirect3DIndexBuffer9_Unlock(p) (p)->Unlock()
793 #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->GetDesc(a)
794 #endif
795
796 /*****************************************************************************
797 * IDirect3DBaseTexture9 interface
798 */
799 #define INTERFACE IDirect3DBaseTexture9
800 DECLARE_INTERFACE_(IDirect3DBaseTexture9,IDirect3DResource9)
801 {
802 /*** IUnknown methods ***/
803 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
804 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
805 STDMETHOD_(ULONG,Release)(THIS) PURE;
806 /*** IDirect3DResource9 methods ***/
807 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
808 STDMETHOD(SetPrivateData)(THIS_ REFGUID guid, const void *data, DWORD data_size, DWORD flags) PURE;
809 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
810 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
811 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
812 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
813 STDMETHOD_(void, PreLoad)(THIS) PURE;
814 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
815 /*** IDirect3DBaseTexture9 methods ***/
816 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
817 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
818 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
819 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
820 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
821 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
822 };
823 #undef INTERFACE
824
825 #ifdef __CRT_UUID_DECL
826 __CRT_UUID_DECL(IDirect3DBaseTexture9, 0x580ca87e, 0x1d3c, 0x4d54, 0x99, 0x1d, 0xb7, 0xd3, 0xe3, 0xc2, 0x98, 0xce);
827 #endif
828
829 #if !defined(__cplusplus) || defined(CINTERFACE)
830 /*** IUnknown methods ***/
831 #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
832 #define IDirect3DBaseTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
833 #define IDirect3DBaseTexture9_Release(p) (p)->lpVtbl->Release(p)
834 /*** IDirect3DBaseTexture9 methods: IDirect3DResource9 ***/
835 #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
836 #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
837 #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
838 #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
839 #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
840 #define IDirect3DBaseTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
841 #define IDirect3DBaseTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
842 #define IDirect3DBaseTexture9_GetType(p) (p)->lpVtbl->GetType(p)
843 /*** IDirect3DBaseTexture9 methods ***/
844 #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
845 #define IDirect3DBaseTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
846 #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
847 #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
848 #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
849 #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
850 #else
851 /*** IUnknown methods ***/
852 #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
853 #define IDirect3DBaseTexture9_AddRef(p) (p)->AddRef()
854 #define IDirect3DBaseTexture9_Release(p) (p)->Release()
855 /*** IDirect3DBaseTexture9 methods: IDirect3DResource9 ***/
856 #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->GetDevice(a)
857 #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
858 #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
859 #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
860 #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->SetPriority(a)
861 #define IDirect3DBaseTexture9_GetPriority(p) (p)->GetPriority()
862 #define IDirect3DBaseTexture9_PreLoad(p) (p)->PreLoad()
863 #define IDirect3DBaseTexture9_GetType(p) (p)->GetType()
864 /*** IDirect3DBaseTexture9 methods ***/
865 #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->SetLOD(a)
866 #define IDirect3DBaseTexture9_GetLOD(p) (p)->GetLOD()
867 #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->GetLevelCount()
868 #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
869 #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
870 #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
871 #endif
872
873 /*****************************************************************************
874 * IDirect3DCubeTexture9 interface
875 */
876 #define INTERFACE IDirect3DCubeTexture9
877 DECLARE_INTERFACE_(IDirect3DCubeTexture9,IDirect3DBaseTexture9)
878 {
879 /*** IUnknown methods ***/
880 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
881 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
882 STDMETHOD_(ULONG,Release)(THIS) PURE;
883 /*** IDirect3DResource9 methods ***/
884 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
885 STDMETHOD(SetPrivateData)(THIS_ REFGUID guid, const void *data, DWORD data_size, DWORD flags) PURE;
886 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
887 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
888 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
889 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
890 STDMETHOD_(void, PreLoad)(THIS) PURE;
891 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
892 /*** IDirect3DBaseTexture9 methods ***/
893 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
894 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
895 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
896 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
897 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
898 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
899 /*** IDirect3DCubeTexture9 methods ***/
900 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC* pDesc) PURE;
901 STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level, IDirect3DSurface9** ppCubeMapSurface) PURE;
902 STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES face, UINT level,
903 D3DLOCKED_RECT *locked_rect, const RECT *rect, DWORD flags) PURE;
904 STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level) PURE;
905 STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES face, const RECT *dirty_rect) PURE;
906 };
907 #undef INTERFACE
908
909 #ifdef __CRT_UUID_DECL
910 __CRT_UUID_DECL(IDirect3DCubeTexture9, 0xfff32f81, 0xd953, 0x473a, 0x92, 0x23, 0x93, 0xd6, 0x52, 0xab, 0xa9, 0x3f);
911 #endif
912
913 #if !defined(__cplusplus) || defined(CINTERFACE)
914 /*** IUnknown methods ***/
915 #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
916 #define IDirect3DCubeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
917 #define IDirect3DCubeTexture9_Release(p) (p)->lpVtbl->Release(p)
918 /*** IDirect3DCubeTexture9 methods: IDirect3DResource9 ***/
919 #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
920 #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
921 #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
922 #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
923 #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
924 #define IDirect3DCubeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
925 #define IDirect3DCubeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
926 #define IDirect3DCubeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
927 /*** IDirect3DCubeTexture9 methods: IDirect3DBaseTexture9 ***/
928 #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
929 #define IDirect3DCubeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
930 #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
931 #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
932 #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
933 #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
934 /*** IDirect3DCubeTexture9 methods ***/
935 #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
936 #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
937 #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
938 #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
939 #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
940 #else
941 /*** IUnknown methods ***/
942 #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
943 #define IDirect3DCubeTexture9_AddRef(p) (p)->AddRef()
944 #define IDirect3DCubeTexture9_Release(p) (p)->Release()
945 /*** IDirect3DCubeTexture9 methods: IDirect3DResource9 ***/
946 #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->GetDevice(a)
947 #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
948 #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
949 #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
950 #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->SetPriority(a)
951 #define IDirect3DCubeTexture9_GetPriority(p) (p)->GetPriority()
952 #define IDirect3DCubeTexture9_PreLoad(p) (p)->PreLoad()
953 #define IDirect3DCubeTexture9_GetType(p) (p)->GetType()
954 /*** IDirect3DCubeTexture9 methods: IDirect3DBaseTexture9 ***/
955 #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->SetLOD(a)
956 #define IDirect3DCubeTexture9_GetLOD(p) (p)->GetLOD()
957 #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->GetLevelCount()
958 #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
959 #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
960 #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
961 /*** IDirect3DCubeTexture9 methods ***/
962 #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
963 #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c)
964 #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e)
965 #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->UnlockRect(a,b)
966 #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b)
967 #endif
968
969 /*****************************************************************************
970 * IDirect3DTexture9 interface
971 */
972 #define INTERFACE IDirect3DTexture9
973 DECLARE_INTERFACE_(IDirect3DTexture9,IDirect3DBaseTexture9)
974 {
975 /*** IUnknown methods ***/
976 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
977 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
978 STDMETHOD_(ULONG,Release)(THIS) PURE;
979 /*** IDirect3DResource9 methods ***/
980 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
981 STDMETHOD(SetPrivateData)(THIS_ REFGUID guid, const void *data, DWORD data_size, DWORD flags) PURE;
982 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
983 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
984 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
985 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
986 STDMETHOD_(void, PreLoad)(THIS) PURE;
987 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
988 /*** IDirect3DBaseTexture9 methods ***/
989 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
990 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
991 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
992 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
993 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
994 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
995 /*** IDirect3DTexture9 methods ***/
996 STDMETHOD(GetLevelDesc)(THIS_ UINT Level, D3DSURFACE_DESC* pDesc) PURE;
997 STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level, IDirect3DSurface9** ppSurfaceLevel) PURE;
998 STDMETHOD(LockRect)(THIS_ UINT level, D3DLOCKED_RECT *locked_rect, const RECT *rect, DWORD flags) PURE;
999 STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE;
1000 STDMETHOD(AddDirtyRect)(THIS_ const RECT *dirty_rect) PURE;
1001 };
1002 #undef INTERFACE
1003
1004 #ifdef __CRT_UUID_DECL
1005 __CRT_UUID_DECL(IDirect3DTexture9, 0x85c31227, 0x3de5, 0x4f00, 0x9b, 0x3a, 0xf1, 0x1a, 0xc3, 0x8c, 0x18, 0xb5);
1006 #endif
1007
1008 #if !defined(__cplusplus) || defined(CINTERFACE)
1009 /*** IUnknown methods ***/
1010 #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1011 #define IDirect3DTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1012 #define IDirect3DTexture9_Release(p) (p)->lpVtbl->Release(p)
1013 /*** IDirect3DTexture9 methods: IDirect3DResource9 ***/
1014 #define IDirect3DTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1015 #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1016 #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1017 #define IDirect3DTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1018 #define IDirect3DTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1019 #define IDirect3DTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1020 #define IDirect3DTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1021 #define IDirect3DTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1022 /*** IDirect3DTexture9 methods: IDirect3DBaseTexture9 ***/
1023 #define IDirect3DTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1024 #define IDirect3DTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1025 #define IDirect3DTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1026 #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1027 #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1028 #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1029 /*** IDirect3DTexture9 methods ***/
1030 #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1031 #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
1032 #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
1033 #define IDirect3DTexture9_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
1034 #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
1035 #else
1036 /*** IUnknown methods ***/
1037 #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1038 #define IDirect3DTexture9_AddRef(p) (p)->AddRef()
1039 #define IDirect3DTexture9_Release(p) (p)->Release()
1040 /*** IDirect3DTexture9 methods: IDirect3DResource9 ***/
1041 #define IDirect3DTexture9_GetDevice(p,a) (p)->GetDevice(a)
1042 #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1043 #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1044 #define IDirect3DTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1045 #define IDirect3DTexture9_SetPriority(p,a) (p)->SetPriority(a)
1046 #define IDirect3DTexture9_GetPriority(p) (p)->GetPriority()
1047 #define IDirect3DTexture9_PreLoad(p) (p)->PreLoad()
1048 #define IDirect3DTexture9_GetType(p) (p)->GetType()
1049 /*** IDirect3DTexture9 methods: IDirect3DBaseTexture9 ***/
1050 #define IDirect3DTexture9_SetLOD(p,a) (p)->SetLOD(a)
1051 #define IDirect3DTexture9_GetLOD(p) (p)->GetLOD()
1052 #define IDirect3DTexture9_GetLevelCount(p) (p)->GetLevelCount()
1053 #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1054 #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1055 #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1056 /*** IDirect3DTexture9 methods ***/
1057 #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1058 #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b)
1059 #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d)
1060 #define IDirect3DTexture9_UnlockRect(p,a) (p)->UnlockRect(a)
1061 #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->AddDirtyRect(a)
1062 #endif
1063
1064 /*****************************************************************************
1065 * IDirect3DVolumeTexture9 interface
1066 */
1067 #define INTERFACE IDirect3DVolumeTexture9
1068 DECLARE_INTERFACE_(IDirect3DVolumeTexture9,IDirect3DBaseTexture9)
1069 {
1070 /*** IUnknown methods ***/
1071 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1072 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1073 STDMETHOD_(ULONG,Release)(THIS) PURE;
1074 /*** IDirect3DResource9 methods ***/
1075 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
1076 STDMETHOD(SetPrivateData)(THIS_ REFGUID guid, const void *data, DWORD data_size, DWORD flags) PURE;
1077 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
1078 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1079 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1080 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1081 STDMETHOD_(void, PreLoad)(THIS) PURE;
1082 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1083 /*** IDirect3DBaseTexture9 methods ***/
1084 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
1085 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
1086 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
1087 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
1088 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
1089 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
1090 /*** IDirect3DVolumeTexture9 methods ***/
1091 STDMETHOD(GetLevelDesc)(THIS_ UINT Level, D3DVOLUME_DESC *pDesc) PURE;
1092 STDMETHOD(GetVolumeLevel)(THIS_ UINT Level, IDirect3DVolume9** ppVolumeLevel) PURE;
1093 STDMETHOD(LockBox)(THIS_ UINT level, D3DLOCKED_BOX *locked_box, const D3DBOX *box, DWORD flags) PURE;
1094 STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE;
1095 STDMETHOD(AddDirtyBox)(THIS_ const D3DBOX *dirty_box) PURE;
1096 };
1097 #undef INTERFACE
1098
1099 #ifdef __CRT_UUID_DECL
1100 __CRT_UUID_DECL(IDirect3DVolumeTexture9, 0x2518526c, 0xe789, 0x4111, 0xa7, 0xb9, 0x47, 0xef, 0x32, 0x8d, 0x13, 0xe6);
1101 #endif
1102
1103 #if !defined(__cplusplus) || defined(CINTERFACE)
1104 /*** IUnknown methods ***/
1105 #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1106 #define IDirect3DVolumeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1107 #define IDirect3DVolumeTexture9_Release(p) (p)->lpVtbl->Release(p)
1108 /*** IDirect3DVolumeTexture9 methods: IDirect3DResource9 ***/
1109 #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1110 #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1111 #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1112 #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1113 #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1114 #define IDirect3DVolumeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1115 #define IDirect3DVolumeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1116 #define IDirect3DVolumeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1117 /*** IDirect3DVolumeTexture9 methods: IDirect3DBaseTexture9 ***/
1118 #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1119 #define IDirect3DVolumeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1120 #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1121 #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1122 #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1123 #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1124 /*** IDirect3DVolumeTexture9 methods ***/
1125 #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1126 #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
1127 #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
1128 #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
1129 #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
1130 #else
1131 /*** IUnknown methods ***/
1132 #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1133 #define IDirect3DVolumeTexture9_AddRef(p) (p)->AddRef()
1134 #define IDirect3DVolumeTexture9_Release(p) (p)->Release()
1135 /*** IDirect3DVolumeTexture9 methods: IDirect3DResource9 ***/
1136 #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->GetDevice(a)
1137 #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1138 #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1139 #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1140 #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->SetPriority(a)
1141 #define IDirect3DVolumeTexture9_GetPriority(p) (p)->GetPriority()
1142 #define IDirect3DVolumeTexture9_PreLoad(p) (p)->PreLoad()
1143 #define IDirect3DVolumeTexture9_GetType(p) (p)->GetType()
1144 /*** IDirect3DVolumeTexture9 methods: IDirect3DBaseTexture9 ***/
1145 #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->SetLOD(a)
1146 #define IDirect3DVolumeTexture9_GetLOD(p) (p)->GetLOD()
1147 #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->GetLevelCount()
1148 #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1149 #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1150 #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1151 /*** IDirect3DVolumeTexture9 methods ***/
1152 #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1153 #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b)
1154 #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d)
1155 #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->UnlockBox(a)
1156 #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->AddDirtyBox(a)
1157 #endif
1158
1159 /*****************************************************************************
1160 * IDirect3DVertexDeclaration9 interface
1161 */
1162 #define INTERFACE IDirect3DVertexDeclaration9
1163 DECLARE_INTERFACE_(IDirect3DVertexDeclaration9,IUnknown)
1164 {
1165 /*** IUnknown methods ***/
1166 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1167 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1168 STDMETHOD_(ULONG,Release)(THIS) PURE;
1169 /*** IDirect3DVertexDeclaration9 methods ***/
1170 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
1171 STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9*, UINT* pNumElements) PURE;
1172 };
1173 #undef INTERFACE
1174
1175 #ifdef __CRT_UUID_DECL
1176 __CRT_UUID_DECL(IDirect3DVertexDeclaration9, 0xdd13c59c, 0x36fa, 0x4098, 0xa8, 0xfb, 0xc7, 0xed, 0x39, 0xdc, 0x85, 0x46);
1177 #endif
1178
1179 #if !defined(__cplusplus) || defined(CINTERFACE)
1180 /*** IUnknown methods ***/
1181 #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1182 #define IDirect3DVertexDeclaration9_AddRef(p) (p)->lpVtbl->AddRef(p)
1183 #define IDirect3DVertexDeclaration9_Release(p) (p)->lpVtbl->Release(p)
1184 /*** IDirect3DVertexShader9 methods ***/
1185 #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1186 #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->lpVtbl->GetDeclaration(p,a,b)
1187 #else
1188 /*** IUnknown methods ***/
1189 #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1190 #define IDirect3DVertexDeclaration9_AddRef(p) (p)->AddRef()
1191 #define IDirect3DVertexDeclaration9_Release(p) (p)->Release()
1192 /*** IDirect3DVertexShader9 methods ***/
1193 #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->GetDevice(a)
1194 #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->GetDeclaration(a,b)
1195 #endif
1196
1197 /*****************************************************************************
1198 * IDirect3DVertexShader9 interface
1199 */
1200 #define INTERFACE IDirect3DVertexShader9
1201 DECLARE_INTERFACE_(IDirect3DVertexShader9,IUnknown)
1202 {
1203 /*** IUnknown methods ***/
1204 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1205 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1206 STDMETHOD_(ULONG,Release)(THIS) PURE;
1207 /*** IDirect3DVertexShader9 methods ***/
1208 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
1209 STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE;
1210 };
1211 #undef INTERFACE
1212
1213 #ifdef __CRT_UUID_DECL
1214 __CRT_UUID_DECL(IDirect3DVertexShader9, 0xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36);
1215 #endif
1216
1217 #if !defined(__cplusplus) || defined(CINTERFACE)
1218 /*** IUnknown methods ***/
1219 #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1220 #define IDirect3DVertexShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
1221 #define IDirect3DVertexShader9_Release(p) (p)->lpVtbl->Release(p)
1222 /*** IDirect3DVertexShader9 methods ***/
1223 #define IDirect3DVertexShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1224 #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1225 #else
1226 /*** IUnknown methods ***/
1227 #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1228 #define IDirect3DVertexShader9_AddRef(p) (p)->AddRef()
1229 #define IDirect3DVertexShader9_Release(p) (p)->Release()
1230 /*** IDirect3DVertexShader9 methods ***/
1231 #define IDirect3DVertexShader9_GetDevice(p,a) (p)->GetDevice(a)
1232 #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->GetFunction(a,b)
1233 #endif
1234
1235 /*****************************************************************************
1236 * IDirect3DPixelShader9 interface
1237 */
1238 #define INTERFACE IDirect3DPixelShader9
1239 DECLARE_INTERFACE_(IDirect3DPixelShader9,IUnknown)
1240 {
1241 /*** IUnknown methods ***/
1242 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1243 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1244 STDMETHOD_(ULONG,Release)(THIS) PURE;
1245 /*** IDirect3DPixelShader9 methods ***/
1246 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
1247 STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE;
1248 };
1249 #undef INTERFACE
1250
1251 #ifdef __CRT_UUID_DECL
1252 __CRT_UUID_DECL(IDirect3DPixelShader9, 0x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89);
1253 #endif
1254
1255 #if !defined(__cplusplus) || defined(CINTERFACE)
1256 /*** IUnknown methods ***/
1257 #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1258 #define IDirect3DPixelShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
1259 #define IDirect3DPixelShader9_Release(p) (p)->lpVtbl->Release(p)
1260 /*** IDirect3DPixelShader9 methods ***/
1261 #define IDirect3DPixelShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1262 #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1263 #else
1264 /*** IUnknown methods ***/
1265 #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1266 #define IDirect3DPixelShader9_AddRef(p) (p)->AddRef()
1267 #define IDirect3DPixelShader9_Release(p) (p)->Release()
1268 /*** IDirect3DPixelShader9 methods ***/
1269 #define IDirect3DPixelShader9_GetDevice(p,a) (p)->GetDevice(a)
1270 #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->GetFunction(a,b)
1271 #endif
1272
1273 /*****************************************************************************
1274 * IDirect3DStateBlock9 interface
1275 */
1276 #define INTERFACE IDirect3DStateBlock9
1277 DECLARE_INTERFACE_(IDirect3DStateBlock9,IUnknown)
1278 {
1279 /*** IUnknown methods ***/
1280 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1281 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1282 STDMETHOD_(ULONG,Release)(THIS) PURE;
1283 /*** IDirect3DStateBlock9 methods ***/
1284 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
1285 STDMETHOD(Capture)(THIS) PURE;
1286 STDMETHOD(Apply)(THIS) PURE;
1287 };
1288 #undef INTERFACE
1289
1290 #ifdef __CRT_UUID_DECL
1291 __CRT_UUID_DECL(IDirect3DStateBlock9, 0xb07c4fe5, 0x310d, 0x4ba8, 0xa2, 0x3c, 0x4f, 0xf, 0x20, 0x6f, 0x21, 0x8b);
1292 #endif
1293
1294 #if !defined(__cplusplus) || defined(CINTERFACE)
1295 /*** IUnknown methods ***/
1296 #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1297 #define IDirect3DStateBlock9_AddRef(p) (p)->lpVtbl->AddRef(p)
1298 #define IDirect3DStateBlock9_Release(p) (p)->lpVtbl->Release(p)
1299 /*** IDirect3DStateBlock9 methods ***/
1300 #define IDirect3DStateBlock9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1301 #define IDirect3DStateBlock9_Capture(p) (p)->lpVtbl->Capture(p)
1302 #define IDirect3DStateBlock9_Apply(p) (p)->lpVtbl->Apply(p)
1303 #else
1304 /*** IUnknown methods ***/
1305 #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1306 #define IDirect3DStateBlock9_AddRef(p) (p)->AddRef()
1307 #define IDirect3DStateBlock9_Release(p) (p)->Release()
1308 /*** IDirect3DStateBlock9 methods ***/
1309 #define IDirect3DStateBlock9_GetDevice(p,a) (p)->GetDevice(a)
1310 #define IDirect3DStateBlock9_Capture(p) (p)->Capture()
1311 #define IDirect3DStateBlock9_Apply(p) (p)->Apply()
1312 #endif
1313
1314 /*****************************************************************************
1315 * IDirect3DQuery9 interface
1316 */
1317 #define INTERFACE IDirect3DQuery9
1318 DECLARE_INTERFACE_(IDirect3DQuery9,IUnknown)
1319 {
1320 /*** IUnknown methods ***/
1321 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1322 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1323 STDMETHOD_(ULONG,Release)(THIS) PURE;
1324 /*** IDirect3DQuery9 methods ***/
1325 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE;
1326 STDMETHOD_(D3DQUERYTYPE, GetType)(THIS) PURE;
1327 STDMETHOD_(DWORD, GetDataSize)(THIS) PURE;
1328 STDMETHOD(Issue)(THIS_ DWORD dwIssueFlags) PURE;
1329 STDMETHOD(GetData)(THIS_ void* pData, DWORD dwSize, DWORD dwGetDataFlags) PURE;
1330 };
1331 #undef INTERFACE
1332
1333 #ifdef __CRT_UUID_DECL
1334 __CRT_UUID_DECL(IDirect3DQuery9, 0xd9771460, 0xa695, 0x4f26, 0xbb, 0xd3, 0x27, 0xb8, 0x40, 0xb5, 0x41, 0xcc);
1335 #endif
1336
1337 #if !defined(__cplusplus) || defined(CINTERFACE)
1338 /*** IUnknown methods ***/
1339 #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1340 #define IDirect3DQuery9_AddRef(p) (p)->lpVtbl->AddRef(p)
1341 #define IDirect3DQuery9_Release(p) (p)->lpVtbl->Release(p)
1342 /*** IDirect3DQuery9 ***/
1343 #define IDirect3DQuery9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1344 #define IDirect3DQuery9_GetType(p) (p)->lpVtbl->GetType(p)
1345 #define IDirect3DQuery9_GetDataSize(p) (p)->lpVtbl->GetDataSize(p)
1346 #define IDirect3DQuery9_Issue(p,a) (p)->lpVtbl->Issue(p,a)
1347 #define IDirect3DQuery9_GetData(p,a,b,c) (p)->lpVtbl->GetData(p,a,b,c)
1348 #else
1349 /*** IUnknown methods ***/
1350 #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1351 #define IDirect3DQuery9_AddRef(p) (p)->AddRef()
1352 #define IDirect3DQuery9_Release(p) (p)->Release()
1353 /*** IDirect3DQuery9 ***/
1354 #define IDirect3DQuery9_GetDevice(p,a) (p)->GetDevice(a)
1355 #define IDirect3DQuery9_GetType(p) (p)->GetType()
1356 #define IDirect3DQuery9_GetDataSize(p) (p)->GetDataSize()
1357 #define IDirect3DQuery9_Issue(p,a) (p)->Issue(a)
1358 #define IDirect3DQuery9_GetData(p,a,b,c) (p)->GetData(a,b,c)
1359 #endif
1360
1361 /*****************************************************************************
1362 * IDirect3DDevice9 interface
1363 */
1364 #define INTERFACE IDirect3DDevice9
1365 DECLARE_INTERFACE_(IDirect3DDevice9,IUnknown)
1366 {
1367 /*** IUnknown methods ***/
1368 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1369 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1370 STDMETHOD_(ULONG,Release)(THIS) PURE;
1371 /*** IDirect3DDevice9 methods ***/
1372 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
1373 STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE;
1374 STDMETHOD(EvictManagedResources)(THIS) PURE;
1375 STDMETHOD(GetDirect3D)(THIS_ IDirect3D9** ppD3D9) PURE;
1376 STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS9* pCaps) PURE;
1377 STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain, D3DDISPLAYMODE* pMode) PURE;
1378 STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE;
1379 STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9* pCursorBitmap) PURE;
1380 STDMETHOD_(void, SetCursorPosition)(THIS_ int X,int Y, DWORD Flags) PURE;
1381 STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE;
1382 STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DSwapChain9** pSwapChain) PURE;
1383 STDMETHOD(GetSwapChain)(THIS_ UINT iSwapChain, IDirect3DSwapChain9** pSwapChain) PURE;
1384 STDMETHOD_(UINT, GetNumberOfSwapChains)(THIS) PURE;
1385 STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE;
1386 STDMETHOD(Present)(THIS_ const RECT *src_rect, const RECT *dst_rect,
1387 HWND dst_window_override, const RGNDATA *dirty_region) PURE;
1388 STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer) PURE;
1389 STDMETHOD(GetRasterStatus)(THIS_ UINT iSwapChain, D3DRASTER_STATUS* pRasterStatus) PURE;
1390 STDMETHOD(SetDialogBoxMode)(THIS_ BOOL bEnableDialogs) PURE;
1391 STDMETHOD_(void, SetGammaRamp)(THIS_ UINT swapchain_idx, DWORD flags, const D3DGAMMARAMP *ramp) PURE;
1392 STDMETHOD_(void, GetGammaRamp)(THIS_ UINT iSwapChain, D3DGAMMARAMP* pRamp) PURE;
1393 STDMETHOD(CreateTexture)(THIS_ UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture, HANDLE* pSharedHandle) PURE;
1394 STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9** ppVolumeTexture, HANDLE* pSharedHandle) PURE;
1395 STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9** ppCubeTexture, HANDLE* pSharedHandle) PURE;
1396 STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9** ppVertexBuffer, HANDLE* pSharedHandle) PURE;
1397 STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9** ppIndexBuffer, HANDLE* pSharedHandle) PURE;
1398 STDMETHOD(CreateRenderTarget)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE;
1399 STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE;
1400 STDMETHOD(UpdateSurface)(THIS_ IDirect3DSurface9 *src_surface, const RECT *src_rect,
1401 IDirect3DSurface9 *dst_surface, const POINT *dst_point) PURE;
1402 STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture9* pSourceTexture, IDirect3DBaseTexture9* pDestinationTexture) PURE;
1403 STDMETHOD(GetRenderTargetData)(THIS_ IDirect3DSurface9* pRenderTarget, IDirect3DSurface9* pDestSurface) PURE;
1404 STDMETHOD(GetFrontBufferData)(THIS_ UINT iSwapChain, IDirect3DSurface9* pDestSurface) PURE;
1405 STDMETHOD(StretchRect)(THIS_ IDirect3DSurface9 *src_surface, const RECT *src_rect,
1406 IDirect3DSurface9 *dst_surface, const RECT *dst_rect, D3DTEXTUREFILTERTYPE filter) PURE;
1407 STDMETHOD(ColorFill)(THIS_ IDirect3DSurface9 *surface, const RECT *rect, D3DCOLOR color) PURE;
1408 STDMETHOD(CreateOffscreenPlainSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE;
1409 STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9* pRenderTarget) PURE;
1410 STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9** ppRenderTarget) PURE;
1411 STDMETHOD(SetDepthStencilSurface)(THIS_ IDirect3DSurface9* pNewZStencil) PURE;
1412 STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface9** ppZStencilSurface) PURE;
1413 STDMETHOD(BeginScene)(THIS) PURE;
1414 STDMETHOD(EndScene)(THIS) PURE;
1415 STDMETHOD(Clear)(THIS_ DWORD rect_count, const D3DRECT *rects, DWORD flags,
1416 D3DCOLOR color, float z, DWORD stencil) PURE;
1417 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE state, const D3DMATRIX *matrix) PURE;
1418 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix) PURE;
1419 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE state, const D3DMATRIX *matrix) PURE;
1420 STDMETHOD(SetViewport)(THIS_ const D3DVIEWPORT9 *viewport) PURE;
1421 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT9* pViewport) PURE;
1422 STDMETHOD(SetMaterial)(THIS_ const D3DMATERIAL9 *material) PURE;
1423 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL9* pMaterial) PURE;
1424 STDMETHOD(SetLight)(THIS_ DWORD index, const D3DLIGHT9 *light) PURE;
1425 STDMETHOD(GetLight)(THIS_ DWORD Index, D3DLIGHT9*) PURE;
1426 STDMETHOD(LightEnable)(THIS_ DWORD Index, BOOL Enable) PURE;
1427 STDMETHOD(GetLightEnable)(THIS_ DWORD Index, BOOL* pEnable) PURE;
1428 STDMETHOD(SetClipPlane)(THIS_ DWORD index, const float *plane) PURE;
1429 STDMETHOD(GetClipPlane)(THIS_ DWORD Index, float* pPlane) PURE;
1430 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD Value) PURE;
1431 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD* pValue) PURE;
1432 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9** ppSB) PURE;
1433 STDMETHOD(BeginStateBlock)(THIS) PURE;
1434 STDMETHOD(EndStateBlock)(THIS_ IDirect3DStateBlock9** ppSB) PURE;
1435 STDMETHOD(SetClipStatus)(THIS_ const D3DCLIPSTATUS9 *clip_status) PURE;
1436 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS9* pClipStatus) PURE;
1437 STDMETHOD(GetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9** ppTexture) PURE;
1438 STDMETHOD(SetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9* pTexture) PURE;
1439 STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD* pValue) PURE;
1440 STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) PURE;
1441 STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD* pValue) PURE;
1442 STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) PURE;
1443 STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE;
1444 STDMETHOD(SetPaletteEntries)(THIS_ UINT palette_idx, const PALETTEENTRY *entries) PURE;
1445 STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE;
1446 STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE;
1447 STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE;
1448 STDMETHOD(SetScissorRect)(THIS_ const RECT *rect) PURE;
1449 STDMETHOD(GetScissorRect)(THIS_ RECT* pRect) PURE;
1450 STDMETHOD(SetSoftwareVertexProcessing)(THIS_ BOOL bSoftware) PURE;
1451 STDMETHOD_(BOOL, GetSoftwareVertexProcessing)(THIS) PURE;
1452 STDMETHOD(SetNPatchMode)(THIS_ float nSegments) PURE;
1453 STDMETHOD_(float, GetNPatchMode)(THIS) PURE;
1454 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) PURE;
1455 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount) PURE;
1456 STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE primitive_type,
1457 UINT primitive_count, const void *data, UINT stride) PURE;
1458 STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE primitive_type, UINT min_vertex_idx, UINT vertex_count,
1459 UINT primitive_count, const void *index_data, D3DFORMAT index_format, const void *data, UINT stride) PURE;
1460 STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9* pDestBuffer, IDirect3DVertexDeclaration9* pVertexDecl, DWORD Flags) PURE;
1461 STDMETHOD(CreateVertexDeclaration)(THIS_ const D3DVERTEXELEMENT9 *elements,
1462 IDirect3DVertexDeclaration9 **declaration) PURE;
1463 STDMETHOD(SetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9* pDecl) PURE;
1464 STDMETHOD(GetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9** ppDecl) PURE;
1465 STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE;
1466 STDMETHOD(GetFVF)(THIS_ DWORD* pFVF) PURE;
1467 STDMETHOD(CreateVertexShader)(THIS_ const DWORD *byte_code, IDirect3DVertexShader9 **shader) PURE;
1468 STDMETHOD(SetVertexShader)(THIS_ IDirect3DVertexShader9* pShader) PURE;
1469 STDMETHOD(GetVertexShader)(THIS_ IDirect3DVertexShader9** ppShader) PURE;
1470 STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT reg_idx, const float *data, UINT count) PURE;
1471 STDMETHOD(GetVertexShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE;
1472 STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT reg_idx, const int *data, UINT count) PURE;
1473 STDMETHOD(GetVertexShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE;
1474 STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT reg_idx, const BOOL *data, UINT count) PURE;
1475 STDMETHOD(GetVertexShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE;
1476 STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9* pStreamData, UINT OffsetInBytes, UINT Stride) PURE;
1477 STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9** ppStreamData, UINT* OffsetInBytes, UINT* pStride) PURE;
1478 STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT Divider) PURE;
1479 STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT* Divider) PURE;
1480 STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer9* pIndexData) PURE;
1481 STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer9** ppIndexData) PURE;
1482 STDMETHOD(CreatePixelShader)(THIS_ const DWORD *byte_code, IDirect3DPixelShader9 **shader) PURE;
1483 STDMETHOD(SetPixelShader)(THIS_ IDirect3DPixelShader9* pShader) PURE;
1484 STDMETHOD(GetPixelShader)(THIS_ IDirect3DPixelShader9** ppShader) PURE;
1485 STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT reg_idx, const float *data, UINT count) PURE;
1486 STDMETHOD(GetPixelShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE;
1487 STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT reg_idx, const int *data, UINT count) PURE;
1488 STDMETHOD(GetPixelShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE;
1489 STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT reg_idx, const BOOL *data, UINT count) PURE;
1490 STDMETHOD(GetPixelShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE;
1491 STDMETHOD(DrawRectPatch)(THIS_ UINT handle, const float *segment_count, const D3DRECTPATCH_INFO *patch_info) PURE;
1492 STDMETHOD(DrawTriPatch)(THIS_ UINT handle, const float *segment_count, const D3DTRIPATCH_INFO *patch_info) PURE;
1493 STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE;
1494 STDMETHOD(CreateQuery)(THIS_ D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery) PURE;
1495 };
1496 #undef INTERFACE
1497
1498 #ifdef __CRT_UUID_DECL
1499 __CRT_UUID_DECL(IDirect3DDevice9, 0xd0223b96, 0xbf7a, 0x43fd, 0x92, 0xbd, 0xa4, 0x3b, 0xd, 0x82, 0xb9, 0xeb);
1500 #endif
1501
1502 #if !defined(__cplusplus) || defined(CINTERFACE)
1503 /*** IUnknown methods ***/
1504 #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1505 #define IDirect3DDevice9_AddRef(p) (p)->lpVtbl->AddRef(p)
1506 #define IDirect3DDevice9_Release(p) (p)->lpVtbl->Release(p)
1507 /*** IDirect3DDevice9 methods ***/
1508 #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
1509 #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
1510 #define IDirect3DDevice9_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
1511 #define IDirect3DDevice9_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1512 #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
1513 #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
1514 #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
1515 #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
1516 #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
1517 #define IDirect3DDevice9_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
1518 #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
1519 #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
1520 #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
1521 #define IDirect3DDevice9_Reset(p,a) (p)->lpVtbl->Reset(p,a)
1522 #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
1523 #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
1524 #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
1525 #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
1526 #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
1527 #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
1528 #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h)
1529 #define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i)
1530 #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g)
1531 #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f)
1532 #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f)
1533 #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h)
1534 #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h)
1535 #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
1536 #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
1537 #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
1538 #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
1539 #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
1540 #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
1541 #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f)
1542 #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1543 #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
1544 #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
1545 #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
1546 #define IDirect3DDevice9_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1547 #define IDirect3DDevice9_EndScene(p) (p)->lpVtbl->EndScene(p)
1548 #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
1549 #define IDirect3DDevice9_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1550 #define IDirect3DDevice9_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1551 #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1552 #define IDirect3DDevice9_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
1553 #define IDirect3DDevice9_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
1554 #define IDirect3DDevice9_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
1555 #define IDirect3DDevice9_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
1556 #define IDirect3DDevice9_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
1557 #define IDirect3DDevice9_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
1558 #define IDirect3DDevice9_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
1559 #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
1560 #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
1561 #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
1562 #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1563 #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1564 #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
1565 #define IDirect3DDevice9_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
1566 #define IDirect3DDevice9_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
1567 #define IDirect3DDevice9_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1568 #define IDirect3DDevice9_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1569 #define IDirect3DDevice9_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
1570 #define IDirect3DDevice9_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
1571 #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
1572 #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
1573 #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
1574 #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
1575 #define IDirect3DDevice9_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
1576 #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
1577 #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
1578 #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
1579 #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
1580 #define IDirect3DDevice9_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
1581 #define IDirect3DDevice9_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
1582 #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
1583 #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
1584 #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
1585 #define IDirect3DDevice9_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
1586 #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
1587 #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
1588 #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
1589 #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
1590 #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
1591 #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b)
1592 #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
1593 #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
1594 #define IDirect3DDevice9_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
1595 #define IDirect3DDevice9_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
1596 #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b)
1597 #define IDirect3DDevice9_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
1598 #define IDirect3DDevice9_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
1599 #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
1600 #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
1601 #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
1602 #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
1603 #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
1604 #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
1605 #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
1606 #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
1607 #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
1608 #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
1609 #define IDirect3DDevice9_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
1610 #define IDirect3DDevice9_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
1611 #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
1612 #define IDirect3DDevice9_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
1613 #define IDirect3DDevice9_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
1614 #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
1615 #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
1616 #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
1617 #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
1618 #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
1619 #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
1620 #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
1621 #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
1622 #define IDirect3DDevice9_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
1623 #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b)
1624 #else
1625 /*** IUnknown methods ***/
1626 #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1627 #define IDirect3DDevice9_AddRef(p) (p)->AddRef()
1628 #define IDirect3DDevice9_Release(p) (p)->Release()
1629 /*** IDirect3DDevice9 methods ***/
1630 #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
1631 #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
1632 #define IDirect3DDevice9_EvictManagedResources(p) (p)->EvictManagedResources()
1633 #define IDirect3DDevice9_GetDirect3D(p,a) (p)->GetDirect3D(a)
1634 #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
1635 #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b)
1636 #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
1637 #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
1638 #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
1639 #define IDirect3DDevice9_ShowCursor(p,a) (p)->ShowCursor(a)
1640 #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
1641 #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b)
1642 #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains()
1643 #define IDirect3DDevice9_Reset(p,a) (p)->Reset(a)
1644 #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
1645 #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d)
1646 #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b)
1647 #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a)
1648 #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c)
1649 #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b)
1650 #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h)
1651 #define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i)
1652 #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g)
1653 #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f)
1654 #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f)
1655 #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h)
1656 #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h)
1657 #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d)
1658 #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
1659 #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b)
1660 #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b)
1661 #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e)
1662 #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c)
1663 #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f)
1664 #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
1665 #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b)
1666 #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a)
1667 #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
1668 #define IDirect3DDevice9_BeginScene(p) (p)->BeginScene()
1669 #define IDirect3DDevice9_EndScene(p) (p)->EndScene()
1670 #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
1671 #define IDirect3DDevice9_SetTransform(p,a,b) (p)->SetTransform(a,b)
1672 #define IDirect3DDevice9_GetTransform(p,a,b) (p)->GetTransform(a,b)
1673 #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
1674 #define IDirect3DDevice9_SetViewport(p,a) (p)->SetViewport(a)
1675 #define IDirect3DDevice9_GetViewport(p,a) (p)->GetViewport(a)
1676 #define IDirect3DDevice9_SetMaterial(p,a) (p)->SetMaterial(a)
1677 #define IDirect3DDevice9_GetMaterial(p,a) (p)->GetMaterial(a)
1678 #define IDirect3DDevice9_SetLight(p,a,b) (p)->SetLight(a,b)
1679 #define IDirect3DDevice9_GetLight(p,a,b) (p)->GetLight(a,b)
1680 #define IDirect3DDevice9_LightEnable(p,a,b) (p)->LightEnable(a,b)
1681 #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
1682 #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
1683 #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
1684 #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
1685 #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
1686 #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
1687 #define IDirect3DDevice9_BeginStateBlock(p) (p)->BeginStateBlock()
1688 #define IDirect3DDevice9_EndStateBlock(p,a) (p)->EndStateBlock(a)
1689 #define IDirect3DDevice9_SetClipStatus(p,a) (p)->SetClipStatus(a)
1690 #define IDirect3DDevice9_GetClipStatus(p,a) (p)->GetClipStatus(a)
1691 #define IDirect3DDevice9_GetTexture(p,a,b) (p)->GetTexture(a,b)
1692 #define IDirect3DDevice9_SetTexture(p,a,b) (p)->SetTexture(a,b)
1693 #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
1694 #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
1695 #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c)
1696 #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c)
1697 #define IDirect3DDevice9_ValidateDevice(p,a) (p)->ValidateDevice(a)
1698 #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
1699 #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
1700 #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
1701 #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
1702 #define IDirect3DDevice9_SetScissorRect(p,a) (p)->SetScissorRect(a)
1703 #define IDirect3DDevice9_GetScissorRect(p,a) (p)->GetScissorRect(a)
1704 #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a)
1705 #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing()
1706 #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->SetNPatchMode(a)
1707 #define IDirect3DDevice9_GetNPatchMode(p) (p)->GetNPatchMode()
1708 #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
1709 #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f)
1710 #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
1711 #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
1712 #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f)
1713 #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b)
1714 #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a)
1715 #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a)
1716 #define IDirect3DDevice9_SetFVF(p,a) (p)->SetFVF(a)
1717 #define IDirect3DDevice9_GetFVF(p,a) (p)->GetFVF(a)
1718 #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b)
1719 #define IDirect3DDevice9_SetVertexShader(p,a) (p)->SetVertexShader(a)
1720 #define IDirect3DDevice9_GetVertexShader(p,a) (p)->GetVertexShader(a)
1721 #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c)
1722 #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c)
1723 #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c)
1724 #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c)
1725 #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c)
1726 #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c)
1727 #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d)
1728 #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d)
1729 #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b)
1730 #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b)
1731 #define IDirect3DDevice9_SetIndices(p,a) (p)->SetIndices(a)
1732 #define IDirect3DDevice9_GetIndices(p,a) (p)->GetIndices(a)
1733 #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
1734 #define IDirect3DDevice9_SetPixelShader(p,a) (p)->SetPixelShader(a)
1735 #define IDirect3DDevice9_GetPixelShader(p,a) (p)->GetPixelShader(a)
1736 #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c)
1737 #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c)
1738 #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c)
1739 #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c)
1740 #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c)
1741 #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c)
1742 #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
1743 #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
1744 #define IDirect3DDevice9_DeletePatch(p,a) (p)->DeletePatch(a)
1745 #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->CreateQuery(a,b)
1746 #endif
1747
1748
1749 /*****************************************************************************
1750 * IDirect3DDevice9Ex interface
1751 */
1752 #define INTERFACE IDirect3DDevice9Ex
1753 DECLARE_INTERFACE_(IDirect3DDevice9Ex,IDirect3DDevice9)
1754 {
1755 /*** IUnknown methods ***/
1756 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1757 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1758 STDMETHOD_(ULONG,Release)(THIS) PURE;
1759 /*** IDirect3DDevice9 methods ***/
1760 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
1761 STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE;
1762 STDMETHOD(EvictManagedResources)(THIS) PURE;
1763 STDMETHOD(GetDirect3D)(THIS_ IDirect3D9** ppD3D9) PURE;
1764 STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS9* pCaps) PURE;
1765 STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain, D3DDISPLAYMODE* pMode) PURE;
1766 STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE;
1767 STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9* pCursorBitmap) PURE;
1768 STDMETHOD_(void, SetCursorPosition)(THIS_ int X,int Y, DWORD Flags) PURE;
1769 STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE;
1770 STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DSwapChain9** pSwapChain) PURE;
1771 STDMETHOD(GetSwapChain)(THIS_ UINT iSwapChain, IDirect3DSwapChain9** pSwapChain) PURE;
1772 STDMETHOD_(UINT, GetNumberOfSwapChains)(THIS) PURE;
1773 STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE;
1774 STDMETHOD(Present)(THIS_ const RECT *src_rect, const RECT *dst_rect,
1775 HWND dst_window_override, const RGNDATA *dirty_region) PURE;
1776 STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer) PURE;
1777 STDMETHOD(GetRasterStatus)(THIS_ UINT iSwapChain, D3DRASTER_STATUS* pRasterStatus) PURE;
1778 STDMETHOD(SetDialogBoxMode)(THIS_ BOOL bEnableDialogs) PURE;
1779 STDMETHOD_(void, SetGammaRamp)(THIS_ UINT swapchain_idx, DWORD flags, const D3DGAMMARAMP *ramp) PURE;
1780 STDMETHOD_(void, GetGammaRamp)(THIS_ UINT iSwapChain, D3DGAMMARAMP* pRamp) PURE;
1781 STDMETHOD(CreateTexture)(THIS_ UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture, HANDLE* pSharedHandle) PURE;
1782 STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9** ppVolumeTexture, HANDLE* pSharedHandle) PURE;
1783 STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9** ppCubeTexture, HANDLE* pSharedHandle) PURE;
1784 STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9** ppVertexBuffer, HANDLE* pSharedHandle) PURE;
1785 STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9** ppIndexBuffer, HANDLE* pSharedHandle) PURE;
1786 STDMETHOD(CreateRenderTarget)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE;
1787 STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE;
1788 STDMETHOD(UpdateSurface)(THIS_ IDirect3DSurface9 *src_surface, const RECT *src_rect,
1789 IDirect3DSurface9 *dst_surface, const POINT *dst_point) PURE;
1790 STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture9* pSourceTexture, IDirect3DBaseTexture9* pDestinationTexture) PURE;
1791 STDMETHOD(GetRenderTargetData)(THIS_ IDirect3DSurface9* pRenderTarget, IDirect3DSurface9* pDestSurface) PURE;
1792 STDMETHOD(GetFrontBufferData)(THIS_ UINT iSwapChain, IDirect3DSurface9* pDestSurface) PURE;
1793 STDMETHOD(StretchRect)(THIS_ IDirect3DSurface9 *src_surface, const RECT *src_rect,
1794 IDirect3DSurface9 *dst_surface, const RECT *dst_rect, D3DTEXTUREFILTERTYPE filter) PURE;
1795 STDMETHOD(ColorFill)(THIS_ IDirect3DSurface9 *surface, const RECT *rect, D3DCOLOR color) PURE;
1796 STDMETHOD(CreateOffscreenPlainSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE;
1797 STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9* pRenderTarget) PURE;
1798 STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9** ppRenderTarget) PURE;
1799 STDMETHOD(SetDepthStencilSurface)(THIS_ IDirect3DSurface9* pNewZStencil) PURE;
1800 STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface9** ppZStencilSurface) PURE;
1801 STDMETHOD(BeginScene)(THIS) PURE;
1802 STDMETHOD(EndScene)(THIS) PURE;
1803 STDMETHOD(Clear)(THIS_ DWORD rect_count, const D3DRECT *rects, DWORD flags,
1804 D3DCOLOR color, float z, DWORD stencil) PURE;
1805 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE state, const D3DMATRIX *matrix) PURE;
1806 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix) PURE;
1807 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE state, const D3DMATRIX *matrix) PURE;
1808 STDMETHOD(SetViewport)(THIS_ const D3DVIEWPORT9 *viewport) PURE;
1809 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT9* pViewport) PURE;
1810 STDMETHOD(SetMaterial)(THIS_ const D3DMATERIAL9 *material) PURE;
1811 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL9* pMaterial) PURE;
1812 STDMETHOD(SetLight)(THIS_ DWORD index, const D3DLIGHT9 *light) PURE;
1813 STDMETHOD(GetLight)(THIS_ DWORD Index, D3DLIGHT9*) PURE;
1814 STDMETHOD(LightEnable)(THIS_ DWORD Index, BOOL Enable) PURE;
1815 STDMETHOD(GetLightEnable)(THIS_ DWORD Index, BOOL* pEnable) PURE;
1816 STDMETHOD(SetClipPlane)(THIS_ DWORD index, const float *plane) PURE;
1817 STDMETHOD(GetClipPlane)(THIS_ DWORD Index, float* pPlane) PURE;
1818 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD Value) PURE;
1819 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD* pValue) PURE;
1820 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9** ppSB) PURE;
1821 STDMETHOD(BeginStateBlock)(THIS) PURE;
1822 STDMETHOD(EndStateBlock)(THIS_ IDirect3DStateBlock9** ppSB) PURE;
1823 STDMETHOD(SetClipStatus)(THIS_ const D3DCLIPSTATUS9 *clip_status) PURE;
1824 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS9* pClipStatus) PURE;
1825 STDMETHOD(GetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9** ppTexture) PURE;
1826 STDMETHOD(SetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9* pTexture) PURE;
1827 STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD* pValue) PURE;
1828 STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) PURE;
1829 STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD* pValue) PURE;
1830 STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) PURE;
1831 STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE;
1832 STDMETHOD(SetPaletteEntries)(THIS_ UINT palette_idx, const PALETTEENTRY *entries) PURE;
1833 STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE;
1834 STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE;
1835 STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE;
1836 STDMETHOD(SetScissorRect)(THIS_ const RECT *rect) PURE;
1837 STDMETHOD(GetScissorRect)(THIS_ RECT* pRect) PURE;
1838 STDMETHOD(SetSoftwareVertexProcessing)(THIS_ BOOL bSoftware) PURE;
1839 STDMETHOD_(BOOL, GetSoftwareVertexProcessing)(THIS) PURE;
1840 STDMETHOD(SetNPatchMode)(THIS_ float nSegments) PURE;
1841 STDMETHOD_(float, GetNPatchMode)(THIS) PURE;
1842 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) PURE;
1843 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount) PURE;
1844 STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE primitive_type,
1845 UINT primitive_count, const void *data, UINT stride) PURE;
1846 STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE primitive_type, UINT min_vertex_idx, UINT vertex_count,
1847 UINT primitive_count, const void *index_data, D3DFORMAT index_format, const void *data, UINT stride) PURE;
1848 STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9* pDestBuffer, IDirect3DVertexDeclaration9* pVertexDecl, DWORD Flags) PURE;
1849 STDMETHOD(CreateVertexDeclaration)(THIS_ const D3DVERTEXELEMENT9 *elements,
1850 IDirect3DVertexDeclaration9 **declaration) PURE;
1851 STDMETHOD(SetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9* pDecl) PURE;
1852 STDMETHOD(GetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9** ppDecl) PURE;
1853 STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE;
1854 STDMETHOD(GetFVF)(THIS_ DWORD* pFVF) PURE;
1855 STDMETHOD(CreateVertexShader)(THIS_ const DWORD *byte_core, IDirect3DVertexShader9 **shader) PURE;
1856 STDMETHOD(SetVertexShader)(THIS_ IDirect3DVertexShader9* pShader) PURE;
1857 STDMETHOD(GetVertexShader)(THIS_ IDirect3DVertexShader9** ppShader) PURE;
1858 STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT reg_idx, const float *data, UINT count) PURE;
1859 STDMETHOD(GetVertexShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE;
1860 STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT reg_idx, const int *data, UINT count) PURE;
1861 STDMETHOD(GetVertexShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE;
1862 STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT reg_idx, const BOOL *data, UINT count) PURE;
1863 STDMETHOD(GetVertexShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE;
1864 STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9* pStreamData, UINT OffsetInBytes, UINT Stride) PURE;
1865 STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9** ppStreamData, UINT* OffsetInBytes, UINT* pStride) PURE;
1866 STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT Divider) PURE;
1867 STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT* Divider) PURE;
1868 STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer9* pIndexData) PURE;
1869 STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer9** ppIndexData) PURE;
1870 STDMETHOD(CreatePixelShader)(THIS_ const DWORD *byte_code, IDirect3DPixelShader9 **shader) PURE;
1871 STDMETHOD(SetPixelShader)(THIS_ IDirect3DPixelShader9* pShader) PURE;
1872 STDMETHOD(GetPixelShader)(THIS_ IDirect3DPixelShader9** ppShader) PURE;
1873 STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT reg_idx, const float *data, UINT count) PURE;
1874 STDMETHOD(GetPixelShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE;
1875 STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT reg_idx, const int *data, UINT count) PURE;
1876 STDMETHOD(GetPixelShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE;
1877 STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT reg_idx, const BOOL *data, UINT count) PURE;
1878 STDMETHOD(GetPixelShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE;
1879 STDMETHOD(DrawRectPatch)(THIS_ UINT handle, const float *segment_count, const D3DRECTPATCH_INFO *patch_info) PURE;
1880 STDMETHOD(DrawTriPatch)(THIS_ UINT handle, const float *segment_count, const D3DTRIPATCH_INFO *patch_info) PURE;
1881 STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE;
1882 STDMETHOD(CreateQuery)(THIS_ D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery) PURE;
1883 /* IDirect3DDevice9Ex methods */
1884 STDMETHOD(SetConvolutionMonoKernel)(THIS_ UINT width, UINT height, float *rows, float *columns) PURE;
1885 STDMETHOD(ComposeRects)(THIS_ IDirect3DSurface9 *src_surface, IDirect3DSurface9 *dst_surface,
1886 IDirect3DVertexBuffer9 *src_descs, UINT rect_count, IDirect3DVertexBuffer9 *dst_descs,
1887 D3DCOMPOSERECTSOP operation, INT offset_x, INT offset_y) PURE;
1888 STDMETHOD(PresentEx)(THIS_ const RECT *src_rect, const RECT *dst_rect,
1889 HWND dst_window_override, const RGNDATA *dirty_region, DWORD flags) PURE;
1890 STDMETHOD(GetGPUThreadPriority)(THIS_ INT *pPriority) PURE;
1891 STDMETHOD(SetGPUThreadPriority)(THIS_ INT Priority) PURE;
1892 STDMETHOD(WaitForVBlank)(THIS_ UINT iSwapChain) PURE;
1893 STDMETHOD(CheckResourceResidency)(THIS_ IDirect3DResource9 **resources, UINT32 resource_count) PURE;
1894 STDMETHOD(SetMaximumFrameLatency)(THIS_ UINT MaxLatency) PURE;
1895 STDMETHOD(GetMaximumFrameLatency)(THIS_ UINT *pMaxLatenxy) PURE;
1896 STDMETHOD(CheckDeviceState)(THIS_ HWND dst_window) PURE;
1897 STDMETHOD(CreateRenderTargetEx)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultiSampleQuality, BOOL Lockable, IDirect3DSurface9 ** ppSurface, HANDLE *pSharedHandle, DWORD Usage) PURE;
1898 STDMETHOD(CreateOffscreenPlainSurfaceEx)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle, DWORD Usage) PURE;
1899 STDMETHOD(CreateDepthStencilSurfaceEx)(THIS_ UINT width, UINT height, D3DFORMAT format,
1900 D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL discard,
1901 IDirect3DSurface9 **surface, HANDLE *shared_handle, DWORD usage) PURE;
1902 STDMETHOD(ResetEx)(THIS_ D3DPRESENT_PARAMETERS *pPresentationParameters, D3DDISPLAYMODEEX *pFullscreenDisplayMode) PURE;
1903 STDMETHOD(GetDisplayModeEx)(THIS_ UINT iSwapChain, D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation) PURE;
1904 };
1905 #undef INTERFACE
1906
1907 #ifdef __CRT_UUID_DECL
1908 __CRT_UUID_DECL(IDirect3DDevice9Ex, 0xb18b10ce, 0x2649, 0x405a, 0x87, 0xf, 0x95, 0xf7, 0x77, 0xd4, 0x31, 0x3a);
1909 #endif
1910
1911 #if !defined(__cplusplus) || defined(CINTERFACE)
1912 /*** IUnknown methods ***/
1913 #define IDirect3DDevice9Ex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1914 #define IDirect3DDevice9Ex_AddRef(p) (p)->lpVtbl->AddRef(p)
1915 #define IDirect3DDevice9Ex_Release(p) (p)->lpVtbl->Release(p)
1916 /*** IDirect3DDevice9 methods ***/
1917 #define IDirect3DDevice9Ex_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
1918 #define IDirect3DDevice9Ex_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
1919 #define IDirect3DDevice9Ex_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
1920 #define IDirect3DDevice9Ex_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1921 #define IDirect3DDevice9Ex_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
1922 #define IDirect3DDevice9Ex_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
1923 #define IDirect3DDevice9Ex_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
1924 #define IDirect3DDevice9Ex_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
1925 #define IDirect3DDevice9Ex_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
1926 #define IDirect3DDevice9Ex_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
1927 #define IDirect3DDevice9Ex_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
1928 #define IDirect3DDevice9Ex_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
1929 #define IDirect3DDevice9Ex_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
1930 #define IDirect3DDevice9Ex_Reset(p,a) (p)->lpVtbl->Reset(p,a)
1931 #define IDirect3DDevice9Ex_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
1932 #define IDirect3DDevice9Ex_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
1933 #define IDirect3DDevice9Ex_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
1934 #define IDirect3DDevice9Ex_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
1935 #define IDirect3DDevice9Ex_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
1936 #define IDirect3DDevice9Ex_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
1937 #define IDirect3DDevice9Ex_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h)
1938 #define IDirect3DDevice9Ex_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i)
1939 #define IDirect3DDevice9Ex_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g)
1940 #define IDirect3DDevice9Ex_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f)
1941 #define IDirect3DDevice9Ex_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f)
1942 #define IDirect3DDevice9Ex_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h)
1943 #define IDirect3DDevice9Ex_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h)
1944 #define IDirect3DDevice9Ex_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
1945 #define IDirect3DDevice9Ex_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
1946 #define IDirect3DDevice9Ex_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
1947 #define IDirect3DDevice9Ex_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
1948 #define IDirect3DDevice9Ex_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
1949 #define IDirect3DDevice9Ex_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
1950 #define IDirect3DDevice9Ex_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f)
1951 #define IDirect3DDevice9Ex_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1952 #define IDirect3DDevice9Ex_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
1953 #define IDirect3DDevice9Ex_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
1954 #define IDirect3DDevice9Ex_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
1955 #define IDirect3DDevice9Ex_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1956 #define IDirect3DDevice9Ex_EndScene(p) (p)->lpVtbl->EndScene(p)
1957 #define IDirect3DDevice9Ex_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
1958 #define IDirect3DDevice9Ex_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1959 #define IDirect3DDevice9Ex_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1960 #define IDirect3DDevice9Ex_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1961 #define IDirect3DDevice9Ex_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
1962 #define IDirect3DDevice9Ex_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
1963 #define IDirect3DDevice9Ex_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
1964 #define IDirect3DDevice9Ex_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
1965 #define IDirect3DDevice9Ex_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
1966 #define IDirect3DDevice9Ex_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
1967 #define IDirect3DDevice9Ex_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
1968 #define IDirect3DDevice9Ex_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
1969 #define IDirect3DDevice9Ex_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
1970 #define IDirect3DDevice9Ex_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
1971 #define IDirect3DDevice9Ex_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1972 #define IDirect3DDevice9Ex_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1973 #define IDirect3DDevice9Ex_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
1974 #define IDirect3DDevice9Ex_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
1975 #define IDirect3DDevice9Ex_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
1976 #define IDirect3DDevice9Ex_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1977 #define IDirect3DDevice9Ex_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1978 #define IDirect3DDevice9Ex_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
1979 #define IDirect3DDevice9Ex_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
1980 #define IDirect3DDevice9Ex_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
1981 #define IDirect3DDevice9Ex_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
1982 #define IDirect3DDevice9Ex_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
1983 #define IDirect3DDevice9Ex_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
1984 #define IDirect3DDevice9Ex_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
1985 #define IDirect3DDevice9Ex_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
1986 #define IDirect3DDevice9Ex_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
1987 #define IDirect3DDevice9Ex_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
1988 #define IDirect3DDevice9Ex_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
1989 #define IDirect3DDevice9Ex_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
1990 #define IDirect3DDevice9Ex_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
1991 #define IDirect3DDevice9Ex_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
1992 #define IDirect3DDevice9Ex_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
1993 #define IDirect3DDevice9Ex_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
1994 #define IDirect3DDevice9Ex_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
1995 #define IDirect3DDevice9Ex_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
1996 #define IDirect3DDevice9Ex_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
1997 #define IDirect3DDevice9Ex_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
1998 #define IDirect3DDevice9Ex_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
1999 #define IDirect3DDevice9Ex_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
2000 #define IDirect3DDevice9Ex_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b)
2001 #define IDirect3DDevice9Ex_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
2002 #define IDirect3DDevice9Ex_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
2003 #define IDirect3DDevice9Ex_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
2004 #define IDirect3DDevice9Ex_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
2005 #define IDirect3DDevice9Ex_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b)
2006 #define IDirect3DDevice9Ex_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
2007 #define IDirect3DDevice9Ex_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
2008 #define IDirect3DDevice9Ex_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
2009 #define IDirect3DDevice9Ex_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
2010 #define IDirect3DDevice9Ex_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
2011 #define IDirect3DDevice9Ex_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
2012 #define IDirect3DDevice9Ex_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
2013 #define IDirect3DDevice9Ex_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
2014 #define IDirect3DDevice9Ex_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
2015 #define IDirect3DDevice9Ex_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
2016 #define IDirect3DDevice9Ex_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
2017 #define IDirect3DDevice9Ex_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
2018 #define IDirect3DDevice9Ex_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
2019 #define IDirect3DDevice9Ex_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
2020 #define IDirect3DDevice9Ex_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
2021 #define IDirect3DDevice9Ex_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
2022 #define IDirect3DDevice9Ex_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
2023 #define IDirect3DDevice9Ex_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
2024 #define IDirect3DDevice9Ex_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
2025 #define IDirect3DDevice9Ex_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
2026 #define IDirect3DDevice9Ex_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
2027 #define IDirect3DDevice9Ex_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
2028 #define IDirect3DDevice9Ex_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
2029 #define IDirect3DDevice9Ex_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
2030 #define IDirect3DDevice9Ex_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
2031 #define IDirect3DDevice9Ex_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
2032 #define IDirect3DDevice9Ex_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b)
2033 /* IDirect3DDevice9Ex */
2034 #define IDirect3DDevice9Ex_SetConvolutionMonoKernel(p,a,b,c,d) (p)->lpVtbl->SetConvolutionMonoKernel(p,a,b,c,d)
2035 #define IDirect3DDevice9Ex_ComposeRects(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->ComposeRects(p,a,b,c,d,e,f,g,h)
2036 #define IDirect3DDevice9Ex_PresentEx(p,a,b,c,d,e) (p)->lpVtbl->PresentEx(p,a,b,c,d,e)
2037 #define IDirect3DDevice9Ex_GetGPUThreadPriority(p,a) (p)->lpVtbl->GetGPUThreadPriority(p,a)
2038 #define IDirect3DDevice9Ex_SetGPUThreadPriority(p,a) (p)->lpVtbl->SetGPUThreadPriority(p,a)
2039 #define IDirect3DDevice9Ex_WaitForVBlank(p,a) (p)->lpVtbl->WaitForVBlank(p,a)
2040 #define IDirect3DDevice9Ex_CheckResourceResidency(p,a,b) (p)->lpVtbl->CheckResourceResidency(p,a,b)
2041 #define IDirect3DDevice9Ex_SetMaximumFrameLatency(p,a) (p)->lpVtbl->SetMaximumFrameLatency(p,a)
2042 #define IDirect3DDevice9Ex_GetMaximumFrameLatency(p,a) (p)->lpVtbl->GetMaximumFrameLatency(p,a)
2043 #define IDirect3DDevice9Ex_CheckDeviceState(p,a) (p)->lpVtbl->CheckDeviceState(p,a)
2044 #define IDirect3DDevice9Ex_CreateRenderTargetEx(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateRenderTargetEx(p,a,b,c,d,e,f,g,h,i)
2045 #define IDirect3DDevice9Ex_CreateOffscreenPlainSurfaceEx(p,a,b,c,d,e,f,g)(p)->lpVtbl->CreateOffscreenPlainSurfaceEx(p,a,b,c,d,e,f,g)
2046 #define IDirect3DDevice9Ex_CreateDepthStencilSurfaceEx(p,a,b,c,d,e,f,g,h,i)(p)->lpVtbl->CreateDepthStencilSurfaceEx(p,a,b,c,d,e,f,g,h,i)
2047 #define IDirect3DDevice9Ex_ResetEx(p,a,b) (p)->lpVtbl->ResetEx(p,a,b)
2048 #define IDirect3DDevice9Ex_GetDisplayModeEx(p,a,b,c) (p)->lpVtbl->GetDisplayModeEx(p,a,b,c)
2049 #else
2050 /*** IUnknown methods ***/
2051 #define IDirect3DDevice9Ex_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
2052 #define IDirect3DDevice9Ex_AddRef(p) (p)->AddRef()
2053 #define IDirect3DDevice9Ex_Release(p) (p)->Release()
2054 /*** IDirect3DDevice9 methods ***/
2055 #define IDirect3DDevice9Ex_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
2056 #define IDirect3DDevice9Ex_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
2057 #define IDirect3DDevice9Ex_EvictManagedResources(p) (p)->EvictManagedResources()
2058 #define IDirect3DDevice9Ex_GetDirect3D(p,a) (p)->GetDirect3D(a)
2059 #define IDirect3DDevice9Ex_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
2060 #define IDirect3DDevice9Ex_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b)
2061 #define IDirect3DDevice9Ex_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
2062 #define IDirect3DDevice9Ex_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
2063 #define IDirect3DDevice9Ex_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
2064 #define IDirect3DDevice9Ex_ShowCursor(p,a) (p)->ShowCursor(a)
2065 #define IDirect3DDevice9Ex_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
2066 #define IDirect3DDevice9Ex_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b)
2067 #define IDirect3DDevice9Ex_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains()
2068 #define IDirect3DDevice9Ex_Reset(p,a) (p)->Reset(a)
2069 #define IDirect3DDevice9Ex_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
2070 #define IDirect3DDevice9Ex_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d)
2071 #define IDirect3DDevice9Ex_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b)
2072 #define IDirect3DDevice9Ex_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a)
2073 #define IDirect3DDevice9Ex_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c)
2074 #define IDirect3DDevice9Ex_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b)
2075 #define IDirect3DDevice9Ex_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h)
2076 #define IDirect3DDevice9Ex_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i)
2077 #define IDirect3DDevice9Ex_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g)
2078 #define IDirect3DDevice9Ex_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f)
2079 #define IDirect3DDevice9Ex_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f)
2080 #define IDirect3DDevice9Ex_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h)
2081 #define IDirect3DDevice9Ex_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h)
2082 #define IDirect3DDevice9Ex_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d)
2083 #define IDirect3DDevice9Ex_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
2084 #define IDirect3DDevice9Ex_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b)
2085 #define IDirect3DDevice9Ex_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b)
2086 #define IDirect3DDevice9Ex_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e)
2087 #define IDirect3DDevice9Ex_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c)
2088 #define IDirect3DDevice9Ex_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f)
2089 #define IDirect3DDevice9Ex_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
2090 #define IDirect3DDevice9Ex_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b)
2091 #define IDirect3DDevice9Ex_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a)
2092 #define IDirect3DDevice9Ex_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
2093 #define IDirect3DDevice9Ex_BeginScene(p) (p)->BeginScene()
2094 #define IDirect3DDevice9Ex_EndScene(p) (p)->EndScene()
2095 #define IDirect3DDevice9Ex_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
2096 #define IDirect3DDevice9Ex_SetTransform(p,a,b) (p)->SetTransform(a,b)
2097 #define IDirect3DDevice9Ex_GetTransform(p,a,b) (p)->GetTransform(a,b)
2098 #define IDirect3DDevice9Ex_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
2099 #define IDirect3DDevice9Ex_SetViewport(p,a) (p)->SetViewport(a)
2100 #define IDirect3DDevice9Ex_GetViewport(p,a) (p)->GetViewport(a)
2101 #define IDirect3DDevice9Ex_SetMaterial(p,a) (p)->SetMaterial(a)
2102 #define IDirect3DDevice9Ex_GetMaterial(p,a) (p)->GetMaterial(a)
2103 #define IDirect3DDevice9Ex_SetLight(p,a,b) (p)->SetLight(a,b)
2104 #define IDirect3DDevice9Ex_GetLight(p,a,b) (p)->GetLight(a,b)
2105 #define IDirect3DDevice9Ex_LightEnable(p,a,b) (p)->LightEnable(a,b)
2106 #define IDirect3DDevice9Ex_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
2107 #define IDirect3DDevice9Ex_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
2108 #define IDirect3DDevice9Ex_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
2109 #define IDirect3DDevice9Ex_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
2110 #define IDirect3DDevice9Ex_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
2111 #define IDirect3DDevice9Ex_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
2112 #define IDirect3DDevice9Ex_BeginStateBlock(p) (p)->BeginStateBlock()
2113 #define IDirect3DDevice9Ex_EndStateBlock(p,a) (p)->EndStateBlock(a)
2114 #define IDirect3DDevice9Ex_SetClipStatus(p,a) (p)->SetClipStatus(a)
2115 #define IDirect3DDevice9Ex_GetClipStatus(p,a) (p)->GetClipStatus(a)
2116 #define IDirect3DDevice9Ex_GetTexture(p,a,b) (p)->GetTexture(a,b)
2117 #define IDirect3DDevice9Ex_SetTexture(p,a,b) (p)->SetTexture(a,b)
2118 #define IDirect3DDevice9Ex_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
2119 #define IDirect3DDevice9Ex_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
2120 #define IDirect3DDevice9Ex_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c)
2121 #define IDirect3DDevice9Ex_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c)
2122 #define IDirect3DDevice9Ex_ValidateDevice(p,a) (p)->ValidateDevice(a)
2123 #define IDirect3DDevice9Ex_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
2124 #define IDirect3DDevice9Ex_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
2125 #define IDirect3DDevice9Ex_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
2126 #define IDirect3DDevice9Ex_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
2127 #define IDirect3DDevice9Ex_SetScissorRect(p,a) (p)->SetScissorRect(a)
2128 #define IDirect3DDevice9Ex_GetScissorRect(p,a) (p)->GetScissorRect(a)
2129 #define IDirect3DDevice9Ex_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a)
2130 #define IDirect3DDevice9Ex_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing()
2131 #define IDirect3DDevice9Ex_SetNPatchMode(p,a) (p)->SetNPatchMode(a)
2132 #define IDirect3DDevice9Ex_GetNPatchMode(p) (p)->GetNPatchMode()
2133 #define IDirect3DDevice9Ex_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
2134 #define IDirect3DDevice9Ex_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f)
2135 #define IDirect3DDevice9Ex_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
2136 #define IDirect3DDevice9Ex_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
2137 #define IDirect3DDevice9Ex_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f)
2138 #define IDirect3DDevice9Ex_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b)
2139 #define IDirect3DDevice9Ex_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a)
2140 #define IDirect3DDevice9Ex_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a)
2141 #define IDirect3DDevice9Ex_SetFVF(p,a) (p)->SetFVF(a)
2142 #define IDirect3DDevice9Ex_GetFVF(p,a) (p)->GetFVF(a)
2143 #define IDirect3DDevice9Ex_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b)
2144 #define IDirect3DDevice9Ex_SetVertexShader(p,a) (p)->SetVertexShader(a)
2145 #define IDirect3DDevice9Ex_GetVertexShader(p,a) (p)->GetVertexShader(a)
2146 #define IDirect3DDevice9Ex_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c)
2147 #define IDirect3DDevice9Ex_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c)
2148 #define IDirect3DDevice9Ex_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c)
2149 #define IDirect3DDevice9Ex_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c)
2150 #define IDirect3DDevice9Ex_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c)
2151 #define IDirect3DDevice9Ex_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c)
2152 #define IDirect3DDevice9Ex_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d)
2153 #define IDirect3DDevice9Ex_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d)
2154 #define IDirect3DDevice9Ex_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b)
2155 #define IDirect3DDevice9Ex_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b)
2156 #define IDirect3DDevice9Ex_SetIndices(p,a) (p)->SetIndices(a)
2157 #define IDirect3DDevice9Ex_GetIndices(p,a) (p)->GetIndices(a)
2158 #define IDirect3DDevice9Ex_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
2159 #define IDirect3DDevice9Ex_SetPixelShader(p,a) (p)->SetPixelShader(a)
2160 #define IDirect3DDevice9Ex_GetPixelShader(p,a) (p)->GetPixelShader(a)
2161 #define IDirect3DDevice9Ex_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c)
2162 #define IDirect3DDevice9Ex_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c)
2163 #define IDirect3DDevice9Ex_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c)
2164 #define IDirect3DDevice9Ex_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c)
2165 #define IDirect3DDevice9Ex_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c)
2166 #define IDirect3DDevice9Ex_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c)
2167 #define IDirect3DDevice9Ex_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
2168 #define IDirect3DDevice9Ex_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
2169 #define IDirect3DDevice9Ex_DeletePatch(p,a) (p)->DeletePatch(a)
2170 #define IDirect3DDevice9Ex_CreateQuery(p,a,b) (p)->CreateQuery(a,b)
2171 /* IDirect3DDevice9Ex */
2172 #define IDirect3DDevice9Ex_SetConvolutionMonoKernel(p,a,b,c,d) (p)->SetConvolutionMonoKernel(a,b,c,d)
2173 #define IDirect3DDevice9Ex_ComposeRects(p,a,b,c,d,e,f,g,h) (p)->ComposeRects(a,b,c,d,e,f,g,h)
2174 #define IDirect3DDevice9Ex_PresentEx(p,a,b,c,d,e) (p)->PresentEx(a,b,c,d,e)
2175 #define IDirect3DDevice9Ex_GetGPUThreadPriority(p,a) (p)->GetGPUThreadPriority(a)
2176 #define IDirect3DDevice9Ex_SetGPUThreadPriority(p,a) (p)->SetGPUThreadPriority(a)
2177 #define IDirect3DDevice9Ex_WaitForVBlank(p,a) (p)->WaitForVBlank(a)
2178 #define IDirect3DDevice9Ex_CheckResourceResidency(p,a,b) (p)->CheckResourceResidency(a,b)
2179 #define IDirect3DDevice9Ex_SetMaximumFrameLatency(p,a) (p)->SetMaximumFrameLatency(a)
2180 #define IDirect3DDevice9Ex_GetMaximumFrameLatency(p,a) (p)->GetMaximumFrameLatency(a)
2181 #define IDirect3DDevice9Ex_CheckDeviceState(p,a) (p)->CheckDeviceState(a)
2182 #define IDirect3DDevice9Ex_CreateRenderTargetEx(p,a,b,c,d,e,f,g,h,i) (p)->CreateRenderTargetEx(a,b,c,d,e,f,g,h,i)
2183 #define IDirect3DDevice9Ex_CreateOffscreenPlainSurfaceEx(p,a,b,c,d,e,f,g)(p)->CreateOffscreenPlainSurfaceEx(a,b,c,d,e,f,g)
2184 #define IDirect3DDevice9Ex_CreateDepthStencilSurfaceEx(p,a,b,c,d,e,f,g,h,i)(p)->CreateDepthStencilSurfaceEx(a,b,c,d,e,f,g,h,i)
2185 #define IDirect3DDevice9Ex_ResetEx(p,a,b) (p)->ResetEx(a,b)
2186 #define IDirect3DDevice9Ex_GetDisplayModeEx(p,a,b,c) (p)->GetDisplayModeEx(a,b,c)
2187 #endif
2188
2189 #ifdef __cplusplus
2190 extern "C" {
2191 #endif /* defined(__cplusplus) */
2192
2193 int WINAPI D3DPERF_BeginEvent(D3DCOLOR color, const WCHAR *name);
2194 int WINAPI D3DPERF_EndEvent(void);
2195 DWORD WINAPI D3DPERF_GetStatus(void);
2196 BOOL WINAPI D3DPERF_QueryRepeatFrame(void);
2197 void WINAPI D3DPERF_SetMarker(D3DCOLOR color, const WCHAR *name);
2198 void WINAPI D3DPERF_SetOptions(DWORD options);
2199 void WINAPI D3DPERF_SetRegion(D3DCOLOR color, const WCHAR *name);
2200
2201 /* Define the main entrypoint as well */
2202 IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion);
2203 HRESULT WINAPI Direct3DCreate9Ex(UINT SDKVersion, IDirect3D9Ex**);
2204
2205 #ifdef __cplusplus
2206 } /* extern "C" */
2207 #endif /* defined(__cplusplus) */
2208
2209
2210 #endif /* _D3D9_H_ */