VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/d3d9.h@ 33252

Last change on this file since 33252 was 25949, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette