VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/d3d9.h

最後變更 在這個檔案是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

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

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