- Fix the sad sad definition of sizeof(ANSI_NULL) which returned 4...
[reactos.git] / reactos / w32api / include / d3d9.h
1 /*
2 * Copyright (C) 2002-2003 Jason Edmeades
3 * Raphael Junqueira
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20 #ifndef __WINE_D3D9_H
21 #define __WINE_D3D9_H
22
23 #ifndef DIRECT3D_VERSION
24 #define DIRECT3D_VERSION 0x0900
25 #endif
26
27 #include <objbase.h>
28
29 #include <d3d9types.h>
30 #include <d3d9caps.h>
31
32 /*****************************************************************************
33 * Behavior Flags for IDirect3D8::CreateDevice
34 */
35 #define D3DCREATE_FPU_PRESERVE 0x00000002L
36 #define D3DCREATE_MULTITHREADED 0x00000004L
37 #define D3DCREATE_PUREDEVICE 0x00000010L
38 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L
39 #define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L
40 #define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L
41 #define D3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100L
42 #define D3DCREATE_ADAPTERGROUP_DEVICE 0x00000200L
43
44 /*****************************************************************************
45 * Flags for SetPrivateData
46 */
47 #define D3DSPD_IUNKNOWN 0x00000001L
48
49
50 /*****************************************************************************
51 * #defines and error codes
52 */
53 #define D3DADAPTER_DEFAULT 0
54 #define D3DENUM_NO_WHQL_LEVEL 0x00000002L
55 #define D3DPRESENT_BACK_BUFFERS_MAX 3L
56 #define D3DSGR_NO_CALIBRATION 0x00000000L
57 #define D3DSGR_CALIBRATE 0x00000001L
58
59 #define _FACD3D 0x876
60 #define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code )
61 #define MAKE_D3DSTATUS( code ) MAKE_HRESULT( 0, _FACD3D, code )
62
63 /*****************************************************************************
64 * Direct3D Errors
65 */
66 #define D3D_OK S_OK
67 #define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072)
68 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073)
69 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074)
70 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075)
71 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076)
72 #define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077)
73 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078)
74 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079)
75 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081)
76 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082)
77 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086)
78 #define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087)
79 #define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150)
80 #define D3DERR_MOREDATA MAKE_D3DHRESULT(2151)
81 #define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152)
82 #define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153)
83 #define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154)
84 #define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380)
85 #define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155)
86 #define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156)
87 #define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157)
88 #define D3DERR_WASSTILLDRAWING MAKE_D3DHRESULT(540)
89 #define D3DOK_NOAUTOGEN MAKE_D3DSTATUS(2159)
90
91
92 /*****************************************************************************
93 * Predeclare the interfaces
94 */
95 DEFINE_GUID(IID_IDirect3D9, 0x81BDCBCA, 0x64D4, 0x426D, 0xAE, 0x8D, 0xAD, 0x1, 0x47, 0xF4, 0x27, 0x5C);
96 typedef struct IDirect3D9 IDirect3D9, *LPDIRECT3D9, *PDIRECT3D9;
97
98 DEFINE_GUID(IID_IDirect3DDevice9, 0xd0223b96, 0xbf7a, 0x43fd, 0x92, 0xbd, 0xa4, 0x3b, 0xd, 0x82, 0xb9, 0xeb);
99 typedef struct IDirect3DDevice9 IDirect3DDevice9, *LPDIRECT3DDEVICE9;
100
101 DEFINE_GUID(IID_IDirect3DResource9, 0x5eec05d, 0x8f7d, 0x4362, 0xb9, 0x99, 0xd1, 0xba, 0xf3, 0x57, 0xc7, 0x4);
102 typedef struct IDirect3DResource9 IDirect3DResource9, *LPDIRECT3DRESOURCE9, *PDIRECT3DRESOURCE9;
103
104 DEFINE_GUID(IID_IDirect3DVertexBuffer9, 0xb64bb1b5, 0xfd70, 0x4df6, 0xbf, 0x91, 0x19, 0xd0, 0xa1, 0x24, 0x55, 0xe3);
105 typedef struct IDirect3DVertexBuffer9 IDirect3DVertexBuffer9, *LPDIRECT3DVERTEXBUFFER9, *PDIRECT3DVERTEXBUFFER9;
106
107 DEFINE_GUID(IID_IDirect3DVolume9, 0x24f416e6, 0x1f67, 0x4aa7, 0xb8, 0x8e, 0xd3, 0x3f, 0x6f, 0x31, 0x28, 0xa1);
108 typedef struct IDirect3DVolume9 IDirect3DVolume9, *LPDIRECT3DVOLUME9, *PDIRECT3DVOLUME9;
109
110 DEFINE_GUID(IID_IDirect3DSwapChain9, 0x794950f2, 0xadfc, 0x458a, 0x90, 0x5e, 0x10, 0xa1, 0xb, 0xb, 0x50, 0x3b);
111 typedef struct IDirect3DSwapChain9 IDirect3DSwapChain9, *LPDIRECT3DSWAPCHAIN9, *PDIRECT3DSWAPCHAIN9;
112
113 DEFINE_GUID(IID_IDirect3DSurface9, 0xcfbaf3a, 0x9ff6, 0x429a, 0x99, 0xb3, 0xa2, 0x79, 0x6a, 0xf8, 0xb8, 0x9b);
114 typedef struct IDirect3DSurface9 IDirect3DSurface9, *LPDIRECT3DSURFACE9, *PDIRECT3DSURFACE9;
115
116 DEFINE_GUID(IID_IDirect3DIndexBuffer9, 0x7c9dd65e, 0xd3f7, 0x4529, 0xac, 0xee, 0x78, 0x58, 0x30, 0xac, 0xde, 0x35);
117 typedef struct IDirect3DIndexBuffer9 IDirect3DIndexBuffer9, *LPDIRECT3DINDEXBUFFER9, *PDIRECT3DINDEXBUFFER9;
118
119 DEFINE_GUID(IID_IDirect3DBaseTexture9, 0x580ca87e, 0x1d3c, 0x4d54, 0x99, 0x1d, 0xb7, 0xd3, 0xe3, 0xc2, 0x98, 0xce);
120 typedef struct IDirect3DBaseTexture9 IDirect3DBaseTexture9, *LPDIRECT3DBASETEXTURE9, *PDIRECT3DBASETEXTURE9;
121
122 DEFINE_GUID(IID_IDirect3DTexture9, 0x85c31227, 0x3de5, 0x4f00, 0x9b, 0x3a, 0xf1, 0x1a, 0xc3, 0x8c, 0x18, 0xb5);
123 typedef struct IDirect3DTexture9 IDirect3DTexture9, *LPDIRECT3DTEXTURE9, *PDIRECT3DTEXTURE9;
124
125 DEFINE_GUID(IID_IDirect3DCubeTexture9, 0xfff32f81, 0xd953, 0x473a, 0x92, 0x23, 0x93, 0xd6, 0x52, 0xab, 0xa9, 0x3f);
126 typedef struct IDirect3DCubeTexture9 IDirect3DCubeTexture9, *LPDIRECT3DCUBETEXTURE9, *PDIRECT3DCUBETEXTURE9;
127
128 DEFINE_GUID(IID_IDirect3DVolumeTexture9, 0x2518526c, 0xe789, 0x4111, 0xa7, 0xb9, 0x47, 0xef, 0x32, 0x8d, 0x13, 0xe6);
129 typedef struct IDirect3DVolumeTexture9 IDirect3DVolumeTexture9, *LPDIRECT3DVOLUMETEXTURE9, *PDIRECT3DVOLUMETEXTURE9;
130
131 DEFINE_GUID(IID_IDirect3DVertexDeclaration9, 0xdd13c59c, 0x36fa, 0x4098, 0xa8, 0xfb, 0xc7, 0xed, 0x39, 0xdc, 0x85, 0x46);
132 typedef struct IDirect3DVertexDeclaration9 IDirect3DVertexDeclaration9, *LPDIRECT3DVERTEXDECLARATION9;
133
134 DEFINE_GUID(IID_IDirect3DVertexShader9, 0xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36);
135 typedef struct IDirect3DVertexShader9 IDirect3DVertexShader9, *LPDIRECT3DVERTEXSHADER9;
136
137 DEFINE_GUID(IID_IDirect3DPixelShader9, 0x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89);
138 typedef struct IDirect3DPixelShader9 IDirect3DPixelShader9, *LPDIRECT3DPIXELSHADER9;
139
140 DEFINE_GUID(IID_IDirect3DStateBlock9, 0xb07c4fe5, 0x310d, 0x4ba8, 0xa2, 0x3c, 0x4f, 0xf, 0x20, 0x6f, 0x21, 0x8b);
141 typedef struct IDirect3DStateBlock9 IDirect3DStateBlock9, *LPDIRECT3DSTATEBLOCK9;
142
143 DEFINE_GUID(IID_IDirect3DQuery9, 0xd9771460, 0xa695, 0x4f26, 0xbb, 0xd3, 0x27, 0xb8, 0x40, 0xb5, 0x41, 0xcc);
144 typedef struct IDirect3DQuery9 IDirect3DQuery9, *LPDIRECT3DQUERY9, *PDIRECT3DQUERY9;
145
146 /*****************************************************************************
147 * IDirect3D9 interface
148 */
149 #define INTERFACE IDirect3D9
150 DECLARE_INTERFACE_(IDirect3D9,IUnknown)
151 {
152 /*** IUnknown methods ***/
153 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
154 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
155 STDMETHOD_(ULONG,Release)(THIS) PURE;
156 /*** IDirect3D9 methods ***/
157 STDMETHOD(RegisterSoftwareDevice)(THIS_ void* pInitializeFunction) PURE;
158 STDMETHOD_(UINT, GetAdapterCount)(THIS) PURE;
159 STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER9* pIdentifier) PURE;
160 STDMETHOD_(UINT, GetAdapterModeCount)(THIS_ UINT Adapter, D3DFORMAT Format) PURE;
161 STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE* pMode) PURE;
162 STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, D3DDISPLAYMODE* pMode) PURE;
163 STDMETHOD(CheckDeviceType)(THIS_ UINT iAdapter, D3DDEVTYPE DevType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL bWindowed) PURE;
164 STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) PURE;
165 STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType, DWORD* pQualityLevels) PURE;
166 STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) PURE;
167 STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat) PURE;
168 STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS9* pCaps) PURE;
169 STDMETHOD_(HMONITOR, GetAdapterMonitor)(THIS_ UINT Adapter) PURE;
170 STDMETHOD(CreateDevice)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DDevice9** ppReturnedDeviceInterface) PURE;
171 };
172 #undef INTERFACE
173
174 #if !defined(__cplusplus) || defined(CINTERFACE)
175 /*** IUnknown methods ***/
176 #define IDirect3D9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
177 #define IDirect3D9_AddRef(p) (p)->lpVtbl->AddRef(p)
178 #define IDirect3D9_Release(p) (p)->lpVtbl->Release(p)
179 /*** IDirect3D9 methods ***/
180 #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
181 #define IDirect3D9_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
182 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
183 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
184 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
185 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
186 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
187 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
188 #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
189 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
190 #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
191 #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
192 #define IDirect3D9_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
193 #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
194 #else
195 /*** IUnknown methods ***/
196 #define IDirect3D9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
197 #define IDirect3D9_AddRef(p) (p)->AddRef()
198 #define IDirect3D9_Release(p) (p)->Release()
199 /*** IDirect3D9 methods ***/
200 #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a)
201 #define IDirect3D9_GetAdapterCount(p) (p)->GetAdapterCount()
202 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c)
203 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->GetAdapterModeCount(a,b)
204 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->EnumAdapterModes(a,b,c,d)
205 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b)
206 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e)
207 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f)
208 #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->CheckDeviceMultiSampleType(a,b,c,d,e,f)
209 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e)
210 #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->CheckDeviceFormatConversion(a,b,c,d)
211 #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c)
212 #define IDirect3D9_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a)
213 #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f)
214 #endif
215
216 /*****************************************************************************
217 * IDirect3DDevice9 interface
218 */
219 #define INTERFACE IDirect3DDevice9
220 DECLARE_INTERFACE_(IDirect3DDevice9,IUnknown)
221 {
222 /*** IUnknown methods ***/
223 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
224 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
225 STDMETHOD_(ULONG,Release)(THIS) PURE;
226 /*** IDirect3DDevice9 methods ***/
227 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
228 STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE;
229 STDMETHOD(EvictManagedResources)(THIS) PURE;
230 STDMETHOD(GetDirect3D)(THIS_ IDirect3D9** ppD3D9) PURE;
231 STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS9* pCaps) PURE;
232 STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain, D3DDISPLAYMODE* pMode) PURE;
233 STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE;
234 STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9* pCursorBitmap) PURE;
235 STDMETHOD_(void, SetCursorPosition)(THIS_ int X,int Y, DWORD Flags) PURE;
236 STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE;
237 STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DSwapChain9** pSwapChain) PURE;
238 STDMETHOD(GetSwapChain)(THIS_ UINT iSwapChain, IDirect3DSwapChain9** pSwapChain) PURE;
239 STDMETHOD_(UINT, GetNumberOfSwapChains)(THIS) PURE;
240 STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE;
241 STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect, CONST RECT* pDestRect, HWND hDestWindowOverride, CONST RGNDATA* pDirtyRegion) PURE;
242 STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer) PURE;
243 STDMETHOD(GetRasterStatus)(THIS_ UINT iSwapChain, D3DRASTER_STATUS* pRasterStatus) PURE;
244 STDMETHOD(SetDialogBoxMode)(THIS_ BOOL bEnableDialogs) PURE;
245 STDMETHOD_(void, SetGammaRamp)(THIS_ UINT iSwapChain, DWORD Flags, CONST D3DGAMMARAMP* pRamp) PURE;
246 STDMETHOD_(void, GetGammaRamp)(THIS_ UINT iSwapChain, D3DGAMMARAMP* pRamp) PURE;
247 STDMETHOD(CreateTexture)(THIS_ UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture, HANDLE* pSharedHandle) PURE;
248 STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9** ppVolumeTexture, HANDLE* pSharedHandle) PURE;
249 STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9** ppCubeTexture, HANDLE* pSharedHandle) PURE;
250 STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9** ppVertexBuffer, HANDLE* pSharedHandle) PURE;
251 STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9** ppIndexBuffer, HANDLE* pSharedHandle) PURE;
252 STDMETHOD(CreateRenderTarget)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE;
253 STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE;
254 STDMETHOD(UpdateSurface)(THIS_ IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestinationSurface, CONST POINT* pDestPoint) PURE;
255 STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture9* pSourceTexture, IDirect3DBaseTexture9* pDestinationTexture) PURE;
256 STDMETHOD(GetRenderTargetData)(THIS_ IDirect3DSurface9* pRenderTarget, IDirect3DSurface9* pDestSurface) PURE;
257 STDMETHOD(GetFrontBufferData)(THIS_ UINT iSwapChain, IDirect3DSurface9* pDestSurface) PURE;
258 STDMETHOD(StretchRect)(THIS_ IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestSurface, CONST RECT* pDestRect, D3DTEXTUREFILTERTYPE Filter) PURE;
259 STDMETHOD(ColorFill)(THIS_ IDirect3DSurface9* pSurface, CONST RECT* pRect, D3DCOLOR color) PURE;
260 STDMETHOD(CreateOffscreenPlainSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE;
261 STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9* pRenderTarget) PURE;
262 STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9** ppRenderTarget) PURE;
263 STDMETHOD(SetDepthStencilSurface)(THIS_ IDirect3DSurface9* pNewZStencil) PURE;
264 STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface9** ppZStencilSurface) PURE;
265 STDMETHOD(BeginScene)(THIS) PURE;
266 STDMETHOD(EndScene)(THIS) PURE;
267 STDMETHOD(Clear)(THIS_ DWORD Count, CONST D3DRECT* pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil) PURE;
268 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* pMatrix) PURE;
269 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix) PURE;
270 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE, CONST D3DMATRIX*) PURE;
271 STDMETHOD(SetViewport)(THIS_ CONST D3DVIEWPORT9* pViewport) PURE;
272 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT9* pViewport) PURE;
273 STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL9* pMaterial) PURE;
274 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL9* pMaterial) PURE;
275 STDMETHOD(SetLight)(THIS_ DWORD Index, CONST D3DLIGHT9*) PURE;
276 STDMETHOD(GetLight)(THIS_ DWORD Index, D3DLIGHT9*) PURE;
277 STDMETHOD(LightEnable)(THIS_ DWORD Index, BOOL Enable) PURE;
278 STDMETHOD(GetLightEnable)(THIS_ DWORD Index, BOOL* pEnable) PURE;
279 STDMETHOD(SetClipPlane)(THIS_ DWORD Index, CONST float* pPlane) PURE;
280 STDMETHOD(GetClipPlane)(THIS_ DWORD Index, float* pPlane) PURE;
281 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD Value) PURE;
282 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD* pValue) PURE;
283 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9** ppSB) PURE;
284 STDMETHOD(BeginStateBlock)(THIS) PURE;
285 STDMETHOD(EndStateBlock)(THIS_ IDirect3DStateBlock9** ppSB) PURE;
286 STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS9* pClipStatus) PURE;
287 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS9* pClipStatus) PURE;
288 STDMETHOD(GetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9** ppTexture) PURE;
289 STDMETHOD(SetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9* pTexture) PURE;
290 STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD* pValue) PURE;
291 STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) PURE;
292 STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD* pValue) PURE;
293 STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) PURE;
294 STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE;
295 STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber, CONST PALETTEENTRY* pEntries) PURE;
296 STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE;
297 STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE;
298 STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE;
299 STDMETHOD(SetScissorRect)(THIS_ CONST RECT* pRect) PURE;
300 STDMETHOD(GetScissorRect)(THIS_ RECT* pRect) PURE;
301 STDMETHOD(SetSoftwareVertexProcessing)(THIS_ BOOL bSoftware) PURE;
302 STDMETHOD_(BOOL, GetSoftwareVertexProcessing)(THIS) PURE;
303 STDMETHOD(SetNPatchMode)(THIS_ float nSegments) PURE;
304 STDMETHOD_(float, GetNPatchMode)(THIS) PURE;
305 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) PURE;
306 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount) PURE;
307 STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride) PURE;
308 STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertices, UINT PrimitiveCount, CONST void* pIndexData, D3DFORMAT IndexDataFormat, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride) PURE;
309 STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9* pDestBuffer, IDirect3DVertexDeclaration9* pVertexDecl, DWORD Flags) PURE;
310 STDMETHOD(CreateVertexDeclaration)(THIS_ CONST D3DVERTEXELEMENT9* pVertexElements, IDirect3DVertexDeclaration9** ppDecl) PURE;
311 STDMETHOD(SetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9* pDecl) PURE;
312 STDMETHOD(GetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9** ppDecl) PURE;
313 STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE;
314 STDMETHOD(GetFVF)(THIS_ DWORD* pFVF) PURE;
315 STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD* pFunction, IDirect3DVertexShader9** ppShader) PURE;
316 STDMETHOD(SetVertexShader)(THIS_ IDirect3DVertexShader9* pShader) PURE;
317 STDMETHOD(GetVertexShader)(THIS_ IDirect3DVertexShader9** ppShader) PURE;
318 STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) PURE;
319 STDMETHOD(GetVertexShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE;
320 STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) PURE;
321 STDMETHOD(GetVertexShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE;
322 STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) PURE;
323 STDMETHOD(GetVertexShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE;
324 STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9* pStreamData, UINT OffsetInBytes, UINT Stride) PURE;
325 STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9** ppStreamData, UINT* OffsetInBytes, UINT* pStride) PURE;
326 STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT Divider) PURE;
327 STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT* Divider) PURE;
328 STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer9* pIndexData) PURE;
329 STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer9** ppIndexData) PURE;
330 STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD* pFunction, IDirect3DPixelShader9** ppShader) PURE;
331 STDMETHOD(SetPixelShader)(THIS_ IDirect3DPixelShader9* pShader) PURE;
332 STDMETHOD(GetPixelShader)(THIS_ IDirect3DPixelShader9** ppShader) PURE;
333 STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) PURE;
334 STDMETHOD(GetPixelShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE;
335 STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) PURE;
336 STDMETHOD(GetPixelShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE;
337 STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) PURE;
338 STDMETHOD(GetPixelShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE;
339 STDMETHOD(DrawRectPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST D3DRECTPATCH_INFO* pRectPatchInfo) PURE;
340 STDMETHOD(DrawTriPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST D3DTRIPATCH_INFO* pTriPatchInfo) PURE;
341 STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE;
342 STDMETHOD(CreateQuery)(THIS_ D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery) PURE;
343 };
344 #undef INTERFACE
345
346 #if !defined(__cplusplus) || defined(CINTERFACE)
347 /*** IUnknown methods ***/
348 #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
349 #define IDirect3DDevice9_AddRef(p) (p)->lpVtbl->AddRef(p)
350 #define IDirect3DDevice9_Release(p) (p)->lpVtbl->Release(p)
351 /*** IDirect3DDevice9 methods ***/
352 #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
353 #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
354 #define IDirect3DDevice9_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
355 #define IDirect3DDevice9_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
356 #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
357 #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
358 #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
359 #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
360 #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
361 #define IDirect3DDevice9_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
362 #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
363 #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
364 #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
365 #define IDirect3DDevice9_Reset(p,a) (p)->lpVtbl->Reset(p,a)
366 #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
367 #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
368 #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
369 #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
370 #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
371 #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
372 #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h)
373 #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)
374 #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g)
375 #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f)
376 #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f)
377 #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h)
378 #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h)
379 #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
380 #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
381 #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
382 #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
383 #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
384 #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
385 #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f)
386 #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
387 #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
388 #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
389 #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
390 #define IDirect3DDevice9_BeginScene(p) (p)->lpVtbl->BeginScene(p)
391 #define IDirect3DDevice9_EndScene(p) (p)->lpVtbl->EndScene(p)
392 #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
393 #define IDirect3DDevice9_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
394 #define IDirect3DDevice9_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
395 #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
396 #define IDirect3DDevice9_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
397 #define IDirect3DDevice9_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
398 #define IDirect3DDevice9_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
399 #define IDirect3DDevice9_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
400 #define IDirect3DDevice9_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
401 #define IDirect3DDevice9_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
402 #define IDirect3DDevice9_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
403 #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
404 #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
405 #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
406 #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
407 #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
408 #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
409 #define IDirect3DDevice9_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
410 #define IDirect3DDevice9_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
411 #define IDirect3DDevice9_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
412 #define IDirect3DDevice9_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
413 #define IDirect3DDevice9_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
414 #define IDirect3DDevice9_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
415 #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
416 #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
417 #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
418 #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
419 #define IDirect3DDevice9_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
420 #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
421 #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
422 #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
423 #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
424 #define IDirect3DDevice9_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
425 #define IDirect3DDevice9_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
426 #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
427 #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
428 #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
429 #define IDirect3DDevice9_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
430 #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
431 #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
432 #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
433 #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
434 #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
435 #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b)
436 #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
437 #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
438 #define IDirect3DDevice9_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
439 #define IDirect3DDevice9_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
440 #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b)
441 #define IDirect3DDevice9_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
442 #define IDirect3DDevice9_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
443 #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
444 #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
445 #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
446 #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
447 #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
448 #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
449 #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
450 #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
451 #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
452 #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
453 #define IDirect3DDevice9_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
454 #define IDirect3DDevice9_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
455 #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
456 #define IDirect3DDevice9_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
457 #define IDirect3DDevice9_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
458 #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
459 #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
460 #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
461 #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
462 #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
463 #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
464 #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
465 #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
466 #define IDirect3DDevice9_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
467 #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b)
468 #else
469 /*** IUnknown methods ***/
470 #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
471 #define IDirect3DDevice9_AddRef(p) (p)->AddRef()
472 #define IDirect3DDevice9_Release(p) (p)->Release()
473 /*** IDirect3DDevice9 methods ***/
474 #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
475 #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
476 #define IDirect3DDevice9_EvictManagedResources(p) (p)->EvictManagedResources()
477 #define IDirect3DDevice9_GetDirect3D(p,a) (p)->GetDirect3D(a)
478 #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
479 #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b)
480 #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
481 #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
482 #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
483 #define IDirect3DDevice9_ShowCursor(p,a) (p)->ShowCursor(a)
484 #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
485 #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b)
486 #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains()
487 #define IDirect3DDevice9_Reset(p,a) (p)->Reset(a)
488 #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
489 #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d)
490 #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b)
491 #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a)
492 #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c)
493 #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b)
494 #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h)
495 #define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i)
496 #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g)
497 #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f)
498 #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f)
499 #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h)
500 #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h)
501 #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d)
502 #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
503 #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b)
504 #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b)
505 #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e)
506 #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c)
507 #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f)
508 #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
509 #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b)
510 #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a)
511 #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
512 #define IDirect3DDevice9_BeginScene(p) (p)->BeginScene()
513 #define IDirect3DDevice9_EndScene(p) (p)->EndScene()
514 #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
515 #define IDirect3DDevice9_SetTransform(p,a,b) (p)->SetTransform(a,b)
516 #define IDirect3DDevice9_GetTransform(p,a,b) (p)->GetTransform(a,b)
517 #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
518 #define IDirect3DDevice9_SetViewport(p,a) (p)->SetViewport(a)
519 #define IDirect3DDevice9_GetViewport(p,a) (p)->GetViewport(a)
520 #define IDirect3DDevice9_SetMaterial(p,a) (p)->SetMaterial(a)
521 #define IDirect3DDevice9_GetMaterial(p,a) (p)->GetMaterial(a)
522 #define IDirect3DDevice9_SetLight(p,a,b) (p)->SetLight(a,b)
523 #define IDirect3DDevice9_GetLight(p,a,b) (p)->GetLight(a,b)
524 #define IDirect3DDevice9_LightEnable(p,a,b) (p)->LightEnable(a,b)
525 #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
526 #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
527 #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
528 #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
529 #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
530 #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
531 #define IDirect3DDevice9_BeginStateBlock(p) (p)->BeginStateBlock()
532 #define IDirect3DDevice9_EndStateBlock(p,a) (p)->EndStateBlock(a)
533 #define IDirect3DDevice9_SetClipStatus(p,a) (p)->SetClipStatus(a)
534 #define IDirect3DDevice9_GetClipStatus(p,a) (p)->GetClipStatus(a)
535 #define IDirect3DDevice9_GetTexture(p,a,b) (p)->GetTexture(a,b)
536 #define IDirect3DDevice9_SetTexture(p,a,b) (p)->SetTexture(a,b)
537 #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
538 #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
539 #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c)
540 #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c)
541 #define IDirect3DDevice9_ValidateDevice(p,a) (p)->ValidateDevice(a)
542 #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
543 #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
544 #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
545 #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
546 #define IDirect3DDevice9_SetScissorRect(p,a) (p)->SetScissorRect(a)
547 #define IDirect3DDevice9_GetScissorRect(p,a) (p)->GetScissorRect(a)
548 #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a)
549 #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing()
550 #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->SetNPatchMode(a)
551 #define IDirect3DDevice9_GetNPatchMode(p) (p)->GetNPatchMode()
552 #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
553 #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f)
554 #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
555 #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
556 #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f)
557 #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b)
558 #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a)
559 #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a)
560 #define IDirect3DDevice9_SetFVF(p,a) (p)->SetFVF(a)
561 #define IDirect3DDevice9_GetFVF(p,a) (p)->GetFVF(a)
562 #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b)
563 #define IDirect3DDevice9_SetVertexShader(p,a) (p)->SetVertexShader(a)
564 #define IDirect3DDevice9_GetVertexShader(p,a) (p)->GetVertexShader(a)
565 #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c)
566 #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c)
567 #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c)
568 #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c)
569 #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c)
570 #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c)
571 #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d)
572 #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d)
573 #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b)
574 #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b)
575 #define IDirect3DDevice9_SetIndices(p,a) (p)->SetIndices(a)
576 #define IDirect3DDevice9_GetIndices(p,a) (p)->GetIndices(a)
577 #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
578 #define IDirect3DDevice9_SetPixelShader(p,a) (p)->SetPixelShader(a)
579 #define IDirect3DDevice9_GetPixelShader(p,a) (p)->GetPixelShader(a)
580 #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c)
581 #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c)
582 #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c)
583 #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c)
584 #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c)
585 #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c)
586 #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
587 #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
588 #define IDirect3DDevice9_DeletePatch(p,a) (p)->DeletePatch(a)
589 #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->CreateQuery(a,b)
590 #endif
591
592 /*****************************************************************************
593 * IDirect3DVolume9 interface
594 */
595 #define INTERFACE IDirect3DVolume9
596 DECLARE_INTERFACE_(IDirect3DVolume9,IUnknown)
597 {
598 /*** IUnknown methods ***/
599 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
600 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
601 STDMETHOD_(ULONG,Release)(THIS) PURE;
602 /*** IDirect3DVolume9 methods ***/
603 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
604 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE;
605 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
606 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
607 STDMETHOD(GetContainer)(THIS_ REFIID riid, void** ppContainer) PURE;
608 STDMETHOD(GetDesc)(THIS_ D3DVOLUME_DESC* pDesc) PURE;
609 STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) PURE;
610 STDMETHOD(UnlockBox)(THIS) PURE;
611 };
612 #undef INTERFACE
613
614 #if !defined(__cplusplus) || defined(CINTERFACE)
615 /*** IUnknown methods ***/
616 #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
617 #define IDirect3DVolume9_AddRef(p) (p)->lpVtbl->AddRef(p)
618 #define IDirect3DVolume9_Release(p) (p)->lpVtbl->Release(p)
619 /*** IDirect3DVolume9 methods ***/
620 #define IDirect3DVolume9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
621 #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
622 #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
623 #define IDirect3DVolume9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
624 #define IDirect3DVolume9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
625 #define IDirect3DVolume9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
626 #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
627 #define IDirect3DVolume9_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
628 #else
629 /*** IUnknown methods ***/
630 #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
631 #define IDirect3DVolume9_AddRef(p) (p)->AddRef()
632 #define IDirect3DVolume9_Release(p) (p)->Release()
633 /*** IDirect3DVolume9 methods ***/
634 #define IDirect3DVolume9_GetDevice(p,a) (p)->GetDevice(a)
635 #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
636 #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
637 #define IDirect3DVolume9_FreePrivateData(p,a) (p)->FreePrivateData(a)
638 #define IDirect3DVolume9_GetContainer(p,a,b) (p)->GetContainer(a,b)
639 #define IDirect3DVolume9_GetDesc(p,a) (p)->GetDesc(a)
640 #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->LockBox(a,b,c)
641 #define IDirect3DVolume9_UnlockBox(p) (p)->UnlockBox()
642 #endif
643
644 /*****************************************************************************
645 * IDirect3DSwapChain9 interface
646 */
647 #define INTERFACE IDirect3DSwapChain9
648 DECLARE_INTERFACE_(IDirect3DSwapChain9,IUnknown)
649 {
650 /*** IUnknown methods ***/
651 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
652 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
653 STDMETHOD_(ULONG,Release)(THIS) PURE;
654 /*** IDirect3DSwapChain9 methods ***/
655 STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect, CONST RECT* pDestRect, HWND hDestWindowOverride, CONST RGNDATA* pDirtyRegion, DWORD dwFlags) PURE;
656 STDMETHOD(GetFrontBufferData)(THIS_ IDirect3DSurface9* pDestSurface) PURE;
657 STDMETHOD(GetBackBuffer)(THIS_ UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer) PURE;
658 STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS* pRasterStatus) PURE;
659 STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE* pMode) PURE;
660 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
661 STDMETHOD(GetPresentParameters)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE;
662 };
663 #undef INTERFACE
664
665 #if !defined(__cplusplus) || defined(CINTERFACE)
666 /*** IUnknown methods ***/
667 #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
668 #define IDirect3DSwapChain9_AddRef(p) (p)->lpVtbl->AddRef(p)
669 #define IDirect3DSwapChain9_Release(p) (p)->lpVtbl->Release(p)
670 /*** IDirect3DSwapChain9 methods ***/
671 #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
672 #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
673 #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
674 #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
675 #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
676 #define IDirect3DSwapChain9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
677 #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
678 #else
679 /*** IUnknown methods ***/
680 #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
681 #define IDirect3DSwapChain9_AddRef(p) (p)->AddRef()
682 #define IDirect3DSwapChain9_Release(p) (p)->Release()
683 /*** IDirect3DSwapChain9 methods ***/
684 #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->Present(a,b,c,d,e)
685 #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->GetFrontBufferData(a)
686 #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
687 #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
688 #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
689 #define IDirect3DSwapChain9_GetDevice(p,a) (p)->GetDevice(a)
690 #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->GetPresentParameters(a)
691 #endif
692
693 /*****************************************************************************
694 * IDirect3DResource9 interface
695 */
696 #define INTERFACE IDirect3DResource9
697 DECLARE_INTERFACE_(IDirect3DResource9,IUnknown)
698 {
699 /*** IUnknown methods ***/
700 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
701 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
702 STDMETHOD_(ULONG,Release)(THIS) PURE;
703 /*** IDirect3DResource9 methods ***/
704 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
705 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE;
706 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
707 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
708 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
709 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
710 STDMETHOD_(void, PreLoad)(THIS) PURE;
711 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
712 };
713 #undef INTERFACE
714
715 #if !defined(__cplusplus) || defined(CINTERFACE)
716 /*** IUnknown methods ***/
717 #define IDirect3DResource9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
718 #define IDirect3DResource9_AddRef(p) (p)->lpVtbl->AddRef(p)
719 #define IDirect3DResource9_Release(p) (p)->lpVtbl->Release(p)
720 /*** IDirect3DResource9 methods ***/
721 #define IDirect3DResource9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
722 #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
723 #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
724 #define IDirect3DResource9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
725 #define IDirect3DResource9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
726 #define IDirect3DResource9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
727 #define IDirect3DResource9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
728 #define IDirect3DResource9_GetType(p) (p)->lpVtbl->GetType(p)
729 #else
730 /*** IUnknown methods ***/
731 #define IDirect3DResource9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
732 #define IDirect3DResource9_AddRef(p) (p)->AddRef()
733 #define IDirect3DResource9_Release(p) (p)->Release()
734 /*** IDirect3DResource9 methods ***/
735 #define IDirect3DResource9_GetDevice(p,a) (p)->GetDevice(a)
736 #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
737 #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
738 #define IDirect3DResource9_FreePrivateData(p,a) (p)->FreePrivateData(a)
739 #define IDirect3DResource9_SetPriority(p,a) (p)->SetPriority(a)
740 #define IDirect3DResource9_GetPriority(p) (p)->GetPriority()
741 #define IDirect3DResource9_PreLoad(p) (p)->PreLoad()
742 #define IDirect3DResource9_GetType(p) (p)->GetType()
743 #endif
744
745 /*****************************************************************************
746 * IDirect3DSurface9 interface
747 */
748 #define INTERFACE IDirect3DSurface9
749 DECLARE_INTERFACE_(IDirect3DSurface9,IDirect3DResource9)
750 {
751 /*** IUnknown methods ***/
752 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
753 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
754 STDMETHOD_(ULONG,Release)(THIS) PURE;
755 /*** IDirect3DResource9 methods ***/
756 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
757 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE;
758 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
759 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
760 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
761 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
762 STDMETHOD_(void, PreLoad)(THIS) PURE;
763 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
764 /*** IDirect3DSurface9 methods ***/
765 STDMETHOD(GetContainer)(THIS_ REFIID riid, void** ppContainer) PURE;
766 STDMETHOD(GetDesc)(THIS_ D3DSURFACE_DESC* pDesc) PURE;
767 STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE;
768 STDMETHOD(UnlockRect)(THIS) PURE;
769 STDMETHOD(GetDC)(THIS_ HDC* phdc) PURE;
770 STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE;
771 };
772 #undef INTERFACE
773
774 #if !defined(__cplusplus) || defined(CINTERFACE)
775 /*** IUnknown methods ***/
776 #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
777 #define IDirect3DSurface9_AddRef(p) (p)->lpVtbl->AddRef(p)
778 #define IDirect3DSurface9_Release(p) (p)->lpVtbl->Release(p)
779 /*** IDirect3DSurface9 methods: IDirect3DResource9 ***/
780 #define IDirect3DSurface9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
781 #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
782 #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
783 #define IDirect3DSurface9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
784 #define IDirect3DSurface9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
785 #define IDirect3DSurface9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
786 #define IDirect3DSurface9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
787 #define IDirect3DSurface9_GetType(p) (p)->lpVtbl->GetType(p)
788 /*** IDirect3DSurface9 methods ***/
789 #define IDirect3DSurface9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
790 #define IDirect3DSurface9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
791 #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
792 #define IDirect3DSurface9_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
793 #define IDirect3DSurface9_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
794 #define IDirect3DSurface9_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
795 #else
796 /*** IUnknown methods ***/
797 #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
798 #define IDirect3DSurface9_AddRef(p) (p)->AddRef()
799 #define IDirect3DSurface9_Release(p) (p)->Release()
800 /*** IDirect3DSurface9 methods: IDirect3DResource9 ***/
801 #define IDirect3DSurface9_GetDevice(p,a) (p)->GetDevice(a)
802 #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
803 #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
804 #define IDirect3DSurface9_FreePrivateData(p,a) (p)->FreePrivateData(a)
805 #define IDirect3DSurface9_SetPriority(p,a) (p)->SetPriority(a)
806 #define IDirect3DSurface9_GetPriority(p) (p)->GetPriority()
807 #define IDirect3DSurface9_PreLoad(p) (p)->PreLoad()
808 #define IDirect3DSurface9_GetType(p) (p)->GetType()
809 /*** IDirect3DSurface9 methods ***/
810 #define IDirect3DSurface9_GetContainer(p,a,b) (p)->GetContainer(a,b)
811 #define IDirect3DSurface9_GetDesc(p,a) (p)->GetDesc(a)
812 #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->LockRect(a,b,c)
813 #define IDirect3DSurface9_UnlockRect(p) (p)->UnlockRect()
814 #define IDirect3DSurface9_GetDC(p,a) (p)->GetDC(a)
815 #define IDirect3DSurface9_ReleaseDC(p,a) (p)->ReleaseDC(a)
816 #endif
817
818 /*****************************************************************************
819 * IDirect3DVertexBuffer9 interface
820 */
821 #define INTERFACE IDirect3DVertexBuffer9
822 DECLARE_INTERFACE_(IDirect3DVertexBuffer9,IDirect3DResource9)
823 {
824 /*** IUnknown methods ***/
825 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
826 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
827 STDMETHOD_(ULONG,Release)(THIS) PURE;
828 /*** IDirect3DResource9 methods ***/
829 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
830 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE;
831 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
832 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
833 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
834 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
835 STDMETHOD_(void, PreLoad)(THIS) PURE;
836 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
837 /*** IDirect3DVertexBuffer9 methods ***/
838 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, void** ppbData, DWORD Flags) PURE;
839 STDMETHOD(Unlock)(THIS) PURE;
840 STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC* pDesc) PURE;
841 };
842 #undef INTERFACE
843
844 #if !defined(__cplusplus) || defined(CINTERFACE)
845 /*** IUnknown methods ***/
846 #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
847 #define IDirect3DVertexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
848 #define IDirect3DVertexBuffer9_Release(p) (p)->lpVtbl->Release(p)
849 /*** IDirect3DVertexBuffer9 methods: IDirect3DResource9 ***/
850 #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
851 #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
852 #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
853 #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
854 #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
855 #define IDirect3DVertexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
856 #define IDirect3DVertexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
857 #define IDirect3DVertexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
858 /*** IDirect3DVertexBuffer9 methods ***/
859 #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
860 #define IDirect3DVertexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
861 #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
862 #else
863 /*** IUnknown methods ***/
864 #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
865 #define IDirect3DVertexBuffer9_AddRef(p) (p)->AddRef()
866 #define IDirect3DVertexBuffer9_Release(p) (p)->Release()
867 /*** IDirect3DVertexBuffer9 methods: IDirect3DResource9 ***/
868 #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->GetDevice(a)
869 #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
870 #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
871 #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a)
872 #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->SetPriority(a)
873 #define IDirect3DVertexBuffer9_GetPriority(p) (p)->GetPriority()
874 #define IDirect3DVertexBuffer9_PreLoad(p) (p)->PreLoad()
875 #define IDirect3DVertexBuffer9_GetType(p) (p)->GetType()
876 /*** IDirect3DVertexBuffer9 methods ***/
877 #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
878 #define IDirect3DVertexBuffer9_Unlock(p) (p)->Unlock()
879 #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->GetDesc(a)
880 #endif
881
882 /*****************************************************************************
883 * IDirect3DIndexBuffer9 interface
884 */
885 #define INTERFACE IDirect3DIndexBuffer9
886 DECLARE_INTERFACE_(IDirect3DIndexBuffer9,IDirect3DResource9)
887 {
888 /*** IUnknown methods ***/
889 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
890 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
891 STDMETHOD_(ULONG,Release)(THIS) PURE;
892 /*** IDirect3DResource9 methods ***/
893 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
894 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE;
895 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
896 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
897 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
898 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
899 STDMETHOD_(void, PreLoad)(THIS) PURE;
900 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
901 /*** IDirect3DIndexBuffer9 methods ***/
902 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, void** ppbData, DWORD Flags) PURE;
903 STDMETHOD(Unlock)(THIS) PURE;
904 STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC* pDesc) PURE;
905 };
906 #undef INTERFACE
907
908 #if !defined(__cplusplus) || defined(CINTERFACE)
909 /*** IUnknown methods ***/
910 #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
911 #define IDirect3DIndexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
912 #define IDirect3DIndexBuffer9_Release(p) (p)->lpVtbl->Release(p)
913 /*** IDirect3DIndexBuffer9 methods: IDirect3DResource9 ***/
914 #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
915 #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
916 #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
917 #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
918 #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
919 #define IDirect3DIndexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
920 #define IDirect3DIndexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
921 #define IDirect3DIndexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
922 /*** IDirect3DIndexBuffer9 methods ***/
923 #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
924 #define IDirect3DIndexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
925 #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
926 #else
927 /*** IUnknown methods ***/
928 #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
929 #define IDirect3DIndexBuffer9_AddRef(p) (p)->AddRef()
930 #define IDirect3DIndexBuffer9_Release(p) (p)->Release()
931 /*** IDirect3DIndexBuffer9 methods: IDirect3DResource9 ***/
932 #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->GetDevice(a)
933 #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
934 #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
935 #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a)
936 #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->SetPriority(a)
937 #define IDirect3DIndexBuffer9_GetPriority(p) (p)->GetPriority()
938 #define IDirect3DIndexBuffer9_PreLoad(p) (p)->PreLoad()
939 #define IDirect3DIndexBuffer9_GetType(p) (p)->GetType()
940 /*** IDirect3DIndexBuffer9 methods ***/
941 #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
942 #define IDirect3DIndexBuffer9_Unlock(p) (p)->Unlock()
943 #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->GetDesc(a)
944 #endif
945
946 /*****************************************************************************
947 * IDirect3DBaseTexture9 interface
948 */
949 #define INTERFACE IDirect3DBaseTexture9
950 DECLARE_INTERFACE_(IDirect3DBaseTexture9,IDirect3DResource9)
951 {
952 /*** IUnknown methods ***/
953 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
954 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
955 STDMETHOD_(ULONG,Release)(THIS) PURE;
956 /*** IDirect3DResource9 methods ***/
957 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
958 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE;
959 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
960 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
961 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
962 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
963 STDMETHOD_(void, PreLoad)(THIS) PURE;
964 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
965 /*** IDirect3DBaseTexture9 methods ***/
966 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
967 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
968 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
969 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
970 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
971 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
972 };
973 #undef INTERFACE
974
975 #if !defined(__cplusplus) || defined(CINTERFACE)
976 /*** IUnknown methods ***/
977 #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
978 #define IDirect3DBaseTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
979 #define IDirect3DBaseTexture9_Release(p) (p)->lpVtbl->Release(p)
980 /*** IDirect3DBaseTexture9 methods: IDirect3DResource9 ***/
981 #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
982 #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
983 #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
984 #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
985 #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
986 #define IDirect3DBaseTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
987 #define IDirect3DBaseTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
988 #define IDirect3DBaseTexture9_GetType(p) (p)->lpVtbl->GetType(p)
989 /*** IDirect3DBaseTexture9 methods ***/
990 #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
991 #define IDirect3DBaseTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
992 #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
993 #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
994 #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
995 #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
996 #else
997 /*** IUnknown methods ***/
998 #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
999 #define IDirect3DBaseTexture9_AddRef(p) (p)->AddRef()
1000 #define IDirect3DBaseTexture9_Release(p) (p)->Release()
1001 /*** IDirect3DBaseTexture9 methods: IDirect3DResource9 ***/
1002 #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->GetDevice(a)
1003 #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1004 #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1005 #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1006 #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->SetPriority(a)
1007 #define IDirect3DBaseTexture9_GetPriority(p) (p)->GetPriority()
1008 #define IDirect3DBaseTexture9_PreLoad(p) (p)->PreLoad()
1009 #define IDirect3DBaseTexture9_GetType(p) (p)->GetType()
1010 /*** IDirect3DBaseTexture9 methods ***/
1011 #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->SetLOD(a)
1012 #define IDirect3DBaseTexture9_GetLOD(p) (p)->GetLOD()
1013 #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->GetLevelCount()
1014 #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1015 #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1016 #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1017 #endif
1018
1019 /*****************************************************************************
1020 * IDirect3DCubeTexture9 interface
1021 */
1022 #define INTERFACE IDirect3DCubeTexture9
1023 DECLARE_INTERFACE_(IDirect3DCubeTexture9,IDirect3DBaseTexture9)
1024 {
1025 /*** IUnknown methods ***/
1026 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1027 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1028 STDMETHOD_(ULONG,Release)(THIS) PURE;
1029 /*** IDirect3DResource9 methods ***/
1030 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1031 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE;
1032 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
1033 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1034 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1035 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1036 STDMETHOD_(void, PreLoad)(THIS) PURE;
1037 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1038 /*** IDirect3DBaseTexture9 methods ***/
1039 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
1040 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
1041 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
1042 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
1043 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
1044 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
1045 /*** IDirect3DCubeTexture9 methods ***/
1046 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC* pDesc) PURE;
1047 STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level, IDirect3DSurface9** ppCubeMapSurface) PURE;
1048 STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE;
1049 STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level) PURE;
1050 STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType, CONST RECT* pDirtyRect) PURE;
1051 };
1052 #undef INTERFACE
1053
1054 #if !defined(__cplusplus) || defined(CINTERFACE)
1055 /*** IUnknown methods ***/
1056 #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1057 #define IDirect3DCubeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1058 #define IDirect3DCubeTexture9_Release(p) (p)->lpVtbl->Release(p)
1059 /*** IDirect3DCubeTexture9 methods: IDirect3DResource9 ***/
1060 #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1061 #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1062 #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1063 #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1064 #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1065 #define IDirect3DCubeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1066 #define IDirect3DCubeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1067 #define IDirect3DCubeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1068 /*** IDirect3DCubeTexture9 methods: IDirect3DBaseTexture9 ***/
1069 #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1070 #define IDirect3DCubeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1071 #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1072 #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1073 #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1074 #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1075 /*** IDirect3DCubeTexture9 methods ***/
1076 #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1077 #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
1078 #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
1079 #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
1080 #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
1081 #else
1082 /*** IUnknown methods ***/
1083 #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1084 #define IDirect3DCubeTexture9_AddRef(p) (p)->AddRef()
1085 #define IDirect3DCubeTexture9_Release(p) (p)->Release()
1086 /*** IDirect3DCubeTexture9 methods: IDirect3DResource9 ***/
1087 #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->GetDevice(a)
1088 #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1089 #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1090 #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1091 #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->SetPriority(a)
1092 #define IDirect3DCubeTexture9_GetPriority(p) (p)->GetPriority()
1093 #define IDirect3DCubeTexture9_PreLoad(p) (p)->PreLoad()
1094 #define IDirect3DCubeTexture9_GetType(p) (p)->GetType()
1095 /*** IDirect3DCubeTexture9 methods: IDirect3DBaseTexture9 ***/
1096 #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->SetLOD(a)
1097 #define IDirect3DCubeTexture9_GetLOD(p) (p)->GetLOD()
1098 #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->GetLevelCount()
1099 #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1100 #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1101 #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1102 /*** IDirect3DCubeTexture9 methods ***/
1103 #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1104 #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c)
1105 #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e)
1106 #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->UnlockRect(a,b)
1107 #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b)
1108 #endif
1109
1110 /*****************************************************************************
1111 * IDirect3DTexture9 interface
1112 */
1113 #define INTERFACE IDirect3DTexture9
1114 DECLARE_INTERFACE_(IDirect3DTexture9,IDirect3DBaseTexture9)
1115 {
1116 /*** IUnknown methods ***/
1117 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1118 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1119 STDMETHOD_(ULONG,Release)(THIS) PURE;
1120 /*** IDirect3DResource9 methods ***/
1121 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1122 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE;
1123 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
1124 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1125 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1126 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1127 STDMETHOD_(void, PreLoad)(THIS) PURE;
1128 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1129 /*** IDirect3DBaseTexture9 methods ***/
1130 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
1131 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
1132 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
1133 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
1134 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
1135 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
1136 /*** IDirect3DTexture9 methods ***/
1137 STDMETHOD(GetLevelDesc)(THIS_ UINT Level, D3DSURFACE_DESC* pDesc) PURE;
1138 STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level, IDirect3DSurface9** ppSurfaceLevel) PURE;
1139 STDMETHOD(LockRect)(THIS_ UINT Level, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE;
1140 STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE;
1141 STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pDirtyRect) PURE;
1142 };
1143 #undef INTERFACE
1144
1145 #if !defined(__cplusplus) || defined(CINTERFACE)
1146 /*** IUnknown methods ***/
1147 #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1148 #define IDirect3DTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1149 #define IDirect3DTexture9_Release(p) (p)->lpVtbl->Release(p)
1150 /*** IDirect3DTexture9 methods: IDirect3DResource9 ***/
1151 #define IDirect3DTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1152 #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1153 #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1154 #define IDirect3DTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1155 #define IDirect3DTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1156 #define IDirect3DTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1157 #define IDirect3DTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1158 #define IDirect3DTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1159 /*** IDirect3DTexture9 methods: IDirect3DBaseTexture9 ***/
1160 #define IDirect3DTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1161 #define IDirect3DTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1162 #define IDirect3DTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1163 #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1164 #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1165 #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1166 /*** IDirect3DTexture9 methods ***/
1167 #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1168 #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
1169 #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
1170 #define IDirect3DTexture9_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
1171 #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
1172 #else
1173 /*** IUnknown methods ***/
1174 #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1175 #define IDirect3DTexture9_AddRef(p) (p)->AddRef()
1176 #define IDirect3DTexture9_Release(p) (p)->Release()
1177 /*** IDirect3DTexture9 methods: IDirect3DResource9 ***/
1178 #define IDirect3DTexture9_GetDevice(p,a) (p)->GetDevice(a)
1179 #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1180 #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1181 #define IDirect3DTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1182 #define IDirect3DTexture9_SetPriority(p,a) (p)->SetPriority(a)
1183 #define IDirect3DTexture9_GetPriority(p) (p)->GetPriority()
1184 #define IDirect3DTexture9_PreLoad(p) (p)->PreLoad()
1185 #define IDirect3DTexture9_GetType(p) (p)->GetType()
1186 /*** IDirect3DTexture9 methods: IDirect3DBaseTexture9 ***/
1187 #define IDirect3DTexture9_SetLOD(p,a) (p)->SetLOD(a)
1188 #define IDirect3DTexture9_GetLOD(p) (p)->GetLOD()
1189 #define IDirect3DTexture9_GetLevelCount(p) (p)->GetLevelCount()
1190 #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1191 #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1192 #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1193 /*** IDirect3DTexture9 methods ***/
1194 #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1195 #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b)
1196 #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d)
1197 #define IDirect3DTexture9_UnlockRect(p,a) (p)->UnlockRect(a)
1198 #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->AddDirtyRect(a)
1199 #endif
1200
1201 /*****************************************************************************
1202 * IDirect3DVolumeTexture9 interface
1203 */
1204 #define INTERFACE IDirect3DVolumeTexture9
1205 DECLARE_INTERFACE_(IDirect3DVolumeTexture9,IDirect3DBaseTexture9)
1206 {
1207 /*** IUnknown methods ***/
1208 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1209 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1210 STDMETHOD_(ULONG,Release)(THIS) PURE;
1211 /*** IDirect3DResource9 methods ***/
1212 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1213 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE;
1214 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE;
1215 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1216 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1217 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1218 STDMETHOD_(void, PreLoad)(THIS) PURE;
1219 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1220 /*** IDirect3DBaseTexture9 methods ***/
1221 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
1222 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
1223 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
1224 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
1225 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
1226 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
1227 /*** IDirect3DVolumeTexture9 methods ***/
1228 STDMETHOD(GetLevelDesc)(THIS_ UINT Level, D3DVOLUME_DESC *pDesc) PURE;
1229 STDMETHOD(GetVolumeLevel)(THIS_ UINT Level, IDirect3DVolume9** ppVolumeLevel) PURE;
1230 STDMETHOD(LockBox)(THIS_ UINT Level, D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) PURE;
1231 STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE;
1232 STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX* pDirtyBox) PURE;
1233 };
1234 #undef INTERFACE
1235
1236 #if !defined(__cplusplus) || defined(CINTERFACE)
1237 /*** IUnknown methods ***/
1238 #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1239 #define IDirect3DVolumeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1240 #define IDirect3DVolumeTexture9_Release(p) (p)->lpVtbl->Release(p)
1241 /*** IDirect3DVolumeTexture9 methods: IDirect3DResource9 ***/
1242 #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1243 #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1244 #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1245 #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1246 #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1247 #define IDirect3DVolumeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1248 #define IDirect3DVolumeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1249 #define IDirect3DVolumeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1250 /*** IDirect3DVolumeTexture9 methods: IDirect3DBaseTexture9 ***/
1251 #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1252 #define IDirect3DVolumeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1253 #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1254 #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1255 #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1256 #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1257 /*** IDirect3DVolumeTexture9 methods ***/
1258 #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1259 #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
1260 #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
1261 #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
1262 #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
1263 #else
1264 /*** IUnknown methods ***/
1265 #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1266 #define IDirect3DVolumeTexture9_AddRef(p) (p)->AddRef()
1267 #define IDirect3DVolumeTexture9_Release(p) (p)->Release()
1268 /*** IDirect3DVolumeTexture9 methods: IDirect3DResource9 ***/
1269 #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->GetDevice(a)
1270 #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1271 #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1272 #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1273 #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->SetPriority(a)
1274 #define IDirect3DVolumeTexture9_GetPriority(p) (p)->GetPriority()
1275 #define IDirect3DVolumeTexture9_PreLoad(p) (p)->PreLoad()
1276 #define IDirect3DVolumeTexture9_GetType(p) (p)->GetType()
1277 /*** IDirect3DVolumeTexture9 methods: IDirect3DBaseTexture9 ***/
1278 #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->SetLOD(a)
1279 #define IDirect3DVolumeTexture9_GetLOD(p) (p)->GetLOD()
1280 #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->GetLevelCount()
1281 #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1282 #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1283 #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1284 /*** IDirect3DVolumeTexture9 methods ***/
1285 #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1286 #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b)
1287 #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d)
1288 #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->UnlockBox(a)
1289 #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->AddDirtyBox(a)
1290 #endif
1291
1292 /*****************************************************************************
1293 * IDirect3DVertexDeclaration9 interface
1294 */
1295 #define INTERFACE IDirect3DVertexDeclaration9
1296 DECLARE_INTERFACE_(IDirect3DVertexDeclaration9,IUnknown)
1297 {
1298 /*** IUnknown methods ***/
1299 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1300 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1301 STDMETHOD_(ULONG,Release)(THIS) PURE;
1302 /*** IDirect3DVertexDeclaration9 methods ***/
1303 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1304 STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9*, UINT* pNumElements) PURE;
1305 };
1306 #undef INTERFACE
1307
1308 #if !defined(__cplusplus) || defined(CINTERFACE)
1309 /*** IUnknown methods ***/
1310 #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1311 #define IDirect3DVertexDeclaration9_AddRef(p) (p)->lpVtbl->AddRef(p)
1312 #define IDirect3DVertexDeclaration9_Release(p) (p)->lpVtbl->Release(p)
1313 /*** IDirect3DVertexShader9 methods ***/
1314 #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1315 #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->lpVtbl->GetDeclaration(p,a,b)
1316 #else
1317 /*** IUnknown methods ***/
1318 #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1319 #define IDirect3DVertexDeclaration9_AddRef(p) (p)->AddRef()
1320 #define IDirect3DVertexDeclaration9_Release(p) (p)->Release()
1321 /*** IDirect3DVertexShader9 methods ***/
1322 #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->GetDevice(a)
1323 #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->GetDeclaration(a,b)
1324 #endif
1325
1326 /*****************************************************************************
1327 * IDirect3DVertexShader9 interface
1328 */
1329 #define INTERFACE IDirect3DVertexShader9
1330 DECLARE_INTERFACE_(IDirect3DVertexShader9,IUnknown)
1331 {
1332 /*** IUnknown methods ***/
1333 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1334 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1335 STDMETHOD_(ULONG,Release)(THIS) PURE;
1336 /*** IDirect3DVertexShader9 methods ***/
1337 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1338 STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE;
1339 };
1340 #undef INTERFACE
1341
1342 #if !defined(__cplusplus) || defined(CINTERFACE)
1343 /*** IUnknown methods ***/
1344 #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1345 #define IDirect3DVertexShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
1346 #define IDirect3DVertexShader9_Release(p) (p)->lpVtbl->Release(p)
1347 /*** IDirect3DVertexShader9 methods ***/
1348 #define IDirect3DVertexShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1349 #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1350 #else
1351 /*** IUnknown methods ***/
1352 #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1353 #define IDirect3DVertexShader9_AddRef(p) (p)->AddRef()
1354 #define IDirect3DVertexShader9_Release(p) (p)->Release()
1355 /*** IDirect3DVertexShader9 methods ***/
1356 #define IDirect3DVertexShader9_GetDevice(p,a) (p)->GetDevice(a)
1357 #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->GetFunction(a,b)
1358 #endif
1359
1360 /*****************************************************************************
1361 * IDirect3DPixelShader9 interface
1362 */
1363 #define INTERFACE IDirect3DPixelShader9
1364 DECLARE_INTERFACE_(IDirect3DPixelShader9,IUnknown)
1365 {
1366 /*** IUnknown methods ***/
1367 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1368 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1369 STDMETHOD_(ULONG,Release)(THIS) PURE;
1370 /*** IDirect3DPixelShader9 methods ***/
1371 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1372 STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE;
1373 };
1374 #undef INTERFACE
1375
1376 #if !defined(__cplusplus) || defined(CINTERFACE)
1377 /*** IUnknown methods ***/
1378 #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1379 #define IDirect3DPixelShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
1380 #define IDirect3DPixelShader9_Release(p) (p)->lpVtbl->Release(p)
1381 /*** IDirect3DPixelShader9 methods ***/
1382 #define IDirect3DPixelShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1383 #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1384 #else
1385 /*** IUnknown methods ***/
1386 #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1387 #define IDirect3DPixelShader9_AddRef(p) (p)->AddRef()
1388 #define IDirect3DPixelShader9_Release(p) (p)->Release()
1389 /*** IDirect3DPixelShader9 methods ***/
1390 #define IDirect3DPixelShader9_GetDevice(p,a) (p)->GetDevice(a)
1391 #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->GetFunction(a,b)
1392 #endif
1393
1394 /*****************************************************************************
1395 * IDirect3DStateBlock9 interface
1396 */
1397 #define INTERFACE IDirect3DStateBlock9
1398 DECLARE_INTERFACE_(IDirect3DStateBlock9,IUnknown)
1399 {
1400 /*** IUnknown methods ***/
1401 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1402 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1403 STDMETHOD_(ULONG,Release)(THIS) PURE;
1404 /*** IDirect3DStateBlock9 methods ***/
1405 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1406 STDMETHOD(Capture)(THIS) PURE;
1407 STDMETHOD(Apply)(THIS) PURE;
1408 };
1409 #undef INTERFACE
1410
1411 #if !defined(__cplusplus) || defined(CINTERFACE)
1412 /*** IUnknown methods ***/
1413 #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1414 #define IDirect3DStateBlock9_AddRef(p) (p)->lpVtbl->AddRef(p)
1415 #define IDirect3DStateBlock9_Release(p) (p)->lpVtbl->Release(p)
1416 /*** IDirect3DStateBlock9 methods ***/
1417 #define IDirect3DStateBlock9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1418 #define IDirect3DStateBlock9_Capture(p) (p)->lpVtbl->Capture(p)
1419 #define IDirect3DStateBlock9_Apply(p) (p)->lpVtbl->Apply(p)
1420 #else
1421 /*** IUnknown methods ***/
1422 #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1423 #define IDirect3DStateBlock9_AddRef(p) (p)->AddRef()
1424 #define IDirect3DStateBlock9_Release(p) (p)->Release()
1425 /*** IDirect3DStateBlock9 methods ***/
1426 #define IDirect3DStateBlock9_GetDevice(p,a) (p)->GetDevice(a)
1427 #define IDirect3DStateBlock9_Capture(p) (p)->Capture()
1428 #define IDirect3DStateBlock9_Apply(p) (p)->Apply()
1429 #endif
1430
1431 /*****************************************************************************
1432 * IDirect3DQuery9 interface
1433 */
1434 #define INTERFACE IDirect3DQuery9
1435 DECLARE_INTERFACE_(IDirect3DQuery9,IUnknown)
1436 {
1437 /*** IUnknown methods ***/
1438 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1439 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1440 STDMETHOD_(ULONG,Release)(THIS) PURE;
1441 /*** IDirect3DQuery9 methods ***/
1442 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1443 STDMETHOD_(D3DQUERYTYPE, GetType)(THIS) PURE;
1444 STDMETHOD_(DWORD, GetDataSize)(THIS) PURE;
1445 STDMETHOD(Issue)(THIS_ DWORD dwIssueFlags) PURE;
1446 STDMETHOD(GetData)(THIS_ void* pData, DWORD dwSize, DWORD dwGetDataFlags) PURE;
1447 };
1448 #undef INTERFACE
1449
1450 #if !defined(__cplusplus) || defined(CINTERFACE)
1451 /*** IUnknown methods ***/
1452 #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1453 #define IDirect3DQuery9_AddRef(p) (p)->lpVtbl->AddRef(p)
1454 #define IDirect3DQuery9_Release(p) (p)->lpVtbl->Release(p)
1455 /*** IDirect3DQuery9 ***/
1456 #define IDirect3DQuery9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1457 #define IDirect3DQuery9_GetType(p) (p)->lpVtbl->GetType(p)
1458 #define IDirect3DQuery9_GetDataSize(p) (p)->lpVtbl->GetDataSize(p)
1459 #define IDirect3DQuery9_Issue(p,a) (p)->lpVtbl->Issue(p,a)
1460 #define IDirect3DQuery9_GetData(p,a,b,c) (p)->lpVtbl->GetData(p,a,b,c)
1461 #else
1462 /*** IUnknown methods ***/
1463 #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1464 #define IDirect3DQuery9_AddRef(p) (p)->AddRef()
1465 #define IDirect3DQuery9_Release(p) (p)->Release()
1466 /*** IDirect3DQuery9 ***/
1467 #define IDirect3DQuery9_GetDevice(p,a) (p)->GetDevice(a)
1468 #define IDirect3DQuery9_GetType(p) (p)->GetType()
1469 #define IDirect3DQuery9_GetDataSize(p) (p)->GetDataSize()
1470 #define IDirect3DQuery9_Issue(p,a) (p)->Issue(a)
1471 #define IDirect3DQuery9_GetData(p,a,b,c) (p)->GetData(a,b,c)
1472 #endif
1473
1474 #ifdef __cplusplus
1475 extern "C" {
1476 #endif /* defined(__cplusplus) */
1477
1478 /* Define the main entrypoint as well */
1479 IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion);
1480
1481 #ifdef __cplusplus
1482 } /* extern "C" */
1483 #endif /* defined(__cplusplus) */
1484
1485
1486 #endif /* __WINE_D3D9_H */