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