Make the users of wine_call_from_32_regs save %eax so that we don't
[wine] / include / wine / wined3d_interface.h
1 /*
2  * Direct3D wine internal public interface file
3  *
4  * Copyright 2002-2003 The wine-d3d team
5  * Copyright 2002-2003 Raphael Junqueira
6  * Copyright 2005 Oliver Stieber
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef __WINE_WINED3D_INTERFACE_H
24 #define __WINE_WINED3D_INTERFACE_H
25
26 #if !defined( __WINE_CONFIG_H )
27 # error You must include config.h to use this header
28 #endif
29
30 #if !defined( __WINE_D3D8_H ) && !defined( __WINE_D3D9_H )
31 # error You must include d3d8.h or d3d9.h header to use this header
32 #endif
33
34 #include "wined3d_types.h"
35 /*****************************************************************
36  * THIS FILE MUST NOT CONTAIN X11 or MESA DEFINES 
37  * PLEASE USE wine/wined3d_gl.h INSTEAD
38  */
39
40
41  /*****************************************************************************
42  * Predeclare the interfaces
43  */
44
45 struct IWineD3D;
46 struct IWineD3DDevice;
47 struct IWineD3DResource;
48 struct IWineD3DVertexBuffer;
49 struct IWineD3DIndexBuffer;
50 struct IWineD3DBaseTexture;
51 struct IWineD3DTexture;
52 struct IWineD3DCubeTexture;
53 struct IWineD3DVolumeTexture;
54 struct IWineD3DStateBlock;
55 struct IWineD3DSurface;
56 struct IWineD3DVolume;
57 struct IWineD3DVertexDeclaration;
58 struct IWineD3DVertexShader;
59 struct IWineD3DPixelShader;
60 struct IWineD3DQuery;
61 struct IWineD3DSwapChain;
62
63
64 /* {108F9C44-6F30-11d9-C687-00046142C14F} */
65 DEFINE_GUID(IID_IWineD3D, 
66 0x108f9c44, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
67
68 /* {108F9C44-6F30-11d9-C687-00046142C14F} */
69 DEFINE_GUID(IID_IWineD3DDevice, 
70 0x108f9c44, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
71
72
73 /* {1F3BFB34-6F30-11d9-C687-00046142C14F} */
74 DEFINE_GUID(IID_IWineD3DResource, 
75 0x1f3bfb34, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
76
77 /* {217F671E-6F30-11d9-C687-00046142C14F} */
78 DEFINE_GUID(IID_IWineD3DVertexBuffer, 
79 0x217f671e, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
80
81 /* {24769ED8-6F30-11d9-C687-00046142C14F} */
82 DEFINE_GUID(IID_IWineD3DVolume, 
83 0x24769ed8, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
84
85
86 /* {34D01B10-6F30-11d9-C687-00046142C14F} */
87 DEFINE_GUID(IID_IWineD3DSwapChain, 
88 0x34d01b10, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
89
90 /* {37CD5526-6F30-11d9-C687-00046142C14F} */
91 DEFINE_GUID(IID_IWineD3DSurface, 
92 0x37cd5526, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
93
94
95 /* {3A02A54E-6F30-11d9-C687-00046142C14F} */
96 DEFINE_GUID(IID_IWineD3DIndexBuffer, 
97 0x3a02a54e, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
98
99 /* {3C2AEBF6-6F30-11d9-C687-00046142C14F} */
100 DEFINE_GUID(IID_IWineD3DBaseTexture, 
101 0x3c2aebf6, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
102
103 /* {3E72CC1C-6F30-11d9-C687-00046142C14F} */
104 DEFINE_GUID(IID_IWineD3DTexture, 
105 0x3e72cc1c, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
106
107 /* {41752900-6F30-11d9-C687-00046142C14F} */
108 DEFINE_GUID(IID_IWineD3DCubeTexture, 
109 0x41752900, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
110
111 /* {7B39470C-6F30-11d9-C687-00046142C14F} */
112 DEFINE_GUID(IID_IWineD3DVolumeTexture, 
113 0x7b39470c, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
114
115 /* {7CD55BE6-6F30-11d9-C687-00046142C14F} */
116 DEFINE_GUID(IID_IWineD3DVertexDeclaration, 
117 0x7cd55be6, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
118
119 /* {7F7A2B60-6F30-11d9-C687-00046142C14F} */
120 DEFINE_GUID(IID_IWineD3DVertexShader, 
121 0x7f7a2b60, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
122
123 /* {818503DA-6F30-11d9-C687-00046142C14F} */
124 DEFINE_GUID(IID_IWineD3DPixelShader, 
125 0x818503da, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
126
127 /* {83B073CE-6F30-11d9-C687-00046142C14F} */
128 DEFINE_GUID(IID_IWineD3DStateBlock, 
129 0x83b073ce, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
130
131 /* {905DDBAC-6F30-11d9-C687-00046142C14F} */
132 DEFINE_GUID(IID_IWineD3DQuery, 
133 0x905ddbac, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
134
135
136 /* The following have differing names, but actually are the same layout. */
137 /* Also, D3DCAPS8 is a subset of D3DCAPS9 so can be typecase as long as
138      none of the 9 fields are accessed when the device is d3d8           */
139 /* TODO: remove the d3d8/d3d9 dependencies by making a all inclusive WINED3D version */
140 #if defined( __WINE_D3D8_H )
141  /* Identical: */ 
142 # define WINED3DLIGHT           D3DLIGHT8
143 # define WINED3DCLIPSTATUS      D3DCLIPSTATUS8
144 # define WINED3DMATERIAL        D3DMATERIAL8
145 # define WINED3DVIEWPORT        D3DVIEWPORT8
146
147 #else
148  /* Identical: */ 
149 # define WINED3DLIGHT           D3DLIGHT9
150 # define WINED3DCLIPSTATUS      D3DCLIPSTATUS9
151 # define WINED3DMATERIAL        D3DMATERIAL9
152 # define WINED3DVIEWPORT        D3DVIEWPORT9
153
154 #endif
155
156 /*****************************************************************************
157  * Callback functions required for predefining surfaces / stencils
158  */
159 typedef HRESULT WINAPI (*D3DCB_CREATERENDERTARGETFN) (IUnknown *pDevice,
160                                                UINT       Width, 
161                                                UINT       Height, 
162                                                WINED3DFORMAT  Format, 
163                                                D3DMULTISAMPLE_TYPE MultiSample, 
164                                                DWORD      MultisampleQuality, 
165                                                BOOL       Lockable, 
166                                                struct IWineD3DSurface **ppSurface,
167                                                HANDLE    *pSharedHandle);
168
169 typedef HRESULT WINAPI (*D3DCB_CREATESURFACEFN) (IUnknown *pDevice,
170                                                UINT       Width, 
171                                                UINT       Height,
172                                                WINED3DFORMAT Format,
173                                                DWORD      Usage,
174                                                D3DPOOL    Pool,            
175                                                UINT       Level,
176                                                struct IWineD3DSurface **ppSurface,
177                                                HANDLE    *pSharedHandle);
178
179 typedef HRESULT WINAPI (*D3DCB_CREATEDEPTHSTENCILSURFACEFN) (IUnknown *pDevice,
180                                                UINT       Width, 
181                                                UINT       Height, 
182                                                WINED3DFORMAT  Format, 
183                                                D3DMULTISAMPLE_TYPE MultiSample, 
184                                                DWORD      MultisampleQuality, 
185                                                BOOL       Discard, 
186                                                struct IWineD3DSurface **ppSurface,
187                                                HANDLE    *pSharedHandle);
188
189
190 typedef HRESULT WINAPI (*D3DCB_CREATEVOLUMEFN) (IUnknown *pDevice,
191                                                UINT       Width, 
192                                                UINT       Height, 
193                                                UINT       Depth, 
194                                                WINED3DFORMAT  Format, 
195                                                D3DPOOL    Pool,
196                                                DWORD      Usage,
197                                                struct IWineD3DVolume **ppVolume,
198                                                HANDLE    *pSharedHandle);
199
200 typedef HRESULT WINAPI (*D3DCB_CREATEADDITIONALSWAPCHAIN) (IUnknown *pDevice,
201                                                WINED3DPRESENT_PARAMETERS *pPresentationParameters,
202                                                struct IWineD3DSwapChain **pSwapChain
203                                                );
204
205 /*****************************************************************************
206  * IWineD3D interface 
207  */
208
209 #define INTERFACE IWineD3D
210 DECLARE_INTERFACE_(IWineD3D,IUnknown)
211 {
212     /*** IUnknown methods ***/
213     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
214     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
215     STDMETHOD_(ULONG,Release)(THIS) PURE;
216     /*** IWineD3D methods ***/
217     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
218     STDMETHOD_(UINT,GetAdapterCount)(THIS) PURE;
219     STDMETHOD(RegisterSoftwareDevice)(THIS_ void * pInitializeFunction) PURE;
220     STDMETHOD_(HMONITOR,GetAdapterMonitor)(THIS_ UINT Adapter) PURE;
221     STDMETHOD_(UINT,GetAdapterModeCount)(THIS_ UINT Adapter, WINED3DFORMAT Format) PURE;
222     STDMETHOD(EnumAdapterModes)(THIS_ UINT  Adapter, UINT  Mode, WINED3DFORMAT Format, D3DDISPLAYMODE * pMode) PURE;
223     STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT  Adapter, D3DDISPLAYMODE *pMode) PURE;
224     STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, WINED3DADAPTER_IDENTIFIER* pIdentifier) PURE;
225     STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT  Adapter, D3DDEVTYPE  DeviceType, WINED3DFORMAT  SurfaceFormat, BOOL  Windowed, D3DMULTISAMPLE_TYPE  MultiSampleType, DWORD *pQuality) PURE;
226     STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT  Adapter, D3DDEVTYPE  DeviceType, WINED3DFORMAT  AdapterFormat, WINED3DFORMAT  RenderTargetFormat, WINED3DFORMAT  DepthStencilFormat) PURE;
227     STDMETHOD(CheckDeviceType)(THIS_ UINT  Adapter, D3DDEVTYPE  CheckType, WINED3DFORMAT  DisplayFormat, WINED3DFORMAT  BackBufferFormat, BOOL  Windowed) PURE;
228     STDMETHOD(CheckDeviceFormat)(THIS_ UINT  Adapter, D3DDEVTYPE  DeviceType, WINED3DFORMAT  AdapterFormat, DWORD  Usage, D3DRESOURCETYPE  RType, WINED3DFORMAT  CheckFormat) PURE;
229     STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, WINED3DFORMAT SourceFormat, WINED3DFORMAT TargetFormat) PURE;
230     STDMETHOD(GetDeviceCaps)(THIS_ UINT  Adapter, D3DDEVTYPE  DeviceType, WINED3DCAPS *pCaps) PURE;
231     STDMETHOD(CreateDevice)(THIS_ UINT  Adapter, D3DDEVTYPE  DeviceType,HWND  hFocusWindow, DWORD  BehaviorFlags, WINED3DPRESENT_PARAMETERS *pPresentationParameters, struct IWineD3DDevice **ppReturnedDeviceInterface, IUnknown *parent, D3DCB_CREATEADDITIONALSWAPCHAIN pFn3) PURE;
232
233 };
234 #undef INTERFACE
235
236 #if !defined(__cplusplus) || defined(CINTERFACE)
237 /*** IUnknown methods ***/
238 #define IWineD3D_QueryInterface(p,a,b)                    (p)->lpVtbl->QueryInterface(p,a,b)
239 #define IWineD3D_AddRef(p)                                (p)->lpVtbl->AddRef(p)
240 #define IWineD3D_Release(p)                               (p)->lpVtbl->Release(p)
241 /*** IWineD3D methods ***/
242 #define IWineD3D_GetParent(p,a)                           (p)->lpVtbl->GetParent(p,a)
243 #define IWineD3D_GetAdapterCount(p)                       (p)->lpVtbl->GetAdapterCount(p)
244 #define IWineD3D_RegisterSoftwareDevice(p,a)              (p)->lpVtbl->RegisterSoftwareDevice(p,a)
245 #define IWineD3D_GetAdapterMonitor(p,a)                   (p)->lpVtbl->GetAdapterMonitor(p,a)
246 #define IWineD3D_GetAdapterModeCount(p,a,b)               (p)->lpVtbl->GetAdapterModeCount(p,a,b)
247 #define IWineD3D_EnumAdapterModes(p,a,b,c,d)              (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
248 #define IWineD3D_GetAdapterDisplayMode(p,a,b)             (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
249 #define IWineD3D_GetAdapterIdentifier(p,a,b,c)            (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
250 #define IWineD3D_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
251 #define IWineD3D_CheckDepthStencilMatch(p,a,b,c,d,e)      (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
252 #define IWineD3D_CheckDeviceType(p,a,b,c,d,e)             (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
253 #define IWineD3D_CheckDeviceFormat(p,a,b,c,d,e,f)         (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
254 #define IWineD3D_CheckDeviceFormatConversion(p,a,b,c,d)   (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
255 #define IWineD3D_GetDeviceCaps(p,a,b,c)                   (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
256 #define IWineD3D_CreateDevice(p,a,b,c,d,e,f,g,h)          (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f,g,h)
257 #endif
258
259 /* Define the main WineD3D entrypoint */
260 IWineD3D* WINAPI WineDirect3DCreate(UINT SDKVersion, UINT dxVersion, IUnknown *parent);
261
262 /*****************************************************************************
263  * IWineD3DDevice interface 
264  */
265 #define INTERFACE IWineD3DDevice
266 DECLARE_INTERFACE_(IWineD3DDevice,IUnknown) 
267
268     /*** IUnknown methods ***/
269     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
270     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
271     STDMETHOD_(ULONG,Release)(THIS) PURE;
272     /*** IWineD3DDevice methods ***/
273     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
274     STDMETHOD(CreateVertexBuffer)(THIS_ UINT  Length,DWORD  Usage,DWORD  FVF,D3DPOOL  Pool,struct IWineD3DVertexBuffer **ppVertexBuffer, HANDLE *sharedHandle, IUnknown *parent) PURE;
275     STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length, DWORD Usage, WINED3DFORMAT Format, D3DPOOL Pool, struct IWineD3DIndexBuffer** ppIndexBuffer, HANDLE* pSharedHandle, IUnknown *parent) PURE;
276     STDMETHOD(CreateStateBlock)(THIS_ WINED3DSTATEBLOCKTYPE Type, struct IWineD3DStateBlock **ppStateBlock, IUnknown *parent) PURE;
277     STDMETHOD(CreateSurface)(THIS_ UINT Width, UINT Height, WINED3DFORMAT Format,  BOOL Lockable, BOOL Discard, UINT Level,  struct IWineD3DSurface** ppSurface, D3DRESOURCETYPE Type, DWORD Usage, D3DPOOL Pool, D3DMULTISAMPLE_TYPE MultiSample ,DWORD MultisampleQuality,  HANDLE* pSharedHandle, IUnknown *parent) PURE;    
278     STDMETHOD(CreateTexture)(THIS_ UINT Width, UINT Height, UINT Levels, DWORD Usage, WINED3DFORMAT Format, D3DPOOL Pool, struct IWineD3DTexture** ppTexture, HANDLE* pSharedHandle, IUnknown *parent, D3DCB_CREATESURFACEFN pFn) PURE;
279     STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, WINED3DFORMAT Format, D3DPOOL Pool, struct IWineD3DVolumeTexture** ppVolumeTexture, HANDLE* pSharedHandle, IUnknown *parent, D3DCB_CREATEVOLUMEFN pFn) PURE;
280     STDMETHOD(CreateVolume)(THIS_ UINT Width, UINT Height, UINT Depth, DWORD Usage, WINED3DFORMAT Format, D3DPOOL Pool, struct IWineD3DVolume** ppVolumeTexture, HANDLE* pSharedHandle, IUnknown *parent) PURE;
281     STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength, UINT Levels, DWORD Usage, WINED3DFORMAT Format, D3DPOOL Pool, struct IWineD3DCubeTexture** ppCubeTexture, HANDLE* pSharedHandle, IUnknown *parent, D3DCB_CREATESURFACEFN pFn) PURE;
282     STDMETHOD(CreateQuery)(THIS_ WINED3DQUERYTYPE Type, struct IWineD3DQuery **ppQuery, IUnknown *pParent);
283     STDMETHOD(CreateAdditionalSwapChain)(THIS_ WINED3DPRESENT_PARAMETERS *pPresentationParameters, struct IWineD3DSwapChain **pSwapChain, IUnknown *pParent, D3DCB_CREATERENDERTARGETFN pFn, D3DCB_CREATEDEPTHSTENCILSURFACEFN pFn2);
284     STDMETHOD(CreateVertexDeclaration)(THIS_ CONST VOID* pDeclaration, struct IWineD3DVertexDeclaration** ppDecl, IUnknown* pParent) PURE;
285     STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD* pFunction, struct IWineD3DVertexShader** ppShader, IUnknown *pParent) PURE;
286     STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD* pFunction, struct IWineD3DPixelShader** ppShader, IUnknown *pParent) PURE;
287     STDMETHOD(EvictManagedResources)(THIS) PURE;
288     STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE;
289     STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain, UINT BackBuffer, D3DBACKBUFFER_TYPE, struct IWineD3DSurface** ppBackBuffer) PURE;
290     STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE;
291     STDMETHOD(GetDeviceCaps)(THIS_ WINED3DCAPS* pCaps) PURE;
292     STDMETHOD(GetDirect3D)(THIS_ IWineD3D** ppD3D) PURE;
293     STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain, D3DDISPLAYMODE* pMode) PURE;
294     STDMETHOD_(UINT, GetNumberOfSwapChains)(THIS) PURE;
295     STDMETHOD(GetRasterStatus)(THIS_ UINT iSwapChain, D3DRASTER_STATUS* pRasterStatus) PURE;
296     STDMETHOD(GetSwapChain)(THIS_ UINT iSwapChain, struct IWineD3DSwapChain **pSwapChain) PURE;
297     STDMETHOD(Reset)(THIS_ WINED3DPRESENT_PARAMETERS* pPresentationParameters) PURE;
298     STDMETHOD(SetDialogBoxMode)(THIS_ BOOL bEnableDialogs) PURE;
299     STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, struct IWineD3DSurface* pCursorBitmap) PURE;
300     STDMETHOD_(void, SetCursorPosition)(THIS_ int XScreenSpace, int YScreenSpace, DWORD Flags) PURE;
301     STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE;
302     STDMETHOD(TestCooperativeLevel)(THIS) PURE;
303     STDMETHOD(SetClipPlane)(THIS_ DWORD  Index,CONST float * pPlane) PURE;
304     STDMETHOD(GetClipPlane)(THIS_ DWORD  Index,float * pPlane) PURE;
305     STDMETHOD(SetClipStatus)(THIS_ CONST WINED3DCLIPSTATUS * pClipStatus) PURE;
306     STDMETHOD(GetClipStatus)(THIS_ WINED3DCLIPSTATUS * pClipStatus) PURE;
307     STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE;
308     STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE;
309     STDMETHOD(SetDepthStencilSurface)(THIS_ struct IWineD3DSurface* pNewZStencil) PURE;
310     STDMETHOD(GetDepthStencilSurface)(THIS_ struct IWineD3DSurface** ppZStencilSurface) PURE;
311     STDMETHOD(SetFVF)(THIS_ DWORD  fvf) PURE;
312     STDMETHOD(GetFVF)(THIS_ DWORD * pfvf) PURE;
313     STDMETHOD_(void, SetGammaRamp)(THIS_ UINT iSwapChain, DWORD Flags, CONST D3DGAMMARAMP* pRamp) PURE;
314     STDMETHOD_(void, GetGammaRamp)(THIS_ UINT iSwapChain, D3DGAMMARAMP* pRamp) PURE;
315     STDMETHOD(SetIndices)(THIS_ struct IWineD3DIndexBuffer * pIndexData,UINT  BaseVertexIndex) PURE;
316     STDMETHOD(GetIndices)(THIS_ struct IWineD3DIndexBuffer ** ppIndexData,UINT * pBaseVertexIndex) PURE;
317     STDMETHOD(SetLight)(THIS_ DWORD  Index,CONST WINED3DLIGHT * pLight) PURE;
318     STDMETHOD(GetLight)(THIS_ DWORD  Index,WINED3DLIGHT * pLight) PURE;
319     STDMETHOD(SetLightEnable)(THIS_ DWORD  Index,BOOL  Enable) PURE;
320     STDMETHOD(GetLightEnable)(THIS_ DWORD  Index,BOOL * pEnable) PURE;
321     STDMETHOD(SetMaterial)(THIS_ CONST WINED3DMATERIAL * pMaterial) PURE;
322     STDMETHOD(GetMaterial)(THIS_ WINED3DMATERIAL *pMaterial) PURE;
323     STDMETHOD(SetNPatchMode)(THIS_ float nSegments) PURE;
324     STDMETHOD_(float, GetNPatchMode)(THIS) PURE;
325     STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber, CONST PALETTEENTRY* pEntries) PURE;
326     STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE;
327     STDMETHOD(SetPixelShader)(THIS_ struct IWineD3DPixelShader  *pShader) PURE;
328     STDMETHOD(GetPixelShader)(THIS_ struct IWineD3DPixelShader **ppShader) PURE;
329     STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL* pConstantData, UINT  BoolCount) PURE;
330     STDMETHOD(GetPixelShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE;
331     STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) PURE;
332     STDMETHOD(GetPixelShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) 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(SetRenderState)(THIS_ D3DRENDERSTATETYPE  State,DWORD  Value) PURE;
336     STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE  State,DWORD * pValue) PURE;
337     STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex, struct IWineD3DSurface* pRenderTarget) PURE;
338     STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex, struct IWineD3DSurface** ppRenderTarget) PURE;
339     STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, WINED3DSAMPLERSTATETYPE Type, DWORD Value) PURE;
340     STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler, WINED3DSAMPLERSTATETYPE Type, DWORD* Value) PURE;
341     STDMETHOD(SetScissorRect)(THIS_ CONST RECT* pRect) PURE;
342     STDMETHOD(GetScissorRect)(THIS_ RECT* pRect) PURE;
343     STDMETHOD(SetSoftwareVertexProcessing)(THIS_ BOOL bSoftware) PURE;
344     STDMETHOD_(BOOL, GetSoftwareVertexProcessing)(THIS) PURE;
345     STDMETHOD(SetStreamSource)(THIS_ UINT  StreamNumber,struct IWineD3DVertexBuffer * pStreamData,UINT Offset,UINT  Stride) PURE;
346     STDMETHOD(GetStreamSource)(THIS_ UINT  StreamNumber,struct IWineD3DVertexBuffer ** ppStreamData,UINT *pOffset, UINT * pStride) PURE;
347     STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT Divider) PURE;
348     STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT* Divider) PURE;
349     STDMETHOD(SetTexture)(THIS_ DWORD Stage, struct IWineD3DBaseTexture* pTexture) PURE;
350     STDMETHOD(GetTexture)(THIS_ DWORD Stage, struct IWineD3DBaseTexture** ppTexture) PURE;
351     STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage, WINED3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE;
352     STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage, WINED3DTEXTURESTAGESTATETYPE Type,DWORD *pValue) PURE;
353     STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE  State,CONST D3DMATRIX * pMatrix) PURE;
354     STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE  State,D3DMATRIX * pMatrix) PURE;
355     STDMETHOD(SetVertexDeclaration)(THIS_ struct IWineD3DVertexDeclaration* pDecl) PURE;
356     STDMETHOD(GetVertexDeclaration)(THIS_ struct IWineD3DVertexDeclaration** ppDecl) PURE;
357     STDMETHOD(SetVertexShader)(THIS_ struct IWineD3DVertexShader* pShader) PURE;
358     STDMETHOD(GetVertexShader)(THIS_ struct IWineD3DVertexShader** ppShader) PURE;
359     STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL*  pConstantData, UINT BoolCount) PURE;
360     STDMETHOD(GetVertexShaderConstantB)(THIS_ UINT StartRegister, BOOL*        pConstantData, UINT BoolCount) PURE;
361     STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT StartRegister, CONST int*   pConstantData, UINT Vector4iCount) PURE;
362     STDMETHOD(GetVertexShaderConstantI)(THIS_ UINT StartRegister, int*         pConstantData, UINT Vector4iCount) PURE;
363     STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) PURE;
364     STDMETHOD(GetVertexShaderConstantF)(THIS_ UINT StartRegister, float*       pConstantData, UINT Vector4fCount) PURE;
365     STDMETHOD(SetViewport)(THIS_ CONST WINED3DVIEWPORT * pViewport) PURE;
366     STDMETHOD(GetViewport)(THIS_ WINED3DVIEWPORT * pViewport) PURE;
367     STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE  State, CONST D3DMATRIX * pMatrix) PURE;
368     STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE;
369     STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, struct IWineD3DVertexBuffer* pDestBuffer, struct IWineD3DVertexBuffer* pVertexDecl, DWORD Flags) PURE;
370     STDMETHOD(BeginStateBlock)(THIS) PURE;
371     STDMETHOD(EndStateBlock)(THIS_ struct IWineD3DStateBlock** ppStateBlock) PURE;
372     STDMETHOD(BeginScene)(THIS) PURE;
373     STDMETHOD(EndScene)(THIS) PURE;
374     STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect,CONST RECT * pDestRect,HWND  hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE;
375     STDMETHOD(Clear)(THIS_ DWORD  Count,CONST D3DRECT * pRects,DWORD  Flags,D3DCOLOR  Color,float  Z,DWORD  Stencil) PURE;
376     STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE  PrimitiveType,UINT  StartVertex,UINT  PrimitiveCount) PURE;
377     STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE  PrimitiveType,INT baseVIdx, UINT  minIndex,UINT  NumVertices,UINT  startIndex,UINT  primCount) PURE;
378     STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE  PrimitiveType,UINT  PrimitiveCount,CONST void * pVertexStreamZeroData,UINT  VertexStreamZeroStride) PURE;
379     STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE  PrimitiveType,UINT  MinVertexIndex,UINT  NumVertexIndices,UINT  PrimitiveCount,CONST void * pIndexData,WINED3DFORMAT  IndexDataFormat,CONST void * pVertexStreamZeroData,UINT  VertexStreamZeroStride) PURE;
380     STDMETHOD(DrawRectPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST D3DRECTPATCH_INFO* pRectPatchInfo) PURE;
381     STDMETHOD(DrawTriPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST D3DTRIPATCH_INFO* pTriPatchInfo) PURE;
382     STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE;
383     STDMETHOD(ColorFill)(THIS_ struct IWineD3DSurface* pSurface, CONST D3DRECT* pRect, D3DCOLOR color) PURE;
384     STDMETHOD(UpdateTexture)(THIS_ struct IWineD3DBaseTexture *pSourceTexture, struct IWineD3DBaseTexture *pDestinationTexture) PURE;
385     STDMETHOD(UpdateSurface)(THIS_ struct IWineD3DSurface* pSourceSurface, CONST RECT* pSourceRect, struct IWineD3DSurface* pDestinationSurface, CONST POINT* pDestPoint) PURE;
386     STDMETHOD(StretchRect)(THIS_ struct IWineD3DSurface* pSourceSurface, CONST RECT* pSourceRect, struct IWineD3DSurface* pDestinationSurface, CONST RECT* pDestRect, D3DTEXTUREFILTERTYPE Filter) PURE;
387     STDMETHOD(GetRenderTargetData)(THIS_ struct IWineD3DSurface* pRenderTarget, struct IWineD3DSurface* pSurface) PURE;
388     STDMETHOD(GetFrontBufferData)(THIS_ UINT iSwapChain,struct IWineD3DSurface* pSurface) PURE;
389     /*** Internal use IWineD3Device methods ***/
390     STDMETHOD_(void, SetupTextureStates)(THIS_ DWORD Stage, DWORD Flags);
391     STDMETHOD_(void, SwapChainReleased)(THIS_ struct IWineD3DSwapChain *swapChain);
392     /*** object tracking ***/
393     STDMETHOD_(void, ResourceReleased)(THIS_ struct IWineD3DResource *resource);
394 };
395 #undef INTERFACE
396
397 #if !defined(__cplusplus) || defined(CINTERFACE)
398 /*** IUnknown methods ***/
399 #define IWineD3DDevice_QueryInterface(p,a,b)             (p)->lpVtbl->QueryInterface(p,a,b)
400 #define IWineD3DDevice_AddRef(p)                         (p)->lpVtbl->AddRef(p)
401 #define IWineD3DDevice_Release(p)                        (p)->lpVtbl->Release(p)
402 /*** IWineD3DDevice methods ***/
403 #define IWineD3DDevice_GetParent(p,a)                           (p)->lpVtbl->GetParent(p,a)
404 #define IWineD3DDevice_CreateVertexBuffer(p,a,b,c,d,e,f,g)      (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f,g)
405 #define IWineD3DDevice_CreateIndexBuffer(p,a,b,c,d,e,f,g)       (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f,g)
406 #define IWineD3DDevice_CreateStateBlock(p,a,b,c)                (p)->lpVtbl->CreateStateBlock(p,a,b,c)
407 #define IWineD3DDevice_CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n)      (p)->lpVtbl->CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n)
408 #define IWineD3DDevice_CreateTexture(p,a,b,c,d,e,f,g,h,i,j)     (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h,i,j)
409 #define IWineD3DDevice_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i,j,k)    (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i,j,k)
410 #define IWineD3DDevice_CreateVolume(p,a,b,c,d,e,f,g,h,i)        (p)->lpVtbl->CreateVolume(p,a,b,c,d,e,f,g,h,i)
411 #define IWineD3DDevice_CreateCubeTexture(p,a,b,c,d,e,f,g,h,i)   (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g,h,i)
412 #define IWineD3DDevice_CreateQuery(p,a,b,c)                     (p)->lpVtbl->CreateQuery(p,a,b,c)
413 #define IWineD3DDevice_CreateAdditionalSwapChain(p,a,b,c,d,e)   (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b,c,d,e)
414 #define IWineD3DDevice_CreateVertexDeclaration(p,b,c,d)         (p)->lpVtbl->CreateVertexDeclaration(p,b,c,d)
415 #define IWineD3DDevice_CreateVertexShader(p,a,b,c)              (p)->lpVtbl->CreateVertexShader(p,a,b,c)
416 #define IWineD3DDevice_CreatePixelShader(p,a,b,c)               (p)->lpVtbl->CreatePixelShader(p,a,b,c)
417 #define IWineD3DDevice_EvictManagedResources(p)                 (p)->lpVtbl->EvictManagedResources(p)
418 #define IWineD3DDevice_GetAvailableTextureMem(p)                (p)->lpVtbl->GetAvailableTextureMem(p)
419 #define IWineD3DDevice_GetBackBuffer(p,a,b,c,d)                 (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
420 #define IWineD3DDevice_GetCreationParameters(p,a)               (p)->lpVtbl->GetCreationParameters(p,a)
421 #define IWineD3DDevice_GetDeviceCaps(p,a)                       (p)->lpVtbl->GetDeviceCaps(p,a)
422 #define IWineD3DDevice_GetDirect3D(p,a)                         (p)->lpVtbl->GetDirect3D(p,a)
423 #define IWineD3DDevice_GetDisplayMode(p,a,b)                    (p)->lpVtbl->GetDisplayMode(p,a,b)
424 #define IWineD3DDevice_GetNumberOfSwapChains(p)                 (p)->lpVtbl->GetNumberOfSwapChains(p)
425 #define IWineD3DDevice_Reset(p,a)                               (p)->lpVtbl->Reset(p,a)
426 #define IWineD3DDevice_SetDialogBoxMode(p,a)                    (p)->lpVtbl->SetDialogBoxMode(p,a)
427 #define IWineD3DDevice_SetCursorProperties(p,a,b,c)             (p)->lpVtbl->SetCursorProperties(p,a,b,c)
428 #define IWineD3DDevice_SetCursorPosition(p,a,b,c)               (p)->lpVtbl->SetCursorPosition(p,a,b,c)
429 #define IWineD3DDevice_ShowCursor(p,a)                          (p)->lpVtbl->ShowCursor(p,a)
430 #define IWineD3DDevice_TestCooperativeLevel(p)                  (p)->lpVtbl->TestCooperativeLevel(p)
431 #define IWineD3DDevice_SetFVF(p,a)                              (p)->lpVtbl->SetFVF(p,a)
432 #define IWineD3DDevice_GetFVF(p,a)                              (p)->lpVtbl->GetFVF(p,a)
433 #define IWineD3DDevice_SetClipPlane(p,a,b)                      (p)->lpVtbl->SetClipPlane(p,a,b)
434 #define IWineD3DDevice_GetClipPlane(p,a,b)                      (p)->lpVtbl->GetClipPlane(p,a,b)
435 #define IWineD3DDevice_SetClipStatus(p,a)                       (p)->lpVtbl->SetClipStatus(p,a)
436 #define IWineD3DDevice_GetClipStatus(p,a)                       (p)->lpVtbl->GetClipStatus(p,a)
437 #define IWineD3DDevice_SetCurrentTexturePalette(p,a)            (p)->lpVtbl->SetCurrentTexturePalette(p,a)
438 #define IWineD3DDevice_GetCurrentTexturePalette(p,a)            (p)->lpVtbl->GetCurrentTexturePalette(p,a)
439 #define IWineD3DDevice_SetDepthStencilSurface(p,a)              (p)->lpVtbl->SetDepthStencilSurface(p,a)
440 #define IWineD3DDevice_GetDepthStencilSurface(p,a)              (p)->lpVtbl->GetDepthStencilSurface(p,a)
441 #define IWineD3DDevice_SetGammaRamp(p,a,b,c)                    (p)->lpVtbl->SetGammaRamp(p,a,b,c)
442 #define IWineD3DDevice_GetGammaRamp(p,a,b)                      (p)->lpVtbl->GetGammaRamp(p,a,b)
443 #define IWineD3DDevice_SetIndices(p,a,b)                        (p)->lpVtbl->SetIndices(p,a,b)
444 #define IWineD3DDevice_GetIndices(p,a,b)                        (p)->lpVtbl->GetIndices(p,a,b)
445 #define IWineD3DDevice_SetLight(p,a,b)                          (p)->lpVtbl->SetLight(p,a,b)
446 #define IWineD3DDevice_GetLight(p,a,b)                          (p)->lpVtbl->GetLight(p,a,b)
447 #define IWineD3DDevice_SetLightEnable(p,a,b)                    (p)->lpVtbl->SetLightEnable(p,a,b)
448 #define IWineD3DDevice_GetLightEnable(p,a,b)                    (p)->lpVtbl->GetLightEnable(p,a,b)
449 #define IWineD3DDevice_SetMaterial(p,a)                         (p)->lpVtbl->SetMaterial(p,a)
450 #define IWineD3DDevice_GetMaterial(p,a)                         (p)->lpVtbl->GetMaterial(p,a)
451 #define IWineD3DDevice_SetNPatchMode(p,a)                       (p)->lpVtbl->SetNPatchMode(p,a)
452 #define IWineD3DDevice_GetNPatchMode(p)                         (p)->lpVtbl->GetNPatchMode(p)
453 #define IWineD3DDevice_SetPaletteEntries(p,a,b)                 (p)->lpVtbl->SetPaletteEntries(p,a,b)
454 #define IWineD3DDevice_GetPaletteEntries(p,a,b)                 (p)->lpVtbl->GetPaletteEntries(p,a,b)
455 #define IWineD3DDevice_SetPixelShader(p,a)                      (p)->lpVtbl->SetPixelShader(p,a)
456 #define IWineD3DDevice_GetPixelShader(p,a)                      (p)->lpVtbl->GetPixelShader(p,a)
457 #define IWineD3DDevice_SetPixelShaderConstantB(p,a,b,c)         (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
458 #define IWineD3DDevice_GetPixelShaderConstantB(p,a,b,c)         (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
459 #define IWineD3DDevice_SetPixelShaderConstantI(p,a,b,c)         (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
460 #define IWineD3DDevice_GetPixelShaderConstantI(p,a,b,c)         (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
461 #define IWineD3DDevice_SetPixelShaderConstantF(p,a,b,c)         (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
462 #define IWineD3DDevice_GetPixelShaderConstantF(p,a,b,c)         (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
463 #define IWineD3DDevice_GetRasterStatus(p,a,b)                   (p)->lpVtbl->GetRasterStatus(p,a,b)
464 #define IWineD3DDevice_SetRenderState(p,a,b)                    (p)->lpVtbl->SetRenderState(p,a,b)
465 #define IWineD3DDevice_GetRenderState(p,a,b)                    (p)->lpVtbl->GetRenderState(p,a,b)
466 #define IWineD3DDevice_SetRenderTarget(p,a,b)                   (p)->lpVtbl->SetRenderTarget(p,a,b)
467 #define IWineD3DDevice_GetRenderTarget(p,a,b)                   (p)->lpVtbl->GetRenderTarget(p,a,b)
468 #define IWineD3DDevice_SetSamplerState(p,a,b,c)                 (p)->lpVtbl->SetSamplerState(p,a,b,c)
469 #define IWineD3DDevice_GetSamplerState(p,a,b,c)                 (p)->lpVtbl->GetSamplerState(p,a,b,c)
470 #define IWineD3DDevice_SetScissorRect(p,a)                      (p)->lpVtbl->SetScissorRect(p,a)
471 #define IWineD3DDevice_GetScissorRect(p,a)                      (p)->lpVtbl->GetScissorRect(p,a)
472 #define IWineD3DDevice_SetSoftwareVertexProcessing(p,a)         (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
473 #define IWineD3DDevice_GetSoftwareVertexProcessing(p)           (p)->lpVtbl->GetSoftwareVertexProcessing(p)
474 #define IWineD3DDevice_SetStreamSource(p,a,b,c,d)               (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
475 #define IWineD3DDevice_GetStreamSource(p,a,b,c,d)               (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
476 #define IWineD3DDevice_SetStreamSourceFreq(p,a,b)               (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
477 #define IWineD3DDevice_GetStreamSourceFreq(p,a,b)               (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
478 #define IWineD3DDevice_GetSwapChain(p,a,b)                      (p)->lpVtbl->GetSwapChain(p,a,b)
479 #define IWineD3DDevice_SetTextureStageState(p,a,b,c)            (p)->lpVtbl->SetTextureStageState(p,a,b,c)
480 #define IWineD3DDevice_GetTextureStageState(p,a,b,c)            (p)->lpVtbl->GetTextureStageState(p,a,b,c)
481 #define IWineD3DDevice_SetTexture(p,a,b)                        (p)->lpVtbl->SetTexture(p,a,b)
482 #define IWineD3DDevice_GetTexture(p,a,b)                        (p)->lpVtbl->GetTexture(p,a,b)
483 #define IWineD3DDevice_SetTransform(p,a,b)                      (p)->lpVtbl->SetTransform(p,a,b)
484 #define IWineD3DDevice_GetTransform(p,a,b)                      (p)->lpVtbl->GetTransform(p,a,b)
485 #define IWineD3DDevice_SetVertexDeclaration(p,a)                (p)->lpVtbl->SetVertexDeclaration(p,a)
486 #define IWineD3DDevice_GetVertexDeclaration(p,a)                (p)->lpVtbl->GetVertexDeclaration(p,a)
487 #define IWineD3DDevice_SetVertexShader(p,a)                     (p)->lpVtbl->SetVertexShader(p,a)
488 #define IWineD3DDevice_GetVertexShader(p,a)                     (p)->lpVtbl->GetVertexShader(p,a)
489 #define IWineD3DDevice_SetVertexShaderConstantB(p,a,b,c)        (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
490 #define IWineD3DDevice_GetVertexShaderConstantB(p,a,b,c)        (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
491 #define IWineD3DDevice_SetVertexShaderConstantI(p,a,b,c)        (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
492 #define IWineD3DDevice_GetVertexShaderConstantI(p,a,b,c)        (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
493 #define IWineD3DDevice_SetVertexShaderConstantF(p,a,b,c)        (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
494 #define IWineD3DDevice_GetVertexShaderConstantF(p,a,b,c)        (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
495 #define IWineD3DDevice_SetViewport(p,a)                         (p)->lpVtbl->SetViewport(p,a)
496 #define IWineD3DDevice_GetViewport(p,a)                         (p)->lpVtbl->GetViewport(p,a)
497 #define IWineD3DDevice_MultiplyTransform(p,a,b)                 (p)->lpVtbl->MultiplyTransform(p,a,b)
498 #define IWineD3DDevice_ValidateDevice(p,a)                      (p)->lpVtbl->ValidateDevice(p,a)
499 #define IWineD3DDevice_ProcessVertices(p,a,b,c,d,e,f)           (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
500 #define IWineD3DDevice_BeginStateBlock(p)                       (p)->lpVtbl->BeginStateBlock(p)
501 #define IWineD3DDevice_EndStateBlock(p,a)                       (p)->lpVtbl->EndStateBlock(p,a)
502 #define IWineD3DDevice_BeginScene(p)                            (p)->lpVtbl->BeginScene(p)
503 #define IWineD3DDevice_EndScene(p)                              (p)->lpVtbl->EndScene(p)
504 #define IWineD3DDevice_Present(p,a,b,c,d)                       (p)->lpVtbl->Present(p,a,b,c,d)
505 #define IWineD3DDevice_Clear(p,a,b,c,d,e,f)                     (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
506 #define IWineD3DDevice_DrawPrimitive(p,a,b,c)                   (p)->lpVtbl->DrawPrimitive(p,a,b,c)
507 #define IWineD3DDevice_DrawIndexedPrimitive(p,a,b,c,d,e,f)      (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
508 #define IWineD3DDevice_DrawPrimitiveUP(p,a,b,c,d)               (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
509 #define IWineD3DDevice_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
510 #define IWineD3DDevice_DrawRectPatch(p,a,b,c)                   (p)->lpVtbl->DrawRectPatch(p,a,b,c)
511 #define IWineD3DDevice_DrawTriPatch(p,a,b,c)                    (p)->lpVtbl->DrawTriPatch(p,a,b,c)
512 #define IWineD3DDevice_DeletePatch(p,a)                         (p)->lpVtbl->DeletePatch(p,a)
513 #define IWineD3DDevice_ColorFill(p,a,b,c)                       (p)->lpVtbl->ColorFill(p,a,b,c)
514 #define IWineD3DDevice_UpdateTexture(p,a,b)                     (p)->lpVtbl->UpdateTexture(p,a,b)
515 #define IWineD3DDevice_UpdateSurface(p,a,b,c,d)                 (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
516 #define IWineD3DDevice_StretchRect(p,a,b,c,d,e)                 (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
517 #define IWineD3DDevice_GetRenderTargetData(p,a,b)               (p)->lpVtbl->GetRenderTargetData(p,a,b)
518 #define IWineD3DDevice_GetFrontBufferData(p,a,b)                (p)->lpVtbl->GetFrontBufferData(p,a,b)
519 #define IWineD3DDevice_SetupTextureStates(p,a,b)                (p)->lpVtbl->SetupTextureStates(p,a,b)
520 #define IWineD3DDevice_SwapChainReleased(p,a)                   (p)->lpVtbl->SwapChainReleased(p,a)
521 #define IWineD3DDevice_ResourceReleased(p,a)                    (p)->lpVtbl->ResourceReleased(p,a)
522 #endif
523
524 /*****************************************************************************
525  * WineD3DResource interface 
526  */
527 #define INTERFACE IWineD3DResource
528 DECLARE_INTERFACE_(IWineD3DResource,IUnknown)
529 {
530     /*** IUnknown methods ***/
531     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
532     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
533     STDMETHOD_(ULONG,Release)(THIS) PURE;
534     /*** IWineD3DResource methods ***/
535     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
536     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
537     STDMETHOD(SetPrivateData)(THIS_ REFGUID  refguid, CONST void * pData, DWORD  SizeOfData, DWORD  Flags) PURE;
538     STDMETHOD(GetPrivateData)(THIS_ REFGUID  refguid, void * pData, DWORD * pSizeOfData) PURE;
539     STDMETHOD(FreePrivateData)(THIS_ REFGUID  refguid) PURE;
540     STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD  PriorityNew) PURE;
541     STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
542     STDMETHOD_(void,PreLoad)(THIS) PURE;
543     STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
544 };
545 #undef INTERFACE
546
547 #if !defined(__cplusplus) || defined(CINTERFACE)
548 /*** IUnknown methods ***/
549 #define IWineD3DResource_QueryInterface(p,a,b)        (p)->lpVtbl->QueryInterface(p,a,b)
550 #define IWineD3DResource_AddRef(p)                    (p)->lpVtbl->AddRef(p)
551 #define IWineD3DResource_Release(p)                   (p)->lpVtbl->Release(p)
552 /*** IWineD3DResource methods ***/
553 #define IWineD3DResource_GetParent(p,a)               (p)->lpVtbl->GetParent(p,a)
554 #define IWineD3DResource_GetDevice(p,a)               (p)->lpVtbl->GetDevice(p,a)
555 #define IWineD3DResource_SetPrivateData(p,a,b,c,d)    (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
556 #define IWineD3DResource_GetPrivateData(p,a,b,c)      (p)->lpVtbl->GetPrivateData(p,a,b,c)
557 #define IWineD3DResource_FreePrivateData(p,a)         (p)->lpVtbl->FreePrivateData(p,a)
558 #define IWineD3DResource_SetPriority(p,a)             (p)->lpVtbl->SetPriority(p,a)
559 #define IWineD3DResource_GetPriority(p)               (p)->lpVtbl->GetPriority(p)
560 #define IWineD3DResource_PreLoad(p)                   (p)->lpVtbl->PreLoad(p)
561 #define IWineD3DResource_GetType(p)                   (p)->lpVtbl->GetType(p)
562 #endif
563
564 /*****************************************************************************
565  * WineD3DVertexBuffer interface 
566  */
567 #define INTERFACE IWineD3DVertexBuffer
568 DECLARE_INTERFACE_(IWineD3DVertexBuffer,IWineD3DResource)
569 {
570     /*** IUnknown methods ***/
571     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
572     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
573     STDMETHOD_(ULONG,Release)(THIS) PURE;
574     /*** IWineD3DResource methods ***/
575     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
576     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
577     STDMETHOD(SetPrivateData)(THIS_ REFGUID  refguid, CONST void * pData, DWORD  SizeOfData, DWORD  Flags) PURE;
578     STDMETHOD(GetPrivateData)(THIS_ REFGUID  refguid, void * pData, DWORD * pSizeOfData) PURE;
579     STDMETHOD(FreePrivateData)(THIS_ REFGUID  refguid) PURE;
580     STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD  PriorityNew) PURE;
581     STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
582     STDMETHOD_(void,PreLoad)(THIS) PURE;
583     STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
584     /*** IWineD3DVertexBuffer methods ***/
585     STDMETHOD(Lock)(THIS_ UINT  OffsetToLock, UINT  SizeToLock, BYTE ** ppbData, DWORD  Flags) PURE;
586     STDMETHOD(Unlock)(THIS) PURE;
587     STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC  * pDesc) PURE;
588 };
589 #undef INTERFACE
590
591 #if !defined(__cplusplus) || defined(CINTERFACE)
592 /*** IUnknown methods ***/
593 #define IWineD3DVertexBuffer_QueryInterface(p,a,b)        (p)->lpVtbl->QueryInterface(p,a,b)
594 #define IWineD3DVertexBuffer_AddRef(p)                    (p)->lpVtbl->AddRef(p)
595 #define IWineD3DVertexBuffer_Release(p)                   (p)->lpVtbl->Release(p)
596 /*** IWineD3DResource methods ***/
597 #define IWineD3DVertexBuffer_GetParent(p,a)               (p)->lpVtbl->GetParent(p,a)
598 #define IWineD3DVertexBuffer_GetDevice(p,a)               (p)->lpVtbl->GetDevice(p,a)
599 #define IWineD3DVertexBuffer_SetPrivateData(p,a,b,c,d)    (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
600 #define IWineD3DVertexBuffer_GetPrivateData(p,a,b,c)      (p)->lpVtbl->GetPrivateData(p,a,b,c)
601 #define IWineD3DVertexBuffer_FreePrivateData(p,a)         (p)->lpVtbl->FreePrivateData(p,a)
602 #define IWineD3DVertexBuffer_SetPriority(p,a)             (p)->lpVtbl->SetPriority(p,a)
603 #define IWineD3DVertexBuffer_GetPriority(p)               (p)->lpVtbl->GetPriority(p)
604 #define IWineD3DVertexBuffer_PreLoad(p)                   (p)->lpVtbl->PreLoad(p)
605 #define IWineD3DVertexBuffer_GetType(p)                   (p)->lpVtbl->GetType(p)
606 /*** IWineD3DVertexBuffer methods ***/
607 #define IWineD3DVertexBuffer_Lock(p,a,b,c,d)              (p)->lpVtbl->Lock(p,a,b,c,d)
608 #define IWineD3DVertexBuffer_Unlock(p)                    (p)->lpVtbl->Unlock(p)
609 #define IWineD3DVertexBuffer_GetDesc(p,a)                 (p)->lpVtbl->GetDesc(p,a)
610 #endif
611
612 /*****************************************************************************
613  * WineD3DIndexBuffer interface 
614  */
615 #define INTERFACE IWineD3DIndexBuffer
616 DECLARE_INTERFACE_(IWineD3DIndexBuffer,IWineD3DResource)
617 {
618     /*** IUnknown methods ***/
619     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
620     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
621     STDMETHOD_(ULONG,Release)(THIS) PURE;
622     /*** IWineD3DResource methods ***/
623     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
624     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
625     STDMETHOD(SetPrivateData)(THIS_ REFGUID  refguid, CONST void * pData, DWORD  SizeOfData, DWORD  Flags) PURE;
626     STDMETHOD(GetPrivateData)(THIS_ REFGUID  refguid, void * pData, DWORD * pSizeOfData) PURE;
627     STDMETHOD(FreePrivateData)(THIS_ REFGUID  refguid) PURE;
628     STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD  PriorityNew) PURE;
629     STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
630     STDMETHOD_(void,PreLoad)(THIS) PURE;
631     STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
632     /*** IWineD3DIndexBuffer methods ***/
633     STDMETHOD(Lock)(THIS_ UINT  OffsetToLock, UINT  SizeToLock, BYTE ** ppbData, DWORD  Flags) PURE;
634     STDMETHOD(Unlock)(THIS) PURE;
635     STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC  * pDesc) PURE;
636 };
637 #undef INTERFACE
638
639 #if !defined(__cplusplus) || defined(CINTERFACE)
640 /*** IUnknown methods ***/
641 #define IWineD3DIndexBuffer_QueryInterface(p,a,b)        (p)->lpVtbl->QueryInterface(p,a,b)
642 #define IWineD3DIndexBuffer_AddRef(p)                    (p)->lpVtbl->AddRef(p)
643 #define IWineD3DIndexBuffer_Release(p)                   (p)->lpVtbl->Release(p)
644 /*** IWineD3DResource methods ***/
645 #define IWineD3DIndexBuffer_GetParent(p,a)               (p)->lpVtbl->GetParent(p,a)
646 #define IWineD3DIndexBuffer_GetDevice(p,a)               (p)->lpVtbl->GetDevice(p,a)
647 #define IWineD3DIndexBuffer_SetPrivateData(p,a,b,c,d)    (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
648 #define IWineD3DIndexBuffer_GetPrivateData(p,a,b,c)      (p)->lpVtbl->GetPrivateData(p,a,b,c)
649 #define IWineD3DIndexBuffer_FreePrivateData(p,a)         (p)->lpVtbl->FreePrivateData(p,a)
650 #define IWineD3DIndexBuffer_SetPriority(p,a)             (p)->lpVtbl->SetPriority(p,a)
651 #define IWineD3DIndexBuffer_GetPriority(p)               (p)->lpVtbl->GetPriority(p)
652 #define IWineD3DIndexBuffer_PreLoad(p)                   (p)->lpVtbl->PreLoad(p)
653 #define IWineD3DIndexBuffer_GetType(p)                   (p)->lpVtbl->GetType(p)
654 /*** IWineD3DIndexBuffer methods ***/
655 #define IWineD3DIndexBuffer_Lock(p,a,b,c,d)              (p)->lpVtbl->Lock(p,a,b,c,d)
656 #define IWineD3DIndexBuffer_Unlock(p)                    (p)->lpVtbl->Unlock(p)
657 #define IWineD3DIndexBuffer_GetDesc(p,a)                 (p)->lpVtbl->GetDesc(p,a)
658 #endif
659
660 /*****************************************************************************
661  * IWineD3DBaseTexture interface
662  *   Note at d3d8 this does NOT extend Resource, but at d3d9 it does
663  *     since most functions are common anyway, it makes sense to extend it
664  */
665 #define INTERFACE IWineD3DBaseTexture
666 DECLARE_INTERFACE_(IWineD3DBaseTexture,IWineD3DResource)
667 {
668     /*** IUnknown methods ***/
669     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
670     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
671     STDMETHOD_(ULONG,Release)(THIS) PURE;
672     /*** IWineD3DResource methods ***/
673     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
674     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
675     STDMETHOD(SetPrivateData)(THIS_ REFGUID  refguid, CONST void * pData, DWORD  SizeOfData, DWORD  Flags) PURE;
676     STDMETHOD(GetPrivateData)(THIS_ REFGUID  refguid, void * pData, DWORD * pSizeOfData) PURE;
677     STDMETHOD(FreePrivateData)(THIS_ REFGUID  refguid) PURE;
678     STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD  PriorityNew) PURE;
679     STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
680     STDMETHOD_(void,PreLoad)(THIS) PURE;
681     STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
682     /*** IWineD3DBaseTexture methods ***/
683     STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
684     STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
685     STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
686     STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
687     STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
688     STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
689     STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
690     STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
691     STDMETHOD(BindTexture)(THIS) PURE;
692     STDMETHOD(UnBindTexture)(THIS) PURE;
693     STDMETHOD_(UINT, GetTextureDimensions)(THIS) PURE;
694     STDMETHOD_(void, ApplyStateChanges)(THIS_ const DWORD textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1]) PURE;
695
696 };
697 #undef INTERFACE
698
699 #if !defined(__cplusplus) || defined(CINTERFACE)
700 /*** IUnknown methods ***/
701 #define IWineD3DBaseTexture_QueryInterface(p,a,b)      (p)->lpVtbl->QueryInterface(p,a,b)
702 #define IWineD3DBaseTexture_AddRef(p)                  (p)->lpVtbl->AddRef(p)
703 #define IWineD3DBaseTexture_Release(p)                 (p)->lpVtbl->Release(p)
704 /*** IWineD3DBaseTexture methods: IWineD3DResource ***/
705 #define IWineD3DBaseTexture_GetParent(p,a)             (p)->lpVtbl->GetParent(p,a)
706 #define IWineD3DBaseTexture_GetDevice(p,a)             (p)->lpVtbl->GetDevice(p,a)
707 #define IWineD3DBaseTexture_SetPrivateData(p,a,b,c,d)  (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
708 #define IWineD3DBaseTexture_GetPrivateData(p,a,b,c)    (p)->lpVtbl->GetPrivateData(p,a,b,c)
709 #define IWineD3DBaseTexture_FreePrivateData(p,a)       (p)->lpVtbl->FreePrivateData(p,a)
710 #define IWineD3DBaseTexture_SetPriority(p,a)           (p)->lpVtbl->SetPriority(p,a)
711 #define IWineD3DBaseTexture_GetPriority(p)             (p)->lpVtbl->GetPriority(p)
712 #define IWineD3DBaseTexture_PreLoad(p)                 (p)->lpVtbl->PreLoad(p)
713 #define IWineD3DBaseTexture_GetType(p)                 (p)->lpVtbl->GetType(p)
714 /*** IWineD3DBaseTexture methods ***/
715 #define IWineD3DBaseTexture_SetLOD(p,a)                (p)->lpVtbl->SetLOD(p,a)
716 #define IWineD3DBaseTexture_GetLOD(p)                  (p)->lpVtbl->GetLOD(p)
717 #define IWineD3DBaseTexture_GetLevelCount(p)           (p)->lpVtbl->GetLevelCount(p)
718 #define IWineD3DBaseTexture_SetAutoGenFilterType(p,a)  (p)->lpVtbl->SetAutoGenFilterType(p,a)
719 #define IWineD3DBaseTexture_GetAutoGenFilterType(p)    (p)->lpVtbl->GetAutoGenFilterType(p)
720 #define IWineD3DBaseTexture_GenerateMipSubLevels(p)    (p)->lpVtbl->GenerateMipSubLevels(p)
721 #define IWineD3DBaseTexture_SetDirty(p,a)              (p)->lpVtbl->SetDirty(p,a)
722 #define IWineD3DBaseTexture_GetDirty(p)                (p)->lpVtbl->GetDirty(p)
723 /*** internal methods ***/
724 #define IWineD3DBaseTexture_BindTexture(p)             (p)->lpVtbl->BindTexture(p)
725 #define IWineD3DBaseTexture_UnBindTexture(p)           (p)->lpVtbl->UnBindTexture(p)
726 #define IWineD3DBaseTexture_GetTextureDimensions(p)    (p)->lpVtbl->GetTextureDimensions(p)
727 #define IWineD3DBaseTexture_ApplyStateChanges(p,a,b)   (p)->lpVtbl->ApplyStateChanges(p,a,b)
728 #endif
729
730 /*****************************************************************************
731  * IWineD3DTexture interface
732  */
733 #define INTERFACE IWineD3DTexture
734 DECLARE_INTERFACE_(IWineD3DTexture,IWineD3DBaseTexture)
735 {
736     /*** IUnknown methods ***/
737     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
738     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
739     STDMETHOD_(ULONG,Release)(THIS) PURE;
740     /*** IWineD3DResource methods ***/
741     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
742     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
743     STDMETHOD(SetPrivateData)(THIS_ REFGUID  refguid, CONST void * pData, DWORD  SizeOfData, DWORD  Flags) PURE;
744     STDMETHOD(GetPrivateData)(THIS_ REFGUID  refguid, void * pData, DWORD * pSizeOfData) PURE;
745     STDMETHOD(FreePrivateData)(THIS_ REFGUID  refguid) PURE;
746     STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD  PriorityNew) PURE;
747     STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
748     STDMETHOD_(void,PreLoad)(THIS) PURE;
749     STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
750     /*** IWineD3DBaseTexture methods ***/
751     STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
752     STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
753     STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
754     STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
755     STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
756     STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
757     STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
758     STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
759     STDMETHOD(BindTexture)(THIS) PURE;
760     STDMETHOD(UnBindTexture)(THIS) PURE;
761     STDMETHOD_(UINT, GetTextureDimensions)(THIS) PURE;
762     STDMETHOD_(void, ApplyStateChanges)(THIS_ const DWORD textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1]) PURE;
763     /*** IWineD3DTexture methods ***/
764     STDMETHOD(GetLevelDesc)(THIS_ UINT Level, WINED3DSURFACE_DESC* pDesc) PURE;
765     STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level, struct IWineD3DSurface** ppSurfaceLevel) PURE;
766     STDMETHOD(LockRect)(THIS_ UINT Level, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE;
767     STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE;
768     STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pDirtyRect) PURE;
769 };
770 #undef INTERFACE
771
772 #if !defined(__cplusplus) || defined(CINTERFACE)
773 /*** IUnknown methods ***/
774 #define IWineD3DTexture_QueryInterface(p,a,b)      (p)->lpVtbl->QueryInterface(p,a,b)
775 #define IWineD3DTexture_AddRef(p)                  (p)->lpVtbl->AddRef(p)
776 #define IWineD3DTexture_Release(p)                 (p)->lpVtbl->Release(p)
777 /*** IWineD3DTexture methods: IWineD3DResource ***/
778 #define IWineD3DTexture_GetParent(p,a)             (p)->lpVtbl->GetParent(p,a)
779 #define IWineD3DTexture_GetDevice(p,a)             (p)->lpVtbl->GetDevice(p,a)
780 #define IWineD3DTexture_SetPrivateData(p,a,b,c,d)  (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
781 #define IWineD3DTexture_GetPrivateData(p,a,b,c)    (p)->lpVtbl->GetPrivateData(p,a,b,c)
782 #define IWineD3DTexture_FreePrivateData(p,a)       (p)->lpVtbl->FreePrivateData(p,a)
783 #define IWineD3DTexture_SetPriority(p,a)           (p)->lpVtbl->SetPriority(p,a)
784 #define IWineD3DTexture_GetPriority(p)             (p)->lpVtbl->GetPriority(p)
785 #define IWineD3DTexture_PreLoad(p)                 (p)->lpVtbl->PreLoad(p)
786 #define IWineD3DTexture_GetType(p)                 (p)->lpVtbl->GetType(p)
787 /*** IWineD3DTexture methods: IWineD3DBaseTexture ***/
788 #define IWineD3DTexture_SetLOD(p,a)                (p)->lpVtbl->SetLOD(p,a)
789 #define IWineD3DTexture_GetLOD(p)                  (p)->lpVtbl->GetLOD(p)
790 #define IWineD3DTexture_GetLevelCount(p)           (p)->lpVtbl->GetLevelCount(p)
791 #define IWineD3DTexture_SetAutoGenFilterType(p,a)  (p)->lpVtbl->SetAutoGenFilterType(p,a)
792 #define IWineD3DTexture_GetAutoGenFilterType(p)    (p)->lpVtbl->GetAutoGenFilterType(p)
793 #define IWineD3DTexture_GenerateMipSubLevels(p)    (p)->lpVtbl->GenerateMipSubLevels(p)
794 #define IWineD3DTexture_SetDirty(p,a)              (p)->lpVtbl->SetDirty(p,a)
795 #define IWineD3DTexture_GetDirty(p)                (p)->lpVtbl->GetDirty(p)
796 #define IWineD3DTexture_BindTexture(p)             (p)->lpVtbl->BindTexture(p)
797 #define IWineD3DTexture_UnBindTexture(p)           (p)->lpVtbl->UnBindTexture(p)
798 #define IWineD3DTexture_GetTextureDimensions(p)    (p)->lpVtbl->GetTextureDimensions(p)
799 #define IWineD3DTexture_ApplyStateChanges(p,a,b)   (p)->lpVtbl->ApplyStateChanges(p,a,b)
800 /*** IWineD3DTexture methods ***/
801 #define IWineD3DTexture_GetLevelDesc(p,a,b)        (p)->lpVtbl->GetLevelDesc(p,a,b)
802 #define IWineD3DTexture_GetSurfaceLevel(p,a,b)     (p)->lpVtbl->GetSurfaceLevel(p,a,b)
803 #define IWineD3DTexture_LockRect(p,a,b,c,d)        (p)->lpVtbl->LockRect(p,a,b,c,d)
804 #define IWineD3DTexture_UnlockRect(p,a)            (p)->lpVtbl->UnlockRect(p,a)
805 #define IWineD3DTexture_AddDirtyRect(p,a)          (p)->lpVtbl->AddDirtyRect(p,a)
806 #endif
807
808 /*****************************************************************************
809  * IWineD3DCubeTexture interface
810  */
811 #define INTERFACE IWineD3DCubeTexture
812 DECLARE_INTERFACE_(IWineD3DCubeTexture,IWineD3DBaseTexture)
813 {
814     /*** IUnknown methods ***/
815     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
816     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
817     STDMETHOD_(ULONG,Release)(THIS) PURE;
818     /*** IWineD3DResource methods ***/
819     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
820     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
821     STDMETHOD(SetPrivateData)(THIS_ REFGUID  refguid, CONST void * pData, DWORD  SizeOfData, DWORD  Flags) PURE;
822     STDMETHOD(GetPrivateData)(THIS_ REFGUID  refguid, void * pData, DWORD * pSizeOfData) PURE;
823     STDMETHOD(FreePrivateData)(THIS_ REFGUID  refguid) PURE;
824     STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD  PriorityNew) PURE;
825     STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
826     STDMETHOD_(void,PreLoad)(THIS) PURE;
827     STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
828     /*** IWineD3DBaseTexture methods ***/
829     STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
830     STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
831     STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
832     STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
833     STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
834     STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
835     STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
836     STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
837     STDMETHOD(BindTexture)(THIS) PURE;
838     STDMETHOD(UnBindTexture)(THIS) PURE;
839     STDMETHOD_(UINT, GetTextureDimensions)(THIS) PURE;
840     STDMETHOD_(void, ApplyStateChanges)(THIS_ DWORD const textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1]) PURE;
841     /*** IWineD3DCubeTexture methods ***/
842     STDMETHOD(GetLevelDesc)(THIS_ UINT Level,WINED3DSURFACE_DESC* pDesc) PURE;
843     STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level, struct IWineD3DSurface** ppCubeMapSurface) PURE;
844     STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE;
845     STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level) PURE;
846     STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType, CONST RECT* pDirtyRect) PURE;
847 };
848 #undef INTERFACE
849
850 #if !defined(__cplusplus) || defined(CINTERFACE)
851 /*** IUnknown methods ***/
852 #define IWineD3DCubeTexture_QueryInterface(p,a,b)      (p)->lpVtbl->QueryInterface(p,a,b)
853 #define IWineD3DCubeTexture_AddRef(p)                  (p)->lpVtbl->AddRef(p)
854 #define IWineD3DCubeTexture_Release(p)                 (p)->lpVtbl->Release(p)
855 /*** IWineD3DCubeTexture methods: IWineD3DResource ***/
856 #define IWineD3DCubeTexture_GetParent(p,a)             (p)->lpVtbl->GetParent(p,a)
857 #define IWineD3DCubeTexture_GetDevice(p,a)             (p)->lpVtbl->GetDevice(p,a)
858 #define IWineD3DCubeTexture_SetPrivateData(p,a,b,c,d)  (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
859 #define IWineD3DCubeTexture_GetPrivateData(p,a,b,c)    (p)->lpVtbl->GetPrivateData(p,a,b,c)
860 #define IWineD3DCubeTexture_FreePrivateData(p,a)       (p)->lpVtbl->FreePrivateData(p,a)
861 #define IWineD3DCubeTexture_SetPriority(p,a)           (p)->lpVtbl->SetPriority(p,a)
862 #define IWineD3DCubeTexture_GetPriority(p)             (p)->lpVtbl->GetPriority(p)
863 #define IWineD3DCubeTexture_PreLoad(p)                 (p)->lpVtbl->PreLoad(p)
864 #define IWineD3DCubeTexture_GetType(p)                 (p)->lpVtbl->GetType(p)
865 /*** IWineD3DCubeTexture methods: IWineD3DBaseTexture ***/
866 #define IWineD3DCubeTexture_SetLOD(p,a)                (p)->lpVtbl->SetLOD(p,a)
867 #define IWineD3DCubeTexture_GetLOD(p)                  (p)->lpVtbl->GetLOD(p)
868 #define IWineD3DCubeTexture_GetLevelCount(p)           (p)->lpVtbl->GetLevelCount(p)
869 #define IWineD3DCubeTexture_SetAutoGenFilterType(p,a)  (p)->lpVtbl->SetAutoGenFilterType(p,a)
870 #define IWineD3DCubeTexture_GetAutoGenFilterType(p)    (p)->lpVtbl->GetAutoGenFilterType(p)
871 #define IWineD3DCubeTexture_GenerateMipSubLevels(p)    (p)->lpVtbl->GenerateMipSubLevels(p)
872 #define IWineD3DCubeTexture_SetDirty(p,a)              (p)->lpVtbl->SetDirty(p,a)
873 #define IWineD3DCubeTexture_GetDirty(p)                (p)->lpVtbl->GetDirty(p)
874 #define IWineD3DCubeTexture_BindTexture(p)              (p)->lpVtbl->BindTexture(p)
875 #define IWineD3DCubeTexture_UnBindTexture(p)            (p)->lpVtbl->UnBindTexture(p)
876 #define IWineD3DCubeTexture_GetTextureDimensions(p)     (p)->lpVtbl->GetTextureDimensions(p)
877 #define IWineD3DCubeTexture_ApplyStateChanges(p,a,b)   (p)->lpVtbl->ApplyStateChanges(p,a,b)
878 /*** IWineD3DCubeTexture methods ***/
879 #define IWineD3DCubeTexture_GetLevelDesc(p,a,b)        (p)->lpVtbl->GetLevelDesc(p,a,b)
880 #define IWineD3DCubeTexture_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
881 #define IWineD3DCubeTexture_LockRect(p,a,b,c,d,e)      (p)->lpVtbl->LockRect(p,a,b,c,d,e)
882 #define IWineD3DCubeTexture_UnlockRect(p,a,b)          (p)->lpVtbl->UnlockRect(p,a,b)
883 #define IWineD3DCubeTexture_AddDirtyRect(p,a,b)        (p)->lpVtbl->AddDirtyRect(p,a,b)
884 #endif
885
886
887 /*****************************************************************************
888  * IWineD3DVolumeTexture interface
889  */
890 #define INTERFACE IWineD3DVolumeTexture
891 DECLARE_INTERFACE_(IWineD3DVolumeTexture,IWineD3DBaseTexture)
892 {
893     /*** IUnknown methods ***/
894     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
895     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
896     STDMETHOD_(ULONG,Release)(THIS) PURE;
897     /*** IWineD3DResource methods ***/
898     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
899     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
900     STDMETHOD(SetPrivateData)(THIS_ REFGUID  refguid, CONST void * pData, DWORD  SizeOfData, DWORD  Flags) PURE;
901     STDMETHOD(GetPrivateData)(THIS_ REFGUID  refguid, void * pData, DWORD * pSizeOfData) PURE;
902     STDMETHOD(FreePrivateData)(THIS_ REFGUID  refguid) PURE;
903     STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD  PriorityNew) PURE;
904     STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
905     STDMETHOD_(void,PreLoad)(THIS) PURE;
906     STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
907     /*** IWineD3DBaseTexture methods ***/
908     STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
909     STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
910     STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
911     STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
912     STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
913     STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
914     STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
915     STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
916     STDMETHOD(BindTexture)(THIS) PURE;
917     STDMETHOD(UnBindTexture)(THIS) PURE;
918     STDMETHOD_(UINT, GetTextureDimensions)(THIS) PURE;
919     STDMETHOD_(void, ApplyStateChanges)(THIS_ const DWORD textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1]) PURE;
920     /*** IWineD3DVolumeTexture methods ***/
921     STDMETHOD(GetLevelDesc)(THIS_ UINT Level, WINED3DVOLUME_DESC *pDesc) PURE;
922     STDMETHOD(GetVolumeLevel)(THIS_ UINT Level, struct IWineD3DVolume** ppVolumeLevel) PURE;
923     STDMETHOD(LockBox)(THIS_ UINT Level, D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) PURE;
924     STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE;
925     STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX* pDirtyBox) PURE;
926 };
927 #undef INTERFACE
928
929 #if !defined(__cplusplus) || defined(CINTERFACE)
930 /*** IUnknown methods ***/
931 #define IWineD3DVolumeTexture_QueryInterface(p,a,b)      (p)->lpVtbl->QueryInterface(p,a,b)
932 #define IWineD3DVolumeTexture_AddRef(p)                  (p)->lpVtbl->AddRef(p)
933 #define IWineD3DVolumeTexture_Release(p)                 (p)->lpVtbl->Release(p)
934 /*** IWineD3DVolumeTexture methods: IWineD3DResource ***/
935 #define IWineD3DVolumeTexture_GetParent(p,a)             (p)->lpVtbl->GetParent(p,a)
936 #define IWineD3DVolumeTexture_GetDevice(p,a)             (p)->lpVtbl->GetDevice(p,a)
937 #define IWineD3DVolumeTexture_SetPrivateData(p,a,b,c,d)  (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
938 #define IWineD3DVolumeTexture_GetPrivateData(p,a,b,c)    (p)->lpVtbl->GetPrivateData(p,a,b,c)
939 #define IWineD3DVolumeTexture_FreePrivateData(p,a)       (p)->lpVtbl->FreePrivateData(p,a)
940 #define IWineD3DVolumeTexture_SetPriority(p,a)           (p)->lpVtbl->SetPriority(p,a)
941 #define IWineD3DVolumeTexture_GetPriority(p)             (p)->lpVtbl->GetPriority(p)
942 #define IWineD3DVolumeTexture_PreLoad(p)                 (p)->lpVtbl->PreLoad(p)
943 #define IWineD3DVolumeTexture_GetType(p)                 (p)->lpVtbl->GetType(p)
944 /*** IWineD3DVolumeTexture methods: IWineD3DBaseTexture ***/
945 #define IWineD3DVolumeTexture_SetLOD(p,a)                (p)->lpVtbl->SetLOD(p,a)
946 #define IWineD3DVolumeTexture_GetLOD(p)                  (p)->lpVtbl->GetLOD(p)
947 #define IWineD3DVolumeTexture_GetLevelCount(p)           (p)->lpVtbl->GetLevelCount(p)
948 #define IWineD3DVolumeTexture_SetAutoGenFilterType(p,a)  (p)->lpVtbl->SetAutoGenFilterType(p,a)
949 #define IWineD3DVolumeTexture_GetAutoGenFilterType(p)    (p)->lpVtbl->GetAutoGenFilterType(p)
950 #define IWineD3DVolumeTexture_GenerateMipSubLevels(p)    (p)->lpVtbl->GenerateMipSubLevels(p)
951 #define IWineD3DVolumeTexture_SetDirty(p,a)              (p)->lpVtbl->SetDirty(p,a)
952 #define IWineD3DVolumeTexture_GetDirty(p)                (p)->lpVtbl->GetDirty(p)
953 #define IWineD3DVolumeTexture_BindTexture(p)              (p)->lpVtbl->BindTexture(p)
954 #define IWineD3DVolumeTexture_UnBindTexture(p)            (p)->lpVtbl->UnBindTexture(p)
955 #define IWineD3DVolumeTexture_GetTextureDimensions(p)     (p)->lpVtbl->GetTextureDimensions(p)
956 #define IWineD3DVolumeTexture_ApplyStateChanges(p,a,b)   (p)->lpVtbl->ApplyStateChanges(p,a,b)
957 /*** IWineD3DVolumeTexture methods ***/
958 #define IWineD3DVolumeTexture_GetLevelDesc(p,a,b)        (p)->lpVtbl->GetLevelDesc(p,a,b)
959 #define IWineD3DVolumeTexture_GetVolumeLevel(p,a,b)      (p)->lpVtbl->GetVolumeLevel(p,a,b)
960 #define IWineD3DVolumeTexture_LockBox(p,a,b,c,d)         (p)->lpVtbl->LockBox(p,a,b,c,d)
961 #define IWineD3DVolumeTexture_UnlockBox(p,a)             (p)->lpVtbl->UnlockBox(p,a)
962 #define IWineD3DVolumeTexture_AddDirtyBox(p,a)           (p)->lpVtbl->AddDirtyBox(p,a)
963 #endif
964
965 /*****************************************************************************
966  * IWineD3DSurface interface
967  */
968 #define INTERFACE IWineD3DSurface
969 DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
970 {
971     /*** IUnknown methods ***/
972     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
973     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
974     STDMETHOD_(ULONG,Release)(THIS) PURE;
975     /*** IWineD3DResource methods ***/
976     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
977     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
978     STDMETHOD(SetPrivateData)(THIS_ REFGUID  refguid, CONST void * pData, DWORD  SizeOfData, DWORD  Flags) PURE;
979     STDMETHOD(GetPrivateData)(THIS_ REFGUID  refguid, void * pData, DWORD * pSizeOfData) PURE;
980     STDMETHOD(FreePrivateData)(THIS_ REFGUID  refguid) PURE;
981     STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD  PriorityNew) PURE;
982     STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
983     STDMETHOD_(void,PreLoad)(THIS) PURE;
984     STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
985     /*** IWineD3DSurface methods ***/
986     STDMETHOD(GetContainer)(THIS_ REFIID  riid, void ** ppContainer) PURE;
987     STDMETHOD(GetDesc)(THIS_ WINED3DSURFACE_DESC * pDesc) PURE;
988     STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT * pLockedRect, CONST RECT * pRect,DWORD  Flags) PURE;
989     STDMETHOD(UnlockRect)(THIS) PURE;
990     STDMETHOD(GetDC)(THIS_ HDC *pHdc) PURE;
991     STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE;
992     /* Internally used methods */
993     STDMETHOD(CleanDirtyRect)(THIS) PURE;
994     STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pRect) PURE;
995     STDMETHOD(LoadTexture)(THIS) PURE;
996     STDMETHOD(SaveSnapshot)(THIS_ const char *filename) PURE;
997     STDMETHOD(SetContainer)(THIS_ IUnknown *container) PURE;
998     STDMETHOD(SetPBufferState)(THIS_ BOOL inPBuffer, BOOL  inTexture) PURE;
999     STDMETHOD_(void,SetGlTextureDesc)(THIS_ UINT textureName, int target) PURE;
1000     STDMETHOD_(void,GetGlDesc)(THIS_ glDescriptor **glDescription) PURE;
1001     STDMETHOD_(CONST void *, GetData)(THIS) PURE;
1002
1003 };
1004 #undef INTERFACE
1005
1006 #if !defined(__cplusplus) || defined(CINTERFACE)
1007 /*** IUnknown methods ***/
1008 #define IWineD3DSurface_QueryInterface(p,a,b)        (p)->lpVtbl->QueryInterface(p,a,b)
1009 #define IWineD3DSurface_AddRef(p)                    (p)->lpVtbl->AddRef(p)
1010 #define IWineD3DSurface_Release(p)                   (p)->lpVtbl->Release(p)
1011 /*** IWineD3DResource methods ***/
1012 #define IWineD3DSurface_GetParent(p,a)               (p)->lpVtbl->GetParent(p,a)
1013 #define IWineD3DSurface_GetDevice(p,a)               (p)->lpVtbl->GetDevice(p,a)
1014 #define IWineD3DSurface_SetPrivateData(p,a,b,c,d)    (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1015 #define IWineD3DSurface_GetPrivateData(p,a,b,c)      (p)->lpVtbl->GetPrivateData(p,a,b,c)
1016 #define IWineD3DSurface_FreePrivateData(p,a)         (p)->lpVtbl->FreePrivateData(p,a)
1017 #define IWineD3DSurface_SetPriority(p,a)             (p)->lpVtbl->SetPriority(p,a)
1018 #define IWineD3DSurface_GetPriority(p)               (p)->lpVtbl->GetPriority(p)
1019 #define IWineD3DSurface_PreLoad(p)                   (p)->lpVtbl->PreLoad(p)
1020 #define IWineD3DSurface_GetType(p)                   (p)->lpVtbl->GetType(p)
1021 /*** IWineD3DSurface methods ***/
1022 #define IWineD3DSurface_GetContainer(p,a,b)          (p)->lpVtbl->GetContainer(p,a,b)
1023 #define IWineD3DSurface_GetDesc(p,a)                 (p)->lpVtbl->GetDesc(p,a)
1024 #define IWineD3DSurface_LockRect(p,a,b,c)            (p)->lpVtbl->LockRect(p,a,b,c)
1025 #define IWineD3DSurface_UnlockRect(p)                (p)->lpVtbl->UnlockRect(p)
1026 #define IWineD3DSurface_GetDC(p,a)                   (p)->lpVtbl->GetDC(p,a)
1027 #define IWineD3DSurface_ReleaseDC(p,a)               (p)->lpVtbl->ReleaseDC(p,a)
1028 /*** IWineD3DSurface (Internal, no d3d mapping) methods ***/
1029 #define IWineD3DSurface_CleanDirtyRect(p)            (p)->lpVtbl->CleanDirtyRect(p)
1030 #define IWineD3DSurface_AddDirtyRect(p,a)            (p)->lpVtbl->AddDirtyRect(p,a)
1031 #define IWineD3DSurface_LoadTexture(p)               (p)->lpVtbl->LoadTexture(p)
1032 #define IWineD3DSurface_SaveSnapshot(p,a)            (p)->lpVtbl->SaveSnapshot(p,a)
1033 #define IWineD3DSurface_SetContainer(p,a)            (p)->lpVtbl->SetContainer(p,a)
1034 #define IWineD3DSurface_SetPBufferState(p,a,b)       (p)->lpVtbl->SetPBufferState(p,a,b)
1035 #define IWineD3DSurface_SetGlTextureDesc(p,a,b)      (p)->lpVtbl->SetGlTextureDesc(p,a,b)
1036 #define IWineD3DSurface_GetGlDesc(p,a)               (p)->lpVtbl->GetGlDesc(p,a)
1037 #define IWineD3DSurface_GetData(p)                   (p)->lpVtbl->GetData(p)
1038 #endif
1039
1040 /*****************************************************************************
1041  * IWineD3DVolume interface
1042  */
1043 #define INTERFACE IWineD3DVolume
1044 DECLARE_INTERFACE_(IWineD3DVolume,IWineD3DResource)
1045 {
1046     /*** IUnknown methods ***/
1047     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1048     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1049     STDMETHOD_(ULONG,Release)(THIS) PURE;
1050     /*** IWineD3DResource methods ***/    
1051     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
1052     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
1053     STDMETHOD(SetPrivateData)(THIS_ REFGUID  refguid, CONST void * pData, DWORD  SizeOfData, DWORD  Flags) PURE;
1054     STDMETHOD(GetPrivateData)(THIS_ REFGUID  refguid, void * pData, DWORD * pSizeOfData) PURE;
1055     STDMETHOD(FreePrivateData)(THIS_ REFGUID  refguid) PURE;
1056     STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD  PriorityNew) PURE;
1057     STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
1058     STDMETHOD_(void,PreLoad)(THIS) PURE;
1059     STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;    
1060     /*** IWineD3DVolume methods ***/    
1061     STDMETHOD(GetContainer)(THIS_ REFIID  riid, void ** ppContainer) PURE;
1062     STDMETHOD(GetDesc)(THIS_ WINED3DVOLUME_DESC * pDesc) PURE;
1063     STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) PURE;
1064     STDMETHOD(UnlockBox)(THIS) PURE;
1065     STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX* pDirtyBox) PURE;
1066     STDMETHOD(CleanDirtyBox)(THIS) PURE;
1067     STDMETHOD(LoadTexture)(THIS_ UINT gl_level) PURE;
1068     STDMETHOD(SetContainer)(THIS_ IUnknown *container) PURE;
1069 };
1070 #undef INTERFACE
1071
1072 #if !defined(__cplusplus) || defined(CINTERFACE)
1073 /*** IUnknown methods ***/
1074 #define IWineD3DVolume_QueryInterface(p,a,b)      (p)->lpVtbl->QueryInterface(p,a,b)
1075 #define IWineD3DVolume_AddRef(p)                  (p)->lpVtbl->AddRef(p)
1076 #define IWineD3DVolume_Release(p)                 (p)->lpVtbl->Release(p)
1077 /*** IWineD3DResource methods ***/
1078 #define IWineD3DVolume_GetParent(p,a)             (p)->lpVtbl->GetParent(p,a)
1079 #define IWineD3DVolume_GetDevice(p,a)             (p)->lpVtbl->GetDevice(p,a)
1080 #define IWineD3DVolume_SetPrivateData(p,a,b,c,d)  (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1081 #define IWineD3DVolume_GetPrivateData(p,a,b,c)    (p)->lpVtbl->GetPrivateData(p,a,b,c)
1082 #define IWineD3DVolume_FreePrivateData(p,a)       (p)->lpVtbl->FreePrivateData(p,a)
1083 #define IWineD3DVolume_SetPriority(p,a)           (p)->lpVtbl->SetPriority(p,a)
1084 #define IWineD3DVolume_GetPriority(p)             (p)->lpVtbl->GetPriority(p)
1085 #define IWineD3DVolume_PreLoad(p)                 (p)->lpVtbl->PreLoad(p)
1086 #define IWineD3DVolume_GetType(p)                 (p)->lpVtbl->GetType(p)
1087 /*** IWineD3DVolume methods ***/
1088 #define IWineD3DVolume_GetContainer(p,a,b)        (p)->lpVtbl->GetContainer(p,a,b)
1089 #define IWineD3DVolume_GetDesc(p,a)               (p)->lpVtbl->GetDesc(p,a)
1090 #define IWineD3DVolume_LockBox(p,a,b,c)           (p)->lpVtbl->LockBox(p,a,b,c)
1091 #define IWineD3DVolume_UnlockBox(p)               (p)->lpVtbl->UnlockBox(p)
1092 #define IWineD3DVolume_AddDirtyBox(p,a)           (p)->lpVtbl->AddDirtyBox(p,a)
1093 #define IWineD3DVolume_CleanDirtyBox(p)           (p)->lpVtbl->CleanDirtyBox(p)
1094 #define IWineD3DVolume_LoadTexture(p,a)           (p)->lpVtbl->LoadTexture(p,a)
1095 #define IWineD3DVolume_SetContainer(p,a)          (p)->lpVtbl->SetContainer(p,a)
1096 #endif
1097
1098 /*****************************************************************************
1099  * IWineD3DVertexDeclaration interface
1100  */
1101 #define INTERFACE IWineD3DVertexDeclaration
1102 DECLARE_INTERFACE_(IWineD3DVertexDeclaration,IUnknown)
1103 {
1104     /*** IUnknown methods ***/
1105     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
1106     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1107     STDMETHOD_(ULONG,Release)(THIS) PURE;
1108     /*** IWineD3DVertexDeclaration methods ***/
1109     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
1110     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice **ppDevice) PURE;
1111     STDMETHOD(GetDeclaration)(THIS_ VOID *pDecl, DWORD *pSize) PURE;
1112     STDMETHOD(SetDeclaration)(THIS_ VOID *pDecl) PURE;
1113 };
1114 #undef INTERFACE
1115
1116 #if !defined(__cplusplus) || defined(CINTERFACE)
1117 /*** IUnknown methods ***/
1118 #define IWineD3DVertexDeclaration_QueryInterface(p,a,b)      (p)->lpVtbl->QueryInterface(p,a,b)
1119 #define IWineD3DVertexDeclaration_AddRef(p)                  (p)->lpVtbl->AddRef(p)
1120 #define IWineD3DVertexDeclaration_Release(p)                 (p)->lpVtbl->Release(p)
1121 /*** IWineD3DVertexDeclaration methods ***/
1122 #define IWineD3DVertexDeclaration_GetParent(p,a)             (p)->lpVtbl->GetParent(p,a)
1123 #define IWineD3DVertexDeclaration_GetDevice(p,a)             (p)->lpVtbl->GetDevice(p,a)
1124 #define IWineD3DVertexDeclaration_GetDeclaration(p,a,b)      (p)->lpVtbl->GetDeclaration(p,a,b)
1125 #define IWineD3DVertexDeclaration_SetDeclaration(p,b)        (p)->lpVtbl->SetDeclaration(p,b)
1126 #endif
1127
1128 /*****************************************************************************
1129  * IWineD3DStateBlock interface 
1130  */
1131 #define INTERFACE IWineD3DStateBlock
1132 DECLARE_INTERFACE_(IWineD3DStateBlock,IUnknown)
1133 {
1134     /*** IUnknown methods ***/
1135     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1136     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1137     STDMETHOD_(ULONG,Release)(THIS) PURE;
1138     /*** IWineD3DStateBlock methods ***/
1139     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
1140     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice **pDevice) PURE;
1141     STDMETHOD(Capture)(THIS) PURE;
1142     STDMETHOD(Apply)(THIS) PURE;
1143     STDMETHOD(InitStartupStateBlock)(THIS) PURE;
1144 };
1145 #undef INTERFACE
1146
1147 #if !defined(__cplusplus) || defined(CINTERFACE)
1148 /*** IUnknown methods ***/
1149 #define IWineD3DStateBlock_QueryInterface(p,a,b)                (p)->lpVtbl->QueryInterface(p,a,b)
1150 #define IWineD3DStateBlock_AddRef(p)                            (p)->lpVtbl->AddRef(p)
1151 #define IWineD3DStateBlock_Release(p)                           (p)->lpVtbl->Release(p)
1152 /*** IWineD3DStateBlock methods ***/
1153 #define IWineD3DStateBlock_GetParent(p,a)                       (p)->lpVtbl->GetParent(p,a)
1154 #define IWineD3DStateBlock_GetDevice(p,a)                       (p)->lpVtbl->GetDevice(p,a)
1155 #define IWineD3DStateBlock_Capture(p)                           (p)->lpVtbl->Capture(p)
1156 #define IWineD3DStateBlock_Apply(p)                             (p)->lpVtbl->Apply(p)
1157 #define IWineD3DStateBlock_InitStartupStateBlock(p)             (p)->lpVtbl->InitStartupStateBlock(p)
1158 #endif
1159
1160 /*****************************************************************************
1161  * WineD3DQuery interface 
1162  */
1163 #define INTERFACE IWineD3DQuery
1164 DECLARE_INTERFACE_(IWineD3DQuery,IUnknown)
1165 {
1166     /*** IUnknown methods ***/
1167     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
1168     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1169     STDMETHOD_(ULONG,Release)(THIS) PURE;
1170     /*** IWineD3DQuery methods ***/
1171     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
1172     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice **ppDevice) PURE;
1173     STDMETHOD(GetData)(THIS_  void *pData, DWORD dwSize, DWORD dwGetDataFlags) PURE;
1174     STDMETHOD_(DWORD,GetDataSize)(THIS) PURE;
1175     STDMETHOD_(WINED3DQUERYTYPE, GetType)(THIS) PURE;
1176     STDMETHOD(Issue)(THIS_ DWORD dwIssueFlags) PURE;
1177     
1178 };
1179 #undef INTERFACE
1180
1181 #if !defined(__cplusplus) || defined(CINTERFACE)
1182 /*** IUnknown methods ***/
1183 #define IWineD3DQuery_QueryInterface(p,a,b)        (p)->lpVtbl->QueryInterface(p,a,b)
1184 #define IWineD3DQuery_AddRef(p)                    (p)->lpVtbl->AddRef(p)
1185 #define IWineD3DQuery_Release(p)                   (p)->lpVtbl->Release(p)
1186 /*** IWineD3DQuery methods ***/
1187 #define IWineD3DQuery_GetParent(p,a)               (p)->lpVtbl->GetParent(p,a)
1188 #define IWineD3DQuery_GetDevice(p,a)               (p)->lpVtbl->GetDevice(p,a)
1189 #define IWineD3DQuery_GetData(p,a,b,c)             (p)->lpVtbl->GetData(p,a,b,c)
1190 #define IWineD3DQuery_GetDataSize(p)               (p)->lpVtbl->GetDataSize(p)
1191 #define IWineD3DQuery_GetType(p)                   (p)->lpVtbl->GetType(p)
1192 #define IWineD3DQuery_Issue(p,a)                   (p)->lpVtbl->Issue(p,a)
1193
1194 #endif
1195
1196 /*****************************************************************************
1197  * IWineD3DSwapChain interface
1198  * TODO: add gamma-ramp setting functions to make life easier
1199  * (There kinda missing from Microsofts DirectX!)
1200  */
1201 #define INTERFACE IWineD3DSwapChain
1202 DECLARE_INTERFACE_(IWineD3DSwapChain,IUnknown)
1203 {
1204     /*** IUnknown methods ***/
1205     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
1206     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1207     STDMETHOD_(ULONG,Release)(THIS) PURE;
1208     /*** IDirect3DSwapChain9 methods ***/
1209     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
1210     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice **ppDevice) PURE;
1211     STDMETHOD(Present)(THIS_ CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion, DWORD dwFlags) PURE;
1212     STDMETHOD(GetFrontBufferData)(THIS_ IWineD3DSurface *pDestSurface) PURE;
1213     STDMETHOD(GetBackBuffer)(THIS_ UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IWineD3DSurface **ppBackBuffer) PURE;
1214     STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS *pRasterStatus) PURE;
1215     STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE *pMode) PURE;
1216     STDMETHOD(GetPresentParameters)(THIS_ D3DPRESENT_PARAMETERS *pPresentationParameters) PURE;
1217     STDMETHOD(SetGammaRamp)(THIS_ DWORD Flags, const D3DGAMMARAMP *pRamp) PURE;
1218     STDMETHOD(GetGammaRamp)(THIS_ D3DGAMMARAMP *pRamp) PURE;
1219 };
1220 #undef INTERFACE
1221
1222 #if !defined(__cplusplus) || defined(CINTERFACE)
1223 /*** IUnknown methods ***/
1224 #define IWineD3DSwapChain_QueryInterface(p,a,b)        (p)->lpVtbl->QueryInterface(p,a,b)
1225 #define IWineD3DSwapChain_AddRef(p)                    (p)->lpVtbl->AddRef(p)
1226 #define IWineD3DSwapChain_Release(p)                   (p)->lpVtbl->Release(p)
1227 /*** IWineD3DSwapChain methods ***/
1228
1229 #define IWineD3DSwapChain_GetParent(p,a)               (p)->lpVtbl->GetParent(p,a)
1230 #define IWineD3DSwapChain_GetDevice(p,a)               (p)->lpVtbl->GetDevice(p,a)
1231 #define IWineD3DSwapChain_Present(p,a,b,c,d,e)         (p)->lpVtbl->Present(p,a,b,c,d,e)
1232 #define IWineD3DSwapChain_GetFrontBufferData(p,a)      (p)->lpVtbl->GetFrontBufferData(p,a)
1233 #define IWineD3DSwapChain_GetBackBuffer(p,a,b,c)       (p)->lpVtbl->GetBackBuffer(p,a,b,c)
1234 #define IWineD3DSwapChain_GetRasterStatus(p,a)         (p)->lpVtbl->GetRasterStatus(p,a)
1235 #define IWineD3DSwapChain_GetDisplayMode(p,a)          (p)->lpVtbl->GetDisplayMode(p,a)
1236 #define IWineD3DSwapChain_GetPresentParameters(p,a)    (p)->lpVtbl->GetPresentParameters(p,a)
1237 #define IWineD3DSwapChain_SetGammaRamp(p,a,b)          (p)->lpVtbl->SetGammaRamp(p,a,b)
1238 #define IWineD3DSwapChain_GetGammaRamp(p,a)            (p)->lpVtbl->GetGammaRamp(p,a)
1239 #endif
1240
1241 /*****************************************************************************
1242  * IWineD3DVertexShader interface 
1243  */
1244 #define INTERFACE IWineD3DVertexShader
1245 DECLARE_INTERFACE_(IWineD3DVertexShader,IUnknown)
1246 {
1247     /*** IUnknown methods ***/
1248     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1249     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1250     STDMETHOD_(ULONG,Release)(THIS) PURE;
1251     /*** IWineD3DVertexShader methods ***/
1252     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
1253     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice** ppDevice) PURE;
1254     STDMETHOD(GetFunction)(THIS_ VOID *pData, UINT *pSizeOfData) PURE;
1255     STDMETHOD(SetFunction)(THIS_ CONST DWORD *pFunction) PURE;
1256     STDMETHOD(SetConstantB)(THIS_ UINT StartRegister, CONST BOOL*  pConstantData, UINT BoolCount) PURE;
1257     STDMETHOD(SetConstantI)(THIS_ UINT StartRegister, CONST INT*   pConstantData, UINT Vector4iCount) PURE;
1258     STDMETHOD(SetConstantF)(THIS_ UINT StartRegister, CONST FLOAT* pConstantData, UINT Vector4fCount) PURE;
1259     STDMETHOD(GetConstantB)(THIS_ UINT StartRegister, BOOL*  pConstantData, UINT BoolCount) PURE;
1260     STDMETHOD(GetConstantI)(THIS_ UINT StartRegister, INT*   pConstantData, UINT Vector4iCount) PURE;
1261     STDMETHOD(GetConstantF)(THIS_ UINT StartRegister, FLOAT* pConstantData, UINT Vector4fCount) PURE;
1262     /* Internal Interfaces */
1263     STDMETHOD_(DWORD, GetVersion)(THIS) PURE;
1264 };
1265 #undef INTERFACE
1266
1267 #if !defined(__cplusplus) || defined(CINTERFACE)
1268 /*** IUnknown methods ***/
1269 #define IWineD3DVertexShader_QueryInterface(p,a,b)     (p)->lpVtbl->QueryInterface(p,a,b)
1270 #define IWineD3DVertexShader_AddRef(p)                 (p)->lpVtbl->AddRef(p)
1271 #define IWineD3DVertexShader_Release(p)                (p)->lpVtbl->Release(p)
1272 /*** IWineD3DVertexShader methods ***/
1273 #define IWineD3DVertexShader_GetParent(p,a)            (p)->lpVtbl->GetParent(p,a)
1274 #define IWineD3DVertexShader_GetDevice(p,a)            (p)->lpVtbl->GetDevice(p,a)
1275 #define IWineD3DVertexShader_GetFunction(p,a,b)        (p)->lpVtbl->GetFunction(p,a,b)
1276 #define IWineD3DVertexShader_SetFunction(p,a)          (p)->lpVtbl->SetFunction(p,a)
1277 #define IWineD3DVertexShader_SetConstantB(p,a,b,c)     (p)->lpVtbl->SetConstantB(p,a,b,c)
1278 #define IWineD3DVertexShader_SetConstantI(p,a,b,c)     (p)->lpVtbl->SetConstantI(p,a,b,c)
1279 #define IWineD3DVertexShader_SetConstantF(p,a,b,c)     (p)->lpVtbl->SetConstantF(p,a,b,c)
1280 #define IWineD3DVertexShader_GetConstantB(p,a,b,c)     (p)->lpVtbl->GetConstantB(p,a,b,c)
1281 #define IWineD3DVertexShader_GetConstantI(p,a,b,c)     (p)->lpVtbl->GetConstantI(p,a,b,c)
1282 #define IWineD3DVertexShader_GetConstantF(p,a,b,c)     (p)->lpVtbl->GetConstantF(p,a,b,c)
1283 #define IWineD3DVertexShader_GetVersion(p)             (p)->lpVtbl->GetVersion(p)
1284 #endif
1285
1286 /*****************************************************************************
1287  * IWineD3DPixelShader interface 
1288  */
1289 #define INTERFACE IWineD3DPixelShader
1290 DECLARE_INTERFACE_(IWineD3DPixelShader,IUnknown)
1291 {
1292     /*** IUnknown methods ***/
1293     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1294     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1295     STDMETHOD_(ULONG,Release)(THIS) PURE;
1296     /*** IWineD3DPixelShader methods ***/
1297     STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
1298     STDMETHOD(GetDevice)(THIS_ IWineD3DDevice** ppDevice) PURE;
1299     STDMETHOD(GetFunction)(THIS_ VOID* pData, UINT* pSizeOfData) PURE;
1300     STDMETHOD(SetConstantF)(THIS_ UINT StartRegister, CONST FLOAT* pConstantData, UINT Vector4fCount) PURE;
1301     STDMETHOD(GetConstantF)(THIS_ UINT StartRegister, FLOAT* pConstantData, UINT Vector4fCount) PURE;
1302     /* Internal Interfaces */
1303     STDMETHOD_(DWORD, GetVersion)(THIS) PURE;
1304 };
1305 #undef INTERFACE
1306
1307 #if !defined(__cplusplus) || defined(CINTERFACE)
1308 /*** IUnknown methods ***/
1309 #define IWineD3DPixelShader_QueryInterface(p,a,b)      (p)->lpVtbl->QueryInterface(p,a,b)
1310 #define IWineD3DPixelShader_AddRef(p)                  (p)->lpVtbl->AddRef(p)
1311 #define IWineD3DPixelShader_Release(p)                 (p)->lpVtbl->Release(p)
1312 /*** IWineD3DPixelShader methods ***/
1313 #define IWineD3DPixelShader_GetParent(p,a)             (p)->lpVtbl->GetParent(p,a)
1314 #define IWineD3DPixelShader_GetDevice(p,a)             (p)->lpVtbl->GetDevice(p,a)
1315 #define IWineD3DPixelShader_GetFunction(p,a,b)         (p)->lpVtbl->GetFunction(p,a,b)
1316 #define IWineD3DPixelShader_SetConstantF(p,a,b,c)      (p)->lpVtbl->SetConstantF(p,a,b,c)
1317 #define IWineD3DPixelShader_GetConstantF(p,a,b,c)      (p)->lpVtbl->GetConstantF(p,a,b,c)
1318 #define IWineD3DPixelShader_GetVersion(p)              (p)->lpVtbl->GetVersion(p)
1319 #endif
1320
1321 #if 0 /* FIXME: During porting in from d3d8 - the following will be used */
1322 extern HRESULT WINAPI IDirect3DVertexShaderImpl_ParseProgram(IDirect3DVertexShaderImpl* This, CONST DWORD* pFunction);
1323 /* internal Interfaces */
1324 extern HRESULT WINAPI IDirect3DVertexShaderImpl_ExecuteSW(IDirect3DVertexShaderImpl* This, VSHADERINPUTDATA* input, VSHADEROUTPUTDATA* output);
1325 #endif /* Temporary #if 0 */
1326
1327
1328 #endif