2 * Direct3D wine internal public interface file
4 * Copyright 2002-2003 The wine-d3d team
5 * Copyright 2002-2003 Raphael Junqueira
6 * Copyright 2005 Oliver Stieber
7 * Copyright 2006 Stefan Dösinger for CodeWeavers
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #ifndef __WINE_WINED3D_INTERFACE_H
25 #define __WINE_WINED3D_INTERFACE_H
27 #if !defined( __WINE_CONFIG_H )
28 # error You must include config.h to use this header
31 #define COM_NO_WINDOWS_H
34 /* Stupid DDraw Struct references surfaces */
35 struct IWineD3DSurface
;
37 #include "wined3d_types.h"
38 /*****************************************************************
39 * THIS FILE MUST NOT CONTAIN X11 or MESA DEFINES
40 * PLEASE USE wine/wined3d_gl.h INSTEAD
43 /*****************************************************************************
44 * #defines and error codes
46 #define _FACWINED3D 0x876
47 #define MAKE_WINED3DHRESULT( code ) MAKE_HRESULT( 1, _FACWINED3D, code )
48 #define MAKE_WINED3DSTATUS( code ) MAKE_HRESULT( 0, _FACWINED3D, code )
50 /*****************************************************************************
53 #define WINED3D_OK S_OK
54 #define WINED3DERR_WRONGTEXTUREFORMAT MAKE_WINED3DHRESULT(2072)
55 #define WINED3DERR_UNSUPPORTEDCOLOROPERATION MAKE_WINED3DHRESULT(2073)
56 #define WINED3DERR_UNSUPPORTEDCOLORARG MAKE_WINED3DHRESULT(2074)
57 #define WINED3DERR_UNSUPPORTEDALPHAOPERATION MAKE_WINED3DHRESULT(2075)
58 #define WINED3DERR_UNSUPPORTEDALPHAARG MAKE_WINED3DHRESULT(2076)
59 #define WINED3DERR_TOOMANYOPERATIONS MAKE_WINED3DHRESULT(2077)
60 #define WINED3DERR_CONFLICTINGTEXTUREFILTER MAKE_WINED3DHRESULT(2078)
61 #define WINED3DERR_UNSUPPORTEDFACTORVALUE MAKE_WINED3DHRESULT(2079)
62 #define WINED3DERR_CONFLICTINGRENDERSTATE MAKE_WINED3DHRESULT(2081)
63 #define WINED3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_WINED3DHRESULT(2082)
64 #define WINED3DERR_CONFLICTINGTEXTUREPALETTE MAKE_WINED3DHRESULT(2086)
65 #define WINED3DERR_DRIVERINTERNALERROR MAKE_WINED3DHRESULT(2087)
66 #define WINED3DERR_NOTFOUND MAKE_WINED3DHRESULT(2150)
67 #define WINED3DERR_MOREDATA MAKE_WINED3DHRESULT(2151)
68 #define WINED3DERR_DEVICELOST MAKE_WINED3DHRESULT(2152)
69 #define WINED3DERR_DEVICENOTRESET MAKE_WINED3DHRESULT(2153)
70 #define WINED3DERR_NOTAVAILABLE MAKE_WINED3DHRESULT(2154)
71 #define WINED3DERR_OUTOFVIDEOMEMORY MAKE_WINED3DHRESULT(380)
72 #define WINED3DERR_INVALIDDEVICE MAKE_WINED3DHRESULT(2155)
73 #define WINED3DERR_INVALIDCALL MAKE_WINED3DHRESULT(2156)
74 #define WINED3DERR_DRIVERINVALIDCALL MAKE_WINED3DHRESULT(2157)
75 #define WINED3DERR_WASSTILLDRAWING MAKE_WINED3DHRESULT(540)
76 #define WINEDDERR_NOTAOVERLAYSURFACE MAKE_WINED3DHRESULT(580)
77 #define WINEDDERR_NODC MAKE_WINED3DHRESULT(586)
78 #define WINEDDERR_DCALREADYCREATED MAKE_WINED3DHRESULT(620)
79 #define WINEDDERR_NOTFLIPPABLE MAKE_WINED3DHRESULT(582)
80 #define WINEDDERR_SURFACEBUSY MAKE_WINED3DHRESULT(430)
81 #define WINEDDERR_INVALIDRECT MAKE_WINED3DHRESULT(150)
82 #define WINEDDERR_NOCLIPLIST MAKE_WINED3DHRESULT(205)
83 #define WINED3DOK_NOAUTOGEN MAKE_WINED3DSTATUS(2159)
85 /*****************************************************************************
86 * Predeclare the interfaces
91 struct IWineD3DDevice
;
92 struct IWineD3DPalette
;
93 struct IWineD3DResource
;
94 struct IWineD3DVertexBuffer
;
95 struct IWineD3DIndexBuffer
;
96 struct IWineD3DBaseTexture
;
97 struct IWineD3DTexture
;
98 struct IWineD3DCubeTexture
;
99 struct IWineD3DVolumeTexture
;
100 struct IWineD3DStateBlock
;
101 struct IWineD3DVolume
;
102 struct IWineD3DVertexDeclaration
;
103 struct IWineD3DBaseShader
;
104 struct IWineD3DVertexShader
;
105 struct IWineD3DPixelShader
;
106 struct IWineD3DQuery
;
107 struct IWineD3DSwapChain
;
108 struct IWineD3DClipper
;
111 /* {108F9C44-6F30-11d9-C687-00046142C14F} */
112 DEFINE_GUID(IID_IWineD3D
,
113 0x108f9c44, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
115 DEFINE_GUID(IID_IWineD3DBase
,
116 0x46799311, 0x8e0e, 0x40ce, 0xb2, 0xec, 0xdd, 0xb9, 0x9f, 0x18, 0xfc, 0xb4);
118 /* {108F9C44-6F30-11d9-C687-00046142C14F} */
119 DEFINE_GUID(IID_IWineD3DDevice
,
120 0x108f9c44, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
122 /* {f756720c-32b9-4439-b5a3-1d6c97037d9e} */
123 DEFINE_GUID(IID_IWineD3DPalette
,
124 0xf756720c, 0x32b9, 0x4439, 0xb5, 0xa3, 0x1d, 0x6c, 0x97, 0x03, 0x7d, 0x9e);
126 /* {1F3BFB34-6F30-11d9-C687-00046142C14F} */
127 DEFINE_GUID(IID_IWineD3DResource
,
128 0x1f3bfb34, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
130 /* {217F671E-6F30-11d9-C687-00046142C14F} */
131 DEFINE_GUID(IID_IWineD3DVertexBuffer
,
132 0x217f671e, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
134 /* {24769ED8-6F30-11d9-C687-00046142C14F} */
135 DEFINE_GUID(IID_IWineD3DVolume
,
136 0x24769ed8, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
139 /* {34D01B10-6F30-11d9-C687-00046142C14F} */
140 DEFINE_GUID(IID_IWineD3DSwapChain
,
141 0x34d01b10, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
143 /* {37CD5526-6F30-11d9-C687-00046142C14F} */
144 DEFINE_GUID(IID_IWineD3DSurface
,
145 0x37cd5526, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
148 /* {3A02A54E-6F30-11d9-C687-00046142C14F} */
149 DEFINE_GUID(IID_IWineD3DIndexBuffer
,
150 0x3a02a54e, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
152 /* {3C2AEBF6-6F30-11d9-C687-00046142C14F} */
153 DEFINE_GUID(IID_IWineD3DBaseTexture
,
154 0x3c2aebf6, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
156 /* {3E72CC1C-6F30-11d9-C687-00046142C14F} */
157 DEFINE_GUID(IID_IWineD3DTexture
,
158 0x3e72cc1c, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
160 /* {41752900-6F30-11d9-C687-00046142C14F} */
161 DEFINE_GUID(IID_IWineD3DCubeTexture
,
162 0x41752900, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
164 /* {7B39470C-6F30-11d9-C687-00046142C14F} */
165 DEFINE_GUID(IID_IWineD3DVolumeTexture
,
166 0x7b39470c, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
168 /* {7CD55BE6-6F30-11d9-C687-00046142C14F} */
169 DEFINE_GUID(IID_IWineD3DVertexDeclaration
,
170 0x7cd55be6, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
172 /* {EAC93065-A4DF-446F-86A1-9EF2BCA40A3C} */
173 DEFINE_GUID(IID_IWineD3DBaseShader
,
174 0xeac93065, 0xa4df, 0x446f, 0x86, 0xa1, 0x9e, 0xf2, 0xbc, 0xa4, 0x0a, 0x3c);
176 /* {7F7A2B60-6F30-11d9-C687-00046142C14F} */
177 DEFINE_GUID(IID_IWineD3DVertexShader
,
178 0x7f7a2b60, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
180 /* {818503DA-6F30-11d9-C687-00046142C14F} */
181 DEFINE_GUID(IID_IWineD3DPixelShader
,
182 0x818503da, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
184 /* {83B073CE-6F30-11d9-C687-00046142C14F} */
185 DEFINE_GUID(IID_IWineD3DStateBlock
,
186 0x83b073ce, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
188 /* {905DDBAC-6F30-11d9-C687-00046142C14F} */
189 DEFINE_GUID(IID_IWineD3DQuery
,
190 0x905ddbac, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
192 /* {8f2bceb1-d338-488c-ab7f-0ec980bf5d2d} */
193 DEFINE_GUID(IID_IWineD3DClipper
,
194 0x8f2bceb1, 0xd338, 0x488c, 0xab, 0x7f, 0x0e, 0xc9, 0x80, 0xbf, 0x5d, 0x2d);
196 /*****************************************************************************
197 * Callback functions required for predefining surfaces / stencils
199 typedef HRESULT (WINAPI
*D3DCB_CREATERENDERTARGETFN
) (IUnknown
*pDevice
,
203 WINED3DFORMAT Format
,
204 WINED3DMULTISAMPLE_TYPE MultiSample
,
205 DWORD MultisampleQuality
,
207 struct IWineD3DSurface
**ppSurface
,
208 HANDLE
*pSharedHandle
);
210 typedef HRESULT (WINAPI
*D3DCB_CREATESURFACEFN
) (IUnknown
*pDevice
,
214 WINED3DFORMAT Format
,
218 WINED3DCUBEMAP_FACES Face
,
219 struct IWineD3DSurface
**ppSurface
,
220 HANDLE
*pSharedHandle
);
222 typedef HRESULT (WINAPI
*D3DCB_CREATEDEPTHSTENCILSURFACEFN
) (IUnknown
*pDevice
,
226 WINED3DFORMAT Format
,
227 WINED3DMULTISAMPLE_TYPE MultiSample
,
228 DWORD MultisampleQuality
,
230 struct IWineD3DSurface
**ppSurface
,
231 HANDLE
*pSharedHandle
);
234 typedef HRESULT (WINAPI
*D3DCB_CREATEVOLUMEFN
) (IUnknown
*pDevice
,
239 WINED3DFORMAT Format
,
242 struct IWineD3DVolume
**ppVolume
,
243 HANDLE
*pSharedHandle
);
245 typedef HRESULT (WINAPI
*D3DCB_CREATEADDITIONALSWAPCHAIN
) (IUnknown
*pDevice
,
246 WINED3DPRESENT_PARAMETERS
*pPresentationParameters
,
247 struct IWineD3DSwapChain
**pSwapChain
250 typedef HRESULT (WINAPI
*D3DCB_ENUMRESOURCES
) (struct IWineD3DResource
*resource
,
254 /*****************************************************************************
255 * Callback functions for custom implicit object destruction.
257 typedef ULONG (WINAPI
*D3DCB_DESTROYSWAPCHAINFN
) (struct IWineD3DSwapChain
*pSwapChain
);
259 typedef ULONG (WINAPI
*D3DCB_DESTROYSURFACEFN
) (struct IWineD3DSurface
*pSurface
);
261 typedef ULONG (WINAPI
*D3DCB_DESTROYVOLUMEFN
) (struct IWineD3DVolume
*pVolume
);
263 /*****************************************************************************
264 * IWineD3DBase interface
267 #define INTERFACE IWineD3DBase
268 DECLARE_INTERFACE_(IWineD3DBase
, IUnknown
)
270 /*** IUnknown methods ***/
271 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void **ppvObject
) PURE
;
272 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
273 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
274 /*** IWineD3DBase methods ***/
275 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
279 #if !defined(__cplusplus) || defined(CINTERFACE)
280 /*** IUnknown methods ***/
281 #define IWineD3DBase_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
282 #define IWineD3DBase_AddRef(p) (p)->lpVtbl->AddRef(p)
283 #define IWineD3DBase_Release(p) (p)->lpVtbl->Release(p)
284 /*** IWineD3DBase methods ***/
285 #define IWineD3DBase_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
288 /*****************************************************************************
292 #define INTERFACE IWineD3D
293 DECLARE_INTERFACE_(IWineD3D
, IWineD3DBase
)
295 /*** IUnknown methods ***/
296 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void **ppvObject
) PURE
;
297 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
298 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
299 /*** IWineD3DBase methods ***/
300 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
301 /*** IWineD3D methods ***/
302 STDMETHOD_(UINT
,GetAdapterCount
)(THIS
) PURE
;
303 STDMETHOD(RegisterSoftwareDevice
)(THIS_
void * pInitializeFunction
) PURE
;
304 STDMETHOD_(HMONITOR
,GetAdapterMonitor
)(THIS_ UINT Adapter
) PURE
;
305 STDMETHOD_(UINT
,GetAdapterModeCount
)(THIS_ UINT Adapter
, WINED3DFORMAT Format
) PURE
;
306 STDMETHOD(EnumAdapterModes
)(THIS_ UINT Adapter
, UINT Mode
, WINED3DFORMAT Format
, WINED3DDISPLAYMODE
* pMode
) PURE
;
307 STDMETHOD(GetAdapterDisplayMode
)(THIS_ UINT Adapter
, WINED3DDISPLAYMODE
*pMode
) PURE
;
308 STDMETHOD(GetAdapterIdentifier
)(THIS_ UINT Adapter
, DWORD Flags
, WINED3DADAPTER_IDENTIFIER
* pIdentifier
) PURE
;
309 STDMETHOD(CheckDeviceMultiSampleType
)(THIS_ UINT Adapter
, WINED3DDEVTYPE DeviceType
, WINED3DFORMAT SurfaceFormat
, BOOL Windowed
, WINED3DMULTISAMPLE_TYPE MultiSampleType
, DWORD
*pQuality
) PURE
;
310 STDMETHOD(CheckDepthStencilMatch
)(THIS_ UINT Adapter
, WINED3DDEVTYPE DeviceType
, WINED3DFORMAT AdapterFormat
, WINED3DFORMAT RenderTargetFormat
, WINED3DFORMAT DepthStencilFormat
) PURE
;
311 STDMETHOD(CheckDeviceType
)(THIS_ UINT Adapter
, WINED3DDEVTYPE CheckType
, WINED3DFORMAT DisplayFormat
, WINED3DFORMAT BackBufferFormat
, BOOL Windowed
) PURE
;
312 STDMETHOD(CheckDeviceFormat
)(THIS_ UINT Adapter
, WINED3DDEVTYPE DeviceType
, WINED3DFORMAT AdapterFormat
, DWORD Usage
, WINED3DRESOURCETYPE RType
, WINED3DFORMAT CheckFormat
) PURE
;
313 STDMETHOD(CheckDeviceFormatConversion
)(THIS_ UINT Adapter
, WINED3DDEVTYPE DeviceType
, WINED3DFORMAT SourceFormat
, WINED3DFORMAT TargetFormat
) PURE
;
314 STDMETHOD(GetDeviceCaps
)(THIS_ UINT Adapter
, WINED3DDEVTYPE DeviceType
, WINED3DCAPS
*pCaps
) PURE
;
315 STDMETHOD(CreateDevice
)(THIS_ UINT Adapter
, WINED3DDEVTYPE DeviceType
,HWND hFocusWindow
, DWORD BehaviorFlags
, struct IWineD3DDevice
**ppReturnedDeviceInterface
, IUnknown
*parent
) PURE
;
320 #if !defined(__cplusplus) || defined(CINTERFACE)
321 /*** IUnknown methods ***/
322 #define IWineD3D_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
323 #define IWineD3D_AddRef(p) (p)->lpVtbl->AddRef(p)
324 #define IWineD3D_Release(p) (p)->lpVtbl->Release(p)
325 /*** IWineD3DBase methods ***/
326 #define IWineD3D_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
327 /*** IWineD3D methods ***/
328 #define IWineD3D_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
329 #define IWineD3D_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
330 #define IWineD3D_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
331 #define IWineD3D_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
332 #define IWineD3D_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
333 #define IWineD3D_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
334 #define IWineD3D_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
335 #define IWineD3D_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
336 #define IWineD3D_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
337 #define IWineD3D_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
338 #define IWineD3D_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
339 #define IWineD3D_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
340 #define IWineD3D_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
341 #define IWineD3D_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
344 /* Define the main WineD3D entrypoint */
345 IWineD3D
* WINAPI
WineDirect3DCreate(UINT SDKVersion
, UINT dxVersion
, IUnknown
*parent
);
347 /*****************************************************************************
348 * IWineD3DDevice interface
350 #define INTERFACE IWineD3DDevice
351 DECLARE_INTERFACE_(IWineD3DDevice
,IWineD3DBase
)
353 /*** IUnknown methods ***/
354 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
355 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
356 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
357 /*** IWineD3DBase methods ***/
358 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
359 /*** IWineD3DDevice methods ***/
360 STDMETHOD(CreateVertexBuffer
)(THIS_ UINT Length
,DWORD Usage
,DWORD FVF
,WINED3DPOOL Pool
,struct IWineD3DVertexBuffer
**ppVertexBuffer
, HANDLE
*sharedHandle
, IUnknown
*parent
) PURE
;
361 STDMETHOD(CreateIndexBuffer
)(THIS_ UINT Length
, DWORD Usage
, WINED3DFORMAT Format
, WINED3DPOOL Pool
, struct IWineD3DIndexBuffer
** ppIndexBuffer
, HANDLE
* pSharedHandle
, IUnknown
*parent
) PURE
;
362 STDMETHOD(CreateStateBlock
)(THIS_ WINED3DSTATEBLOCKTYPE Type
, struct IWineD3DStateBlock
**ppStateBlock
, IUnknown
*parent
) PURE
;
363 STDMETHOD(CreateSurface
)(THIS_ UINT Width
, UINT Height
, WINED3DFORMAT Format
, BOOL Lockable
, BOOL Discard
, UINT Level
, struct IWineD3DSurface
** ppSurface
, WINED3DRESOURCETYPE Type
, DWORD Usage
, WINED3DPOOL Pool
, WINED3DMULTISAMPLE_TYPE MultiSample
,DWORD MultisampleQuality
, HANDLE
* pSharedHandle
, WINED3DSURFTYPE Impl
, IUnknown
*parent
) PURE
;
364 STDMETHOD(CreateTexture
)(THIS_ UINT Width
, UINT Height
, UINT Levels
, DWORD Usage
, WINED3DFORMAT Format
, WINED3DPOOL Pool
, struct IWineD3DTexture
** ppTexture
, HANDLE
* pSharedHandle
, IUnknown
*parent
, D3DCB_CREATESURFACEFN pFn
) PURE
;
365 STDMETHOD(CreateVolumeTexture
)(THIS_ UINT Width
, UINT Height
, UINT Depth
, UINT Levels
, DWORD Usage
, WINED3DFORMAT Format
, WINED3DPOOL Pool
, struct IWineD3DVolumeTexture
** ppVolumeTexture
, HANDLE
* pSharedHandle
, IUnknown
*parent
, D3DCB_CREATEVOLUMEFN pFn
) PURE
;
366 STDMETHOD(CreateVolume
)(THIS_ UINT Width
, UINT Height
, UINT Depth
, DWORD Usage
, WINED3DFORMAT Format
, WINED3DPOOL Pool
, struct IWineD3DVolume
** ppVolumeTexture
, HANDLE
* pSharedHandle
, IUnknown
*parent
) PURE
;
367 STDMETHOD(CreateCubeTexture
)(THIS_ UINT EdgeLength
, UINT Levels
, DWORD Usage
, WINED3DFORMAT Format
, WINED3DPOOL Pool
, struct IWineD3DCubeTexture
** ppCubeTexture
, HANDLE
* pSharedHandle
, IUnknown
*parent
, D3DCB_CREATESURFACEFN pFn
) PURE
;
368 STDMETHOD(CreateQuery
)(THIS_ WINED3DQUERYTYPE Type
, struct IWineD3DQuery
**ppQuery
, IUnknown
*pParent
);
369 STDMETHOD(CreateAdditionalSwapChain
)(THIS_ WINED3DPRESENT_PARAMETERS
*pPresentationParameters
, struct IWineD3DSwapChain
**pSwapChain
, IUnknown
*pParent
, D3DCB_CREATERENDERTARGETFN pFn
, D3DCB_CREATEDEPTHSTENCILSURFACEFN pFn2
);
370 STDMETHOD(CreateVertexDeclaration
)(THIS_
struct IWineD3DVertexDeclaration
** ppDecl
, IUnknown
* pParent
, const WINED3DVERTEXELEMENT
*elements
, UINT element_count
) PURE
;
371 STDMETHOD(CreateVertexDeclarationFromFVF
)(THIS_
struct IWineD3DVertexDeclaration
** ppDecl
, IUnknown
* pParent
, DWORD Fvf
) PURE
;
372 STDMETHOD(CreateVertexShader
)(THIS_
struct IWineD3DVertexDeclaration
*vertex_declaration
, CONST DWORD
* pFunction
, struct IWineD3DVertexShader
** ppShader
, IUnknown
*pParent
) PURE
;
373 STDMETHOD(CreatePixelShader
)(THIS_ CONST DWORD
* pFunction
, struct IWineD3DPixelShader
** ppShader
, IUnknown
*pParent
) PURE
;
374 STDMETHOD_(HRESULT
,CreatePalette
)(THIS_ DWORD Flags
, PALETTEENTRY
*PalEnt
, struct IWineD3DPalette
**Palette
, IUnknown
*Parent
);
375 STDMETHOD(Init3D
)(THIS_ WINED3DPRESENT_PARAMETERS
* pPresentationParameters
, D3DCB_CREATEADDITIONALSWAPCHAIN D3DCB_CreateAdditionalSwapChain
);
376 STDMETHOD(Uninit3D
)(THIS
, D3DCB_DESTROYSURFACEFN pFn
, D3DCB_DESTROYSWAPCHAINFN pFn2
);
377 STDMETHOD_(void, SetFullscreen
)(THIS_ BOOL fullscreen
);
378 STDMETHOD_(void, SetMultithreaded
)(THIS
);
379 STDMETHOD(EvictManagedResources
)(THIS
) PURE
;
380 STDMETHOD_(UINT
, GetAvailableTextureMem
)(THIS
) PURE
;
381 STDMETHOD(GetBackBuffer
)(THIS_ UINT iSwapChain
, UINT BackBuffer
, WINED3DBACKBUFFER_TYPE
, struct IWineD3DSurface
** ppBackBuffer
) PURE
;
382 STDMETHOD(GetCreationParameters
)(THIS_ WINED3DDEVICE_CREATION_PARAMETERS
*pParameters
) PURE
;
383 STDMETHOD(GetDeviceCaps
)(THIS_ WINED3DCAPS
* pCaps
) PURE
;
384 STDMETHOD(GetDirect3D
)(THIS_ IWineD3D
** ppD3D
) PURE
;
385 STDMETHOD(GetDisplayMode
)(THIS_ UINT iSwapChain
, WINED3DDISPLAYMODE
* pMode
) PURE
;
386 STDMETHOD(SetDisplayMode
)(THIS_ UINT iSwapChain
, WINED3DDISPLAYMODE
* pMode
) PURE
;
387 STDMETHOD(GetHWND
)(THIS_ HWND
*hwnd
) PURE
;
388 STDMETHOD(SetHWND
)(THIS_ HWND hwnd
) PURE
;
389 STDMETHOD_(UINT
, GetNumberOfSwapChains
)(THIS
) PURE
;
390 STDMETHOD(GetRasterStatus
)(THIS_ UINT iSwapChain
, WINED3DRASTER_STATUS
* pRasterStatus
) PURE
;
391 STDMETHOD(GetSwapChain
)(THIS_ UINT iSwapChain
, struct IWineD3DSwapChain
**pSwapChain
) PURE
;
392 STDMETHOD(Reset
)(THIS_ WINED3DPRESENT_PARAMETERS
* pPresentationParameters
) PURE
;
393 STDMETHOD(SetDialogBoxMode
)(THIS_ BOOL bEnableDialogs
) PURE
;
394 STDMETHOD(SetCursorProperties
)(THIS_ UINT XHotSpot
, UINT YHotSpot
, struct IWineD3DSurface
* pCursorBitmap
) PURE
;
395 STDMETHOD_(void, SetCursorPosition
)(THIS_
int XScreenSpace
, int YScreenSpace
, DWORD Flags
) PURE
;
396 STDMETHOD_(BOOL
, ShowCursor
)(THIS_ BOOL bShow
) PURE
;
397 STDMETHOD(TestCooperativeLevel
)(THIS
) PURE
;
398 STDMETHOD(SetClipPlane
)(THIS_ DWORD Index
,CONST
float * pPlane
) PURE
;
399 STDMETHOD(GetClipPlane
)(THIS_ DWORD Index
,float * pPlane
) PURE
;
400 STDMETHOD(SetClipStatus
)(THIS_ CONST WINED3DCLIPSTATUS
* pClipStatus
) PURE
;
401 STDMETHOD(GetClipStatus
)(THIS_ WINED3DCLIPSTATUS
* pClipStatus
) PURE
;
402 STDMETHOD(SetCurrentTexturePalette
)(THIS_ UINT PaletteNumber
) PURE
;
403 STDMETHOD(GetCurrentTexturePalette
)(THIS_ UINT
*PaletteNumber
) PURE
;
404 STDMETHOD(SetDepthStencilSurface
)(THIS_
struct IWineD3DSurface
* pNewZStencil
) PURE
;
405 STDMETHOD(GetDepthStencilSurface
)(THIS_
struct IWineD3DSurface
** ppZStencilSurface
) PURE
;
406 STDMETHOD(SetFVF
)(THIS_ DWORD fvf
) PURE
;
407 STDMETHOD(GetFVF
)(THIS_ DWORD
* pfvf
) PURE
;
408 STDMETHOD_(void, SetGammaRamp
)(THIS_ UINT iSwapChain
, DWORD Flags
, CONST WINED3DGAMMARAMP
* pRamp
) PURE
;
409 STDMETHOD_(void, GetGammaRamp
)(THIS_ UINT iSwapChain
, WINED3DGAMMARAMP
* pRamp
) PURE
;
410 STDMETHOD(SetIndices
)(THIS_
struct IWineD3DIndexBuffer
* pIndexData
) PURE
;
411 STDMETHOD(GetIndices
)(THIS_
struct IWineD3DIndexBuffer
** ppIndexData
) PURE
;
412 STDMETHOD(SetBaseVertexIndex
)(THIS_ INT baseIndex
);
413 STDMETHOD(GetBaseVertexIndex
)(THIS_ INT
*baseIndex
);
414 STDMETHOD(SetLight
)(THIS_ DWORD Index
,CONST WINED3DLIGHT
* pLight
) PURE
;
415 STDMETHOD(GetLight
)(THIS_ DWORD Index
,WINED3DLIGHT
* pLight
) PURE
;
416 STDMETHOD(SetLightEnable
)(THIS_ DWORD Index
,BOOL Enable
) PURE
;
417 STDMETHOD(GetLightEnable
)(THIS_ DWORD Index
,BOOL
* pEnable
) PURE
;
418 STDMETHOD(SetMaterial
)(THIS_ CONST WINED3DMATERIAL
* pMaterial
) PURE
;
419 STDMETHOD(GetMaterial
)(THIS_ WINED3DMATERIAL
*pMaterial
) PURE
;
420 STDMETHOD(SetNPatchMode
)(THIS_
float nSegments
) PURE
;
421 STDMETHOD_(float, GetNPatchMode
)(THIS
) PURE
;
422 STDMETHOD(SetPaletteEntries
)(THIS_ UINT PaletteNumber
, CONST PALETTEENTRY
* pEntries
) PURE
;
423 STDMETHOD(GetPaletteEntries
)(THIS_ UINT PaletteNumber
,PALETTEENTRY
* pEntries
) PURE
;
424 STDMETHOD(SetPixelShader
)(THIS_
struct IWineD3DPixelShader
*pShader
) PURE
;
425 STDMETHOD(GetPixelShader
)(THIS_
struct IWineD3DPixelShader
**ppShader
) PURE
;
426 STDMETHOD(SetPixelShaderConstantB
)(THIS_ UINT StartRegister
, CONST BOOL
* pConstantData
, UINT BoolCount
) PURE
;
427 STDMETHOD(GetPixelShaderConstantB
)(THIS_ UINT StartRegister
, BOOL
* pConstantData
, UINT BoolCount
) PURE
;
428 STDMETHOD(SetPixelShaderConstantI
)(THIS_ UINT StartRegister
, CONST
int* pConstantData
, UINT Vector4iCount
) PURE
;
429 STDMETHOD(GetPixelShaderConstantI
)(THIS_ UINT StartRegister
, int* pConstantData
, UINT Vector4iCount
) PURE
;
430 STDMETHOD(SetPixelShaderConstantF
)(THIS_ UINT StartRegister
, CONST
float* pConstantData
, UINT Vector4fCount
) PURE
;
431 STDMETHOD(GetPixelShaderConstantF
)(THIS_ UINT StartRegister
, float* pConstantData
, UINT Vector4fCount
) PURE
;
432 STDMETHOD(SetRenderState
)(THIS_ WINED3DRENDERSTATETYPE State
, DWORD Value
) PURE
;
433 STDMETHOD(GetRenderState
)(THIS_ WINED3DRENDERSTATETYPE State
, DWORD
* pValue
) PURE
;
434 STDMETHOD(SetRenderTarget
)(THIS_ DWORD RenderTargetIndex
, struct IWineD3DSurface
* pRenderTarget
) PURE
;
435 STDMETHOD(GetRenderTarget
)(THIS_ DWORD RenderTargetIndex
, struct IWineD3DSurface
** ppRenderTarget
) PURE
;
436 STDMETHOD(SetFrontBackBuffers
)(THIS_
struct IWineD3DSurface
*Front
, struct IWineD3DSurface
*Back
) PURE
;
437 STDMETHOD(SetSamplerState
)(THIS_ DWORD Sampler
, WINED3DSAMPLERSTATETYPE Type
, DWORD Value
) PURE
;
438 STDMETHOD(GetSamplerState
)(THIS_ DWORD Sampler
, WINED3DSAMPLERSTATETYPE Type
, DWORD
* Value
) PURE
;
439 STDMETHOD(SetScissorRect
)(THIS_ CONST RECT
* pRect
) PURE
;
440 STDMETHOD(GetScissorRect
)(THIS_ RECT
* pRect
) PURE
;
441 STDMETHOD(SetSoftwareVertexProcessing
)(THIS_ BOOL bSoftware
) PURE
;
442 STDMETHOD_(BOOL
, GetSoftwareVertexProcessing
)(THIS
) PURE
;
443 STDMETHOD(SetStreamSource
)(THIS_ UINT StreamNumber
,struct IWineD3DVertexBuffer
* pStreamData
,UINT Offset
,UINT Stride
) PURE
;
444 STDMETHOD(GetStreamSource
)(THIS_ UINT StreamNumber
,struct IWineD3DVertexBuffer
** ppStreamData
,UINT
*pOffset
, UINT
* pStride
) PURE
;
445 STDMETHOD(SetStreamSourceFreq
)(THIS_ UINT StreamNumber
, UINT Divider
) PURE
;
446 STDMETHOD(GetStreamSourceFreq
)(THIS_ UINT StreamNumber
, UINT
* Divider
) PURE
;
447 STDMETHOD(SetTexture
)(THIS_ DWORD Stage
, struct IWineD3DBaseTexture
* pTexture
) PURE
;
448 STDMETHOD(GetTexture
)(THIS_ DWORD Stage
, struct IWineD3DBaseTexture
** ppTexture
) PURE
;
449 STDMETHOD(SetTextureStageState
)(THIS_ DWORD Stage
, WINED3DTEXTURESTAGESTATETYPE Type
,DWORD Value
) PURE
;
450 STDMETHOD(GetTextureStageState
)(THIS_ DWORD Stage
, WINED3DTEXTURESTAGESTATETYPE Type
,DWORD
*pValue
) PURE
;
451 STDMETHOD(SetTransform
)(THIS_ WINED3DTRANSFORMSTATETYPE State
, CONST WINED3DMATRIX
* pMatrix
) PURE
;
452 STDMETHOD(GetTransform
)(THIS_ WINED3DTRANSFORMSTATETYPE State
, WINED3DMATRIX
* pMatrix
) PURE
;
453 STDMETHOD(SetVertexDeclaration
)(THIS_
struct IWineD3DVertexDeclaration
* pDecl
) PURE
;
454 STDMETHOD(GetVertexDeclaration
)(THIS_
struct IWineD3DVertexDeclaration
** ppDecl
) PURE
;
455 STDMETHOD(SetVertexShader
)(THIS_
struct IWineD3DVertexShader
* pShader
) PURE
;
456 STDMETHOD(GetVertexShader
)(THIS_
struct IWineD3DVertexShader
** ppShader
) PURE
;
457 STDMETHOD(SetVertexShaderConstantB
)(THIS_ UINT StartRegister
, CONST BOOL
* pConstantData
, UINT BoolCount
) PURE
;
458 STDMETHOD(GetVertexShaderConstantB
)(THIS_ UINT StartRegister
, BOOL
* pConstantData
, UINT BoolCount
) PURE
;
459 STDMETHOD(SetVertexShaderConstantI
)(THIS_ UINT StartRegister
, CONST
int* pConstantData
, UINT Vector4iCount
) PURE
;
460 STDMETHOD(GetVertexShaderConstantI
)(THIS_ UINT StartRegister
, int* pConstantData
, UINT Vector4iCount
) PURE
;
461 STDMETHOD(SetVertexShaderConstantF
)(THIS_ UINT StartRegister
, CONST
float* pConstantData
, UINT Vector4fCount
) PURE
;
462 STDMETHOD(GetVertexShaderConstantF
)(THIS_ UINT StartRegister
, float* pConstantData
, UINT Vector4fCount
) PURE
;
463 STDMETHOD(SetViewport
)(THIS_ CONST WINED3DVIEWPORT
* pViewport
) PURE
;
464 STDMETHOD(GetViewport
)(THIS_ WINED3DVIEWPORT
* pViewport
) PURE
;
465 STDMETHOD(MultiplyTransform
)(THIS_ WINED3DTRANSFORMSTATETYPE State
, CONST WINED3DMATRIX
* pMatrix
) PURE
;
466 STDMETHOD(ValidateDevice
)(THIS_ DWORD
* pNumPasses
) PURE
;
467 STDMETHOD(ProcessVertices
)(THIS_ UINT SrcStartIndex
, UINT DestIndex
, UINT VertexCount
, struct IWineD3DVertexBuffer
* pDestBuffer
, struct IWineD3DVertexDeclaration
* pVertexDecl
, DWORD Flags
) PURE
;
468 STDMETHOD(BeginStateBlock
)(THIS
) PURE
;
469 STDMETHOD(EndStateBlock
)(THIS_
struct IWineD3DStateBlock
** ppStateBlock
) PURE
;
470 STDMETHOD(BeginScene
)(THIS
) PURE
;
471 STDMETHOD(EndScene
)(THIS
) PURE
;
472 STDMETHOD(Present
)(THIS_ CONST RECT
* pSourceRect
,CONST RECT
* pDestRect
,HWND hDestWindowOverride
,CONST RGNDATA
* pDirtyRegion
) PURE
;
473 STDMETHOD(Clear
)(THIS_ DWORD Count
, CONST WINED3DRECT
* pRects
, DWORD Flags
, WINED3DCOLOR Color
, float Z
, DWORD Stencil
) PURE
;
474 STDMETHOD(DrawPrimitive
)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType
, UINT StartVertex
, UINT PrimitiveCount
) PURE
;
475 STDMETHOD(DrawIndexedPrimitive
)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType
, UINT minIndex
, UINT NumVertices
, UINT startIndex
, UINT primCount
) PURE
;
476 STDMETHOD(DrawPrimitiveUP
)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType
, UINT PrimitiveCount
, CONST
void * pVertexStreamZeroData
, UINT VertexStreamZeroStride
) PURE
;
477 STDMETHOD(DrawIndexedPrimitiveUP
)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType
, UINT MinVertexIndex
, UINT NumVertexIndices
, UINT PrimitiveCount
, CONST
void * pIndexData
, WINED3DFORMAT IndexDataFormat
, CONST
void * pVertexStreamZeroData
, UINT VertexStreamZeroStride
) PURE
;
478 STDMETHOD(DrawPrimitiveStrided
)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType
, UINT PrimitiveCount
, WineDirect3DVertexStridedData
*DrawPrimStrideData
) PURE
;
479 STDMETHOD(DrawIndexedPrimitiveStrided
)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType
, UINT PrimitiveCount
, WineDirect3DVertexStridedData
*DrawPrimStrideData
, UINT NumVertices
, CONST
void *pIndexData
, WINED3DFORMAT IndexDataFormat
) PURE
;
480 STDMETHOD(DrawRectPatch
)(THIS_ UINT Handle
, CONST
float* pNumSegs
, CONST WINED3DRECTPATCH_INFO
* pRectPatchInfo
) PURE
;
481 STDMETHOD(DrawTriPatch
)(THIS_ UINT Handle
, CONST
float* pNumSegs
, CONST WINED3DTRIPATCH_INFO
* pTriPatchInfo
) PURE
;
482 STDMETHOD(DeletePatch
)(THIS_ UINT Handle
) PURE
;
483 STDMETHOD(ColorFill
)(THIS_
struct IWineD3DSurface
* pSurface
, CONST WINED3DRECT
* pRect
, WINED3DCOLOR color
) PURE
;
484 STDMETHOD(UpdateTexture
)(THIS_
struct IWineD3DBaseTexture
*pSourceTexture
, struct IWineD3DBaseTexture
*pDestinationTexture
) PURE
;
485 STDMETHOD(UpdateSurface
)(THIS_
struct IWineD3DSurface
* pSourceSurface
, CONST RECT
* pSourceRect
, struct IWineD3DSurface
* pDestinationSurface
, CONST POINT
* pDestPoint
) PURE
;
486 STDMETHOD(GetFrontBufferData
)(THIS_ UINT iSwapChain
,struct IWineD3DSurface
* pSurface
) PURE
;
487 /*** object tracking ***/
488 STDMETHOD_(void, ResourceReleased
)(THIS_
struct IWineD3DResource
*resource
);
489 STDMETHOD(EnumResources
)(THIS_ D3DCB_ENUMRESOURCES pCallback
, void *pData
);
493 #if !defined(__cplusplus) || defined(CINTERFACE)
494 /*** IUnknown methods ***/
495 #define IWineD3DDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
496 #define IWineD3DDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
497 #define IWineD3DDevice_Release(p) (p)->lpVtbl->Release(p)
498 /*** IWineD3DBase methods ***/
499 #define IWineD3DDevice_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
500 /*** IWineD3DDevice methods ***/
501 #define IWineD3DDevice_CreateVertexBuffer(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f,g)
502 #define IWineD3DDevice_CreateIndexBuffer(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f,g)
503 #define IWineD3DDevice_CreateStateBlock(p,a,b,c) (p)->lpVtbl->CreateStateBlock(p,a,b,c)
504 #define IWineD3DDevice_CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) (p)->lpVtbl->CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o)
505 #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)
506 #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)
507 #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)
508 #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)
509 #define IWineD3DDevice_CreateQuery(p,a,b,c) (p)->lpVtbl->CreateQuery(p,a,b,c)
510 #define IWineD3DDevice_CreateAdditionalSwapChain(p,a,b,c,d,e) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b,c,d,e)
511 #define IWineD3DDevice_CreateVertexDeclaration(p,a,b,c,d) (p)->lpVtbl->CreateVertexDeclaration(p,a,b,c,d)
512 #define IWineD3DDevice_CreateVertexDeclarationFromFVF(p,a,b,c) (p)->lpVtbl->CreateVertexDeclarationFromFVF(p,a,b,c)
513 #define IWineD3DDevice_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d)
514 #define IWineD3DDevice_CreatePixelShader(p,a,b,c) (p)->lpVtbl->CreatePixelShader(p,a,b,c)
515 #define IWineD3DDevice_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
516 #define IWineD3DDevice_Init3D(p, a, b) (p)->lpVtbl->Init3D(p, a, b)
517 #define IWineD3DDevice_Uninit3D(p, a, b) (p)->lpVtbl->Uninit3D(p, a, b)
518 #define IWineD3DDevice_SetFullscreen(p, a) (p)->lpVtbl->SetFullscreen(p, a)
519 #define IWineD3DDevice_SetMultithreaded(p) (p)->lpVtbl->SetMultithreaded(p)
520 #define IWineD3DDevice_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
521 #define IWineD3DDevice_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
522 #define IWineD3DDevice_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
523 #define IWineD3DDevice_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
524 #define IWineD3DDevice_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
525 #define IWineD3DDevice_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
526 #define IWineD3DDevice_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
527 #define IWineD3DDevice_SetDisplayMode(p,a,b) (p)->lpVtbl->SetDisplayMode(p,a,b)
528 #define IWineD3DDevice_GetHWND(p, a) (p)->lpVtbl->GetHWND(p, a)
529 #define IWineD3DDevice_SetHWND(p, a) (p)->lpVtbl->SetHWND(p, a)
530 #define IWineD3DDevice_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
531 #define IWineD3DDevice_Reset(p,a) (p)->lpVtbl->Reset(p,a)
532 #define IWineD3DDevice_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
533 #define IWineD3DDevice_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
534 #define IWineD3DDevice_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
535 #define IWineD3DDevice_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
536 #define IWineD3DDevice_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
537 #define IWineD3DDevice_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
538 #define IWineD3DDevice_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
539 #define IWineD3DDevice_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
540 #define IWineD3DDevice_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
541 #define IWineD3DDevice_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
542 #define IWineD3DDevice_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
543 #define IWineD3DDevice_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
544 #define IWineD3DDevice_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
545 #define IWineD3DDevice_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
546 #define IWineD3DDevice_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
547 #define IWineD3DDevice_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
548 #define IWineD3DDevice_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
549 #define IWineD3DDevice_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
550 #define IWineD3DDevice_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
551 #define IWineD3DDevice_SetBaseVertexIndex(p, a) (p)->lpVtbl->SetBaseVertexIndex(p, a)
552 #define IWineD3DDevice_GetBaseVertexIndex(p,a) (p)->lpVtbl->GetBaseVertexIndex(p,a)
553 #define IWineD3DDevice_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
554 #define IWineD3DDevice_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
555 #define IWineD3DDevice_SetLightEnable(p,a,b) (p)->lpVtbl->SetLightEnable(p,a,b)
556 #define IWineD3DDevice_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
557 #define IWineD3DDevice_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
558 #define IWineD3DDevice_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
559 #define IWineD3DDevice_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
560 #define IWineD3DDevice_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
561 #define IWineD3DDevice_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
562 #define IWineD3DDevice_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
563 #define IWineD3DDevice_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
564 #define IWineD3DDevice_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
565 #define IWineD3DDevice_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
566 #define IWineD3DDevice_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
567 #define IWineD3DDevice_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
568 #define IWineD3DDevice_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
569 #define IWineD3DDevice_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
570 #define IWineD3DDevice_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
571 #define IWineD3DDevice_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
572 #define IWineD3DDevice_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
573 #define IWineD3DDevice_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
574 #define IWineD3DDevice_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
575 #define IWineD3DDevice_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
576 #define IWineD3DDevice_SetFrontBackBuffers(p, a, b) (p)->lpVtbl->SetFrontBackBuffers(p,a,b);
577 #define IWineD3DDevice_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
578 #define IWineD3DDevice_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
579 #define IWineD3DDevice_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
580 #define IWineD3DDevice_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
581 #define IWineD3DDevice_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
582 #define IWineD3DDevice_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
583 #define IWineD3DDevice_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
584 #define IWineD3DDevice_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
585 #define IWineD3DDevice_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
586 #define IWineD3DDevice_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
587 #define IWineD3DDevice_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
588 #define IWineD3DDevice_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
589 #define IWineD3DDevice_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
590 #define IWineD3DDevice_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
591 #define IWineD3DDevice_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
592 #define IWineD3DDevice_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
593 #define IWineD3DDevice_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
594 #define IWineD3DDevice_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
595 #define IWineD3DDevice_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
596 #define IWineD3DDevice_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
597 #define IWineD3DDevice_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
598 #define IWineD3DDevice_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
599 #define IWineD3DDevice_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
600 #define IWineD3DDevice_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
601 #define IWineD3DDevice_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
602 #define IWineD3DDevice_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
603 #define IWineD3DDevice_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
604 #define IWineD3DDevice_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
605 #define IWineD3DDevice_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
606 #define IWineD3DDevice_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
607 #define IWineD3DDevice_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
608 #define IWineD3DDevice_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
609 #define IWineD3DDevice_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
610 #define IWineD3DDevice_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
611 #define IWineD3DDevice_BeginScene(p) (p)->lpVtbl->BeginScene(p)
612 #define IWineD3DDevice_EndScene(p) (p)->lpVtbl->EndScene(p)
613 #define IWineD3DDevice_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
614 #define IWineD3DDevice_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
615 #define IWineD3DDevice_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
616 #define IWineD3DDevice_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e)
617 #define IWineD3DDevice_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
618 #define IWineD3DDevice_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
619 #define IWineD3DDevice_DrawPrimitiveStrided(p,a,b,c) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c)
620 #define IWineD3DDevice_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f)
621 #define IWineD3DDevice_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
622 #define IWineD3DDevice_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
623 #define IWineD3DDevice_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
624 #define IWineD3DDevice_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
625 #define IWineD3DDevice_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
626 #define IWineD3DDevice_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
627 #define IWineD3DDevice_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
628 #define IWineD3DDevice_ResourceReleased(p,a) (p)->lpVtbl->ResourceReleased(p,a)
629 #define IWineD3DDevice_EnumResources(p,a,b) (p)->lpVtbl->EnumResources(p,a,b)
632 /*****************************************************************************
633 * WineD3DResource interface
635 #define INTERFACE IWineD3DResource
636 DECLARE_INTERFACE_(IWineD3DResource
,IWineD3DBase
)
638 /*** IUnknown methods ***/
639 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
640 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
641 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
642 /*** IWineD3DBase methods ***/
643 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
644 /*** IWineD3DResource methods ***/
645 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
646 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void * pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
647 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void * pData
, DWORD
* pSizeOfData
) PURE
;
648 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
649 STDMETHOD_(DWORD
,SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
650 STDMETHOD_(DWORD
,GetPriority
)(THIS
) PURE
;
651 STDMETHOD_(void,PreLoad
)(THIS
) PURE
;
652 STDMETHOD_(void,UnLoad
)(THIS
) PURE
;
653 STDMETHOD_(WINED3DRESOURCETYPE
,GetType
)(THIS
) PURE
;
657 #if !defined(__cplusplus) || defined(CINTERFACE)
658 /*** IUnknown methods ***/
659 #define IWineD3DResource_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
660 #define IWineD3DResource_AddRef(p) (p)->lpVtbl->AddRef(p)
661 #define IWineD3DResource_Release(p) (p)->lpVtbl->Release(p)
662 /*** IWineD3DBase methods ***/
663 #define IWineD3DResource_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
664 /*** IWineD3DResource methods ***/
665 #define IWineD3DResource_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
666 #define IWineD3DResource_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
667 #define IWineD3DResource_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
668 #define IWineD3DResource_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
669 #define IWineD3DResource_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
670 #define IWineD3DResource_GetPriority(p) (p)->lpVtbl->GetPriority(p)
671 #define IWineD3DResource_PreLoad(p) (p)->lpVtbl->PreLoad(p)
672 #define IWineD3DResource_UnLoad(p) (p)->lpVtbl->UnLoad(p)
673 #define IWineD3DResource_GetType(p) (p)->lpVtbl->GetType(p)
676 /*****************************************************************************
677 * WineD3DVertexBuffer interface
679 #define INTERFACE IWineD3DVertexBuffer
680 DECLARE_INTERFACE_(IWineD3DVertexBuffer
,IWineD3DResource
)
682 /*** IUnknown methods ***/
683 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
684 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
685 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
686 /*** IWineD3DBase methods ***/
687 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
688 /*** IWineD3DResource methods ***/
689 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
690 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void * pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
691 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void * pData
, DWORD
* pSizeOfData
) PURE
;
692 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
693 STDMETHOD_(DWORD
,SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
694 STDMETHOD_(DWORD
,GetPriority
)(THIS
) PURE
;
695 STDMETHOD_(void,PreLoad
)(THIS
) PURE
;
696 STDMETHOD_(void,UnLoad
)(THIS
) PURE
;
697 STDMETHOD_(WINED3DRESOURCETYPE
,GetType
)(THIS
) PURE
;
698 /*** IWineD3DVertexBuffer methods ***/
699 STDMETHOD(Lock
)(THIS_ UINT OffsetToLock
, UINT SizeToLock
, BYTE
** ppbData
, DWORD Flags
) PURE
;
700 STDMETHOD(Unlock
)(THIS
) PURE
;
701 STDMETHOD(GetDesc
)(THIS_ WINED3DVERTEXBUFFER_DESC
* pDesc
) PURE
;
705 #if !defined(__cplusplus) || defined(CINTERFACE)
706 /*** IUnknown methods ***/
707 #define IWineD3DVertexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
708 #define IWineD3DVertexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
709 #define IWineD3DVertexBuffer_Release(p) (p)->lpVtbl->Release(p)
710 /*** IWineD3DBase methods ***/
711 #define IWineD3DVertexBuffer_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
712 /*** IWineD3DResource methods ***/
713 #define IWineD3DVertexBuffer_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
714 #define IWineD3DVertexBuffer_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
715 #define IWineD3DVertexBuffer_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
716 #define IWineD3DVertexBuffer_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
717 #define IWineD3DVertexBuffer_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
718 #define IWineD3DVertexBuffer_GetPriority(p) (p)->lpVtbl->GetPriority(p)
719 #define IWineD3DVertexBuffer_PreLoad(p) (p)->lpVtbl->PreLoad(p)
720 #define IWineD3DVertexBuffer_UnLoad(p) (p)->lpVtbl->UnLoad(p)
721 #define IWineD3DVertexBuffer_GetType(p) (p)->lpVtbl->GetType(p)
722 /*** IWineD3DVertexBuffer methods ***/
723 #define IWineD3DVertexBuffer_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
724 #define IWineD3DVertexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
725 #define IWineD3DVertexBuffer_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
728 /*****************************************************************************
729 * WineD3DIndexBuffer interface
731 #define INTERFACE IWineD3DIndexBuffer
732 DECLARE_INTERFACE_(IWineD3DIndexBuffer
,IWineD3DResource
)
734 /*** IUnknown methods ***/
735 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
736 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
737 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
738 /*** IWineD3DBase methods ***/
739 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
740 /*** IWineD3DResource methods ***/
741 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
742 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void * pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
743 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void * pData
, DWORD
* pSizeOfData
) PURE
;
744 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
745 STDMETHOD_(DWORD
,SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
746 STDMETHOD_(DWORD
,GetPriority
)(THIS
) PURE
;
747 STDMETHOD_(void,PreLoad
)(THIS
) PURE
;
748 STDMETHOD_(void,UnLoad
)(THIS
) PURE
;
749 STDMETHOD_(WINED3DRESOURCETYPE
,GetType
)(THIS
) PURE
;
750 /*** IWineD3DIndexBuffer methods ***/
751 STDMETHOD(Lock
)(THIS_ UINT OffsetToLock
, UINT SizeToLock
, BYTE
** ppbData
, DWORD Flags
) PURE
;
752 STDMETHOD(Unlock
)(THIS
) PURE
;
753 STDMETHOD(GetDesc
)(THIS_ WINED3DINDEXBUFFER_DESC
* pDesc
) PURE
;
757 #if !defined(__cplusplus) || defined(CINTERFACE)
758 /*** IUnknown methods ***/
759 #define IWineD3DIndexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
760 #define IWineD3DIndexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
761 #define IWineD3DIndexBuffer_Release(p) (p)->lpVtbl->Release(p)
762 /*** IWineD3DBase methods ***/
763 #define IWineD3DIndexBuffer_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
764 /*** IWineD3DResource methods ***/
765 #define IWineD3DIndexBuffer_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
766 #define IWineD3DIndexBuffer_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
767 #define IWineD3DIndexBuffer_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
768 #define IWineD3DIndexBuffer_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
769 #define IWineD3DIndexBuffer_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
770 #define IWineD3DIndexBuffer_GetPriority(p) (p)->lpVtbl->GetPriority(p)
771 #define IWineD3DIndexBuffer_PreLoad(p) (p)->lpVtbl->PreLoad(p)
772 #define IWineD3DIndexBuffer_UnLoad(p) (p)->lpVtbl->UnLoad(p)
773 #define IWineD3DIndexBuffer_GetType(p) (p)->lpVtbl->GetType(p)
774 /*** IWineD3DIndexBuffer methods ***/
775 #define IWineD3DIndexBuffer_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
776 #define IWineD3DIndexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
777 #define IWineD3DIndexBuffer_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
780 /*****************************************************************************
781 * IWineD3DBaseTexture interface
782 * Note at d3d8 this does NOT extend Resource, but at d3d9 it does
783 * since most functions are common anyway, it makes sense to extend it
785 #define INTERFACE IWineD3DBaseTexture
786 DECLARE_INTERFACE_(IWineD3DBaseTexture
,IWineD3DResource
)
788 /*** IUnknown methods ***/
789 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
790 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
791 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
792 /*** IWineD3DBase methods ***/
793 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
794 /*** IWineD3DResource methods ***/
795 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
796 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void * pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
797 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void * pData
, DWORD
* pSizeOfData
) PURE
;
798 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
799 STDMETHOD_(DWORD
,SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
800 STDMETHOD_(DWORD
,GetPriority
)(THIS
) PURE
;
801 STDMETHOD_(void,PreLoad
)(THIS
) PURE
;
802 STDMETHOD_(void,UnLoad
)(THIS
) PURE
;
803 STDMETHOD_(WINED3DRESOURCETYPE
,GetType
)(THIS
) PURE
;
804 /*** IWineD3DBaseTexture methods ***/
805 STDMETHOD_(DWORD
, SetLOD
)(THIS_ DWORD LODNew
) PURE
;
806 STDMETHOD_(DWORD
, GetLOD
)(THIS
) PURE
;
807 STDMETHOD_(DWORD
, GetLevelCount
)(THIS
) PURE
;
808 STDMETHOD(SetAutoGenFilterType
)(THIS_ WINED3DTEXTUREFILTERTYPE FilterType
) PURE
;
809 STDMETHOD_(WINED3DTEXTUREFILTERTYPE
, GetAutoGenFilterType
)(THIS
) PURE
;
810 STDMETHOD_(void, GenerateMipSubLevels
)(THIS
) PURE
;
811 STDMETHOD_(BOOL
, SetDirty
)(THIS_ BOOL
) PURE
;
812 STDMETHOD_(BOOL
, GetDirty
)(THIS
) PURE
;
813 STDMETHOD(BindTexture
)(THIS
) PURE
;
814 STDMETHOD(UnBindTexture
)(THIS
) PURE
;
815 STDMETHOD_(UINT
, GetTextureDimensions
)(THIS
) PURE
;
816 STDMETHOD_(void, ApplyStateChanges
)(THIS_
const DWORD textureStates
[WINED3D_HIGHEST_TEXTURE_STATE
+ 1], const DWORD samplerStates
[WINED3D_HIGHEST_SAMPLER_STATE
+ 1]) PURE
;
821 #if !defined(__cplusplus) || defined(CINTERFACE)
822 /*** IUnknown methods ***/
823 #define IWineD3DBaseTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
824 #define IWineD3DBaseTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
825 #define IWineD3DBaseTexture_Release(p) (p)->lpVtbl->Release(p)
826 /*** IWineD3DBase methods ***/
827 #define IWineD3DBaseTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
828 /*** IWineD3DBaseTexture methods: IWineD3DResource ***/
829 #define IWineD3DBaseTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
830 #define IWineD3DBaseTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
831 #define IWineD3DBaseTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
832 #define IWineD3DBaseTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
833 #define IWineD3DBaseTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
834 #define IWineD3DBaseTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
835 #define IWineD3DBaseTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
836 #define IWineD3DBaseTexture_UnLoad(p) (p)->lpVtbl->UnLoad(p)
837 #define IWineD3DBaseTexture_GetType(p) (p)->lpVtbl->GetType(p)
838 /*** IWineD3DBaseTexture methods ***/
839 #define IWineD3DBaseTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
840 #define IWineD3DBaseTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
841 #define IWineD3DBaseTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
842 #define IWineD3DBaseTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
843 #define IWineD3DBaseTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
844 #define IWineD3DBaseTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
845 #define IWineD3DBaseTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
846 #define IWineD3DBaseTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
847 /*** internal methods ***/
848 #define IWineD3DBaseTexture_BindTexture(p) (p)->lpVtbl->BindTexture(p)
849 #define IWineD3DBaseTexture_UnBindTexture(p) (p)->lpVtbl->UnBindTexture(p)
850 #define IWineD3DBaseTexture_GetTextureDimensions(p) (p)->lpVtbl->GetTextureDimensions(p)
851 #define IWineD3DBaseTexture_ApplyStateChanges(p,a,b) (p)->lpVtbl->ApplyStateChanges(p,a,b)
854 /*****************************************************************************
855 * IWineD3DTexture interface
857 #define INTERFACE IWineD3DTexture
858 DECLARE_INTERFACE_(IWineD3DTexture
,IWineD3DBaseTexture
)
860 /*** IUnknown methods ***/
861 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
862 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
863 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
864 /*** IWineD3DBase methods ***/
865 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
866 /*** IWineD3DResource methods ***/
867 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
868 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void * pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
869 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void * pData
, DWORD
* pSizeOfData
) PURE
;
870 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
871 STDMETHOD_(DWORD
,SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
872 STDMETHOD_(DWORD
,GetPriority
)(THIS
) PURE
;
873 STDMETHOD_(void,PreLoad
)(THIS
) PURE
;
874 STDMETHOD_(void,UnLoad
)(THIS
) PURE
;
875 STDMETHOD_(WINED3DRESOURCETYPE
,GetType
)(THIS
) PURE
;
876 /*** IWineD3DBaseTexture methods ***/
877 STDMETHOD_(DWORD
, SetLOD
)(THIS_ DWORD LODNew
) PURE
;
878 STDMETHOD_(DWORD
, GetLOD
)(THIS
) PURE
;
879 STDMETHOD_(DWORD
, GetLevelCount
)(THIS
) PURE
;
880 STDMETHOD(SetAutoGenFilterType
)(THIS_ WINED3DTEXTUREFILTERTYPE FilterType
) PURE
;
881 STDMETHOD_(WINED3DTEXTUREFILTERTYPE
, GetAutoGenFilterType
)(THIS
) PURE
;
882 STDMETHOD_(void, GenerateMipSubLevels
)(THIS
) PURE
;
883 STDMETHOD_(BOOL
, SetDirty
)(THIS_ BOOL
) PURE
;
884 STDMETHOD_(BOOL
, GetDirty
)(THIS
) PURE
;
885 STDMETHOD(BindTexture
)(THIS
) PURE
;
886 STDMETHOD(UnBindTexture
)(THIS
) PURE
;
887 STDMETHOD_(UINT
, GetTextureDimensions
)(THIS
) PURE
;
888 STDMETHOD_(void, ApplyStateChanges
)(THIS_
const DWORD textureStates
[WINED3D_HIGHEST_TEXTURE_STATE
+ 1], const DWORD samplerStates
[WINED3D_HIGHEST_SAMPLER_STATE
+ 1]) PURE
;
889 /*** IWineD3DTexture methods ***/
890 STDMETHOD_(void, Destroy
)(THIS_ D3DCB_DESTROYSURFACEFN pFn
) PURE
;
891 STDMETHOD(GetLevelDesc
)(THIS_ UINT Level
, WINED3DSURFACE_DESC
* pDesc
) PURE
;
892 STDMETHOD(GetSurfaceLevel
)(THIS_ UINT Level
, struct IWineD3DSurface
** ppSurfaceLevel
) PURE
;
893 STDMETHOD(LockRect
)(THIS_ UINT Level
, WINED3DLOCKED_RECT
* pLockedRect
, CONST RECT
* pRect
, DWORD Flags
) PURE
;
894 STDMETHOD(UnlockRect
)(THIS_ UINT Level
) PURE
;
895 STDMETHOD(AddDirtyRect
)(THIS_ CONST RECT
* pDirtyRect
) PURE
;
899 #if !defined(__cplusplus) || defined(CINTERFACE)
900 /*** IUnknown methods ***/
901 #define IWineD3DTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
902 #define IWineD3DTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
903 #define IWineD3DTexture_Release(p) (p)->lpVtbl->Release(p)
904 /*** IWineD3DBase methods ***/
905 #define IWineD3DTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
906 /*** IWineD3DTexture methods: IWineD3DResource ***/
907 #define IWineD3DTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
908 #define IWineD3DTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
909 #define IWineD3DTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
910 #define IWineD3DTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
911 #define IWineD3DTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
912 #define IWineD3DTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
913 #define IWineD3DTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
914 #define IWineD3DTexture_UnLoad(p) (p)->lpVtbl->UnLoad(p)
915 #define IWineD3DTexture_GetType(p) (p)->lpVtbl->GetType(p)
916 /*** IWineD3DTexture methods: IWineD3DBaseTexture ***/
917 #define IWineD3DTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
918 #define IWineD3DTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
919 #define IWineD3DTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
920 #define IWineD3DTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
921 #define IWineD3DTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
922 #define IWineD3DTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
923 #define IWineD3DTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
924 #define IWineD3DTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
925 #define IWineD3DTexture_BindTexture(p) (p)->lpVtbl->BindTexture(p)
926 #define IWineD3DTexture_UnBindTexture(p) (p)->lpVtbl->UnBindTexture(p)
927 #define IWineD3DTexture_GetTextureDimensions(p) (p)->lpVtbl->GetTextureDimensions(p)
928 #define IWineD3DTexture_ApplyStateChanges(p,a,b) (p)->lpVtbl->ApplyStateChanges(p,a,b)
929 /*** IWineD3DTexture methods ***/
930 #define IWineD3DTexture_Destroy(p,a) (p)->lpVtbl->Destroy(p,a)
931 #define IWineD3DTexture_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
932 #define IWineD3DTexture_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
933 #define IWineD3DTexture_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
934 #define IWineD3DTexture_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
935 #define IWineD3DTexture_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
938 /*****************************************************************************
939 * IWineD3DCubeTexture interface
941 #define INTERFACE IWineD3DCubeTexture
942 DECLARE_INTERFACE_(IWineD3DCubeTexture
,IWineD3DBaseTexture
)
944 /*** IUnknown methods ***/
945 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
946 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
947 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
948 /*** IWineD3DBase methods ***/
949 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
950 /*** IWineD3DResource methods ***/
951 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
952 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void * pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
953 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void * pData
, DWORD
* pSizeOfData
) PURE
;
954 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
955 STDMETHOD_(DWORD
,SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
956 STDMETHOD_(DWORD
,GetPriority
)(THIS
) PURE
;
957 STDMETHOD_(void,PreLoad
)(THIS
) PURE
;
958 STDMETHOD_(void,UnLoad
)(THIS
) PURE
;
959 STDMETHOD_(WINED3DRESOURCETYPE
,GetType
)(THIS
) PURE
;
960 /*** IWineD3DBaseTexture methods ***/
961 STDMETHOD_(DWORD
, SetLOD
)(THIS_ DWORD LODNew
) PURE
;
962 STDMETHOD_(DWORD
, GetLOD
)(THIS
) PURE
;
963 STDMETHOD_(DWORD
, GetLevelCount
)(THIS
) PURE
;
964 STDMETHOD(SetAutoGenFilterType
)(THIS_ WINED3DTEXTUREFILTERTYPE FilterType
) PURE
;
965 STDMETHOD_(WINED3DTEXTUREFILTERTYPE
, GetAutoGenFilterType
)(THIS
) PURE
;
966 STDMETHOD_(void, GenerateMipSubLevels
)(THIS
) PURE
;
967 STDMETHOD_(BOOL
, SetDirty
)(THIS_ BOOL
) PURE
;
968 STDMETHOD_(BOOL
, GetDirty
)(THIS
) PURE
;
969 STDMETHOD(BindTexture
)(THIS
) PURE
;
970 STDMETHOD(UnBindTexture
)(THIS
) PURE
;
971 STDMETHOD_(UINT
, GetTextureDimensions
)(THIS
) PURE
;
972 STDMETHOD_(void, ApplyStateChanges
)(THIS_ DWORD
const textureStates
[WINED3D_HIGHEST_TEXTURE_STATE
+ 1], const DWORD samplerStates
[WINED3D_HIGHEST_SAMPLER_STATE
+ 1]) PURE
;
973 /*** IWineD3DCubeTexture methods ***/
974 STDMETHOD_(void, Destroy
)(THIS_ D3DCB_DESTROYSURFACEFN pFn
) PURE
;
975 STDMETHOD(GetLevelDesc
)(THIS_ UINT Level
,WINED3DSURFACE_DESC
* pDesc
) PURE
;
976 STDMETHOD(GetCubeMapSurface
)(THIS_ WINED3DCUBEMAP_FACES FaceType
, UINT Level
, struct IWineD3DSurface
** ppCubeMapSurface
) PURE
;
977 STDMETHOD(LockRect
)(THIS_ WINED3DCUBEMAP_FACES FaceType
, UINT Level
, WINED3DLOCKED_RECT
* pLockedRect
, CONST RECT
* pRect
, DWORD Flags
) PURE
;
978 STDMETHOD(UnlockRect
)(THIS_ WINED3DCUBEMAP_FACES FaceType
, UINT Level
) PURE
;
979 STDMETHOD(AddDirtyRect
)(THIS_ WINED3DCUBEMAP_FACES FaceType
, CONST RECT
* pDirtyRect
) PURE
;
983 #if !defined(__cplusplus) || defined(CINTERFACE)
984 /*** IUnknown methods ***/
985 #define IWineD3DCubeTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
986 #define IWineD3DCubeTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
987 #define IWineD3DCubeTexture_Release(p) (p)->lpVtbl->Release(p)
988 /*** IWineD3DBase methods ***/
989 #define IWineD3DCubeTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
990 /*** IWineD3DCubeTexture methods: IWineD3DResource ***/
991 #define IWineD3DCubeTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
992 #define IWineD3DCubeTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
993 #define IWineD3DCubeTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
994 #define IWineD3DCubeTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
995 #define IWineD3DCubeTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
996 #define IWineD3DCubeTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
997 #define IWineD3DCubeTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
998 #define IWineD3DCubeTexture_UnLoad(p) (p)->lpVtbl->UnLoad(p)
999 #define IWineD3DCubeTexture_GetType(p) (p)->lpVtbl->GetType(p)
1000 /*** IWineD3DCubeTexture methods: IWineD3DBaseTexture ***/
1001 #define IWineD3DCubeTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1002 #define IWineD3DCubeTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1003 #define IWineD3DCubeTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1004 #define IWineD3DCubeTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1005 #define IWineD3DCubeTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1006 #define IWineD3DCubeTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1007 #define IWineD3DCubeTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
1008 #define IWineD3DCubeTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
1009 #define IWineD3DCubeTexture_BindTexture(p) (p)->lpVtbl->BindTexture(p)
1010 #define IWineD3DCubeTexture_UnBindTexture(p) (p)->lpVtbl->UnBindTexture(p)
1011 #define IWineD3DCubeTexture_GetTextureDimensions(p) (p)->lpVtbl->GetTextureDimensions(p)
1012 #define IWineD3DCubeTexture_ApplyStateChanges(p,a,b) (p)->lpVtbl->ApplyStateChanges(p,a,b)
1013 /*** IWineD3DCubeTexture methods ***/
1014 #define IWineD3DCubeTexture_Destroy(p,a) (p)->lpVtbl->Destroy(p,a)
1015 #define IWineD3DCubeTexture_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1016 #define IWineD3DCubeTexture_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
1017 #define IWineD3DCubeTexture_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
1018 #define IWineD3DCubeTexture_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
1019 #define IWineD3DCubeTexture_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
1023 /*****************************************************************************
1024 * IWineD3DVolumeTexture interface
1026 #define INTERFACE IWineD3DVolumeTexture
1027 DECLARE_INTERFACE_(IWineD3DVolumeTexture
,IWineD3DBaseTexture
)
1029 /*** IUnknown methods ***/
1030 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1031 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1032 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1033 /*** IWineD3DBase methods ***/
1034 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1035 /*** IWineD3DResource methods ***/
1036 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
1037 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void * pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
1038 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void * pData
, DWORD
* pSizeOfData
) PURE
;
1039 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
1040 STDMETHOD_(DWORD
,SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
1041 STDMETHOD_(DWORD
,GetPriority
)(THIS
) PURE
;
1042 STDMETHOD_(void,PreLoad
)(THIS
) PURE
;
1043 STDMETHOD_(void,UnLoad
)(THIS
) PURE
;
1044 STDMETHOD_(WINED3DRESOURCETYPE
,GetType
)(THIS
) PURE
;
1045 /*** IWineD3DBaseTexture methods ***/
1046 STDMETHOD_(DWORD
, SetLOD
)(THIS_ DWORD LODNew
) PURE
;
1047 STDMETHOD_(DWORD
, GetLOD
)(THIS
) PURE
;
1048 STDMETHOD_(DWORD
, GetLevelCount
)(THIS
) PURE
;
1049 STDMETHOD(SetAutoGenFilterType
)(THIS_ WINED3DTEXTUREFILTERTYPE FilterType
) PURE
;
1050 STDMETHOD_(WINED3DTEXTUREFILTERTYPE
, GetAutoGenFilterType
)(THIS
) PURE
;
1051 STDMETHOD_(void, GenerateMipSubLevels
)(THIS
) PURE
;
1052 STDMETHOD_(BOOL
, SetDirty
)(THIS_ BOOL
) PURE
;
1053 STDMETHOD_(BOOL
, GetDirty
)(THIS
) PURE
;
1054 STDMETHOD(BindTexture
)(THIS
) PURE
;
1055 STDMETHOD(UnBindTexture
)(THIS
) PURE
;
1056 STDMETHOD_(UINT
, GetTextureDimensions
)(THIS
) PURE
;
1057 STDMETHOD_(void, ApplyStateChanges
)(THIS_
const DWORD textureStates
[WINED3D_HIGHEST_TEXTURE_STATE
+ 1], const DWORD samplerStates
[WINED3D_HIGHEST_SAMPLER_STATE
+ 1]) PURE
;
1058 /*** IWineD3DVolumeTexture methods ***/
1059 STDMETHOD_(void, Destroy
)(THIS_ D3DCB_DESTROYVOLUMEFN pFn
) PURE
;
1060 STDMETHOD(GetLevelDesc
)(THIS_ UINT Level
, WINED3DVOLUME_DESC
*pDesc
) PURE
;
1061 STDMETHOD(GetVolumeLevel
)(THIS_ UINT Level
, struct IWineD3DVolume
** ppVolumeLevel
) PURE
;
1062 STDMETHOD(LockBox
)(THIS_ UINT Level
, WINED3DLOCKED_BOX
* pLockedVolume
, CONST WINED3DBOX
* pBox
, DWORD Flags
) PURE
;
1063 STDMETHOD(UnlockBox
)(THIS_ UINT Level
) PURE
;
1064 STDMETHOD(AddDirtyBox
)(THIS_ CONST WINED3DBOX
* pDirtyBox
) PURE
;
1068 #if !defined(__cplusplus) || defined(CINTERFACE)
1069 /*** IUnknown methods ***/
1070 #define IWineD3DVolumeTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1071 #define IWineD3DVolumeTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
1072 #define IWineD3DVolumeTexture_Release(p) (p)->lpVtbl->Release(p)
1073 /*** IWineD3DBase methods ***/
1074 #define IWineD3DVolumeTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1075 /*** IWineD3DVolumeTexture methods: IWineD3DResource ***/
1076 #define IWineD3DVolumeTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1077 #define IWineD3DVolumeTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1078 #define IWineD3DVolumeTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1079 #define IWineD3DVolumeTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1080 #define IWineD3DVolumeTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1081 #define IWineD3DVolumeTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1082 #define IWineD3DVolumeTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1083 #define IWineD3DVolumeTexture_UnLoad(p) (p)->lpVtbl->UnLoad(p)
1084 #define IWineD3DVolumeTexture_GetType(p) (p)->lpVtbl->GetType(p)
1085 /*** IWineD3DVolumeTexture methods: IWineD3DBaseTexture ***/
1086 #define IWineD3DVolumeTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1087 #define IWineD3DVolumeTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1088 #define IWineD3DVolumeTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1089 #define IWineD3DVolumeTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1090 #define IWineD3DVolumeTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1091 #define IWineD3DVolumeTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1092 #define IWineD3DVolumeTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
1093 #define IWineD3DVolumeTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
1094 #define IWineD3DVolumeTexture_BindTexture(p) (p)->lpVtbl->BindTexture(p)
1095 #define IWineD3DVolumeTexture_UnBindTexture(p) (p)->lpVtbl->UnBindTexture(p)
1096 #define IWineD3DVolumeTexture_GetTextureDimensions(p) (p)->lpVtbl->GetTextureDimensions(p)
1097 #define IWineD3DVolumeTexture_ApplyStateChanges(p,a,b) (p)->lpVtbl->ApplyStateChanges(p,a,b)
1098 /*** IWineD3DVolumeTexture methods ***/
1099 #define IWineD3DVolumeTexture_Destroy(p,a) (p)->lpVtbl->Destroy(p,a)
1100 #define IWineD3DVolumeTexture_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1101 #define IWineD3DVolumeTexture_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
1102 #define IWineD3DVolumeTexture_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
1103 #define IWineD3DVolumeTexture_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
1104 #define IWineD3DVolumeTexture_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
1107 /*****************************************************************************
1108 * IWineD3DSurface interface
1110 #define INTERFACE IWineD3DSurface
1111 DECLARE_INTERFACE_(IWineD3DSurface
,IWineD3DResource
)
1113 /*** IUnknown methods ***/
1114 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1115 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1116 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1117 /*** IWineD3DBase methods ***/
1118 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1119 /*** IWineD3DResource methods ***/
1120 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
1121 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void * pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
1122 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void * pData
, DWORD
* pSizeOfData
) PURE
;
1123 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
1124 STDMETHOD_(DWORD
,SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
1125 STDMETHOD_(DWORD
,GetPriority
)(THIS
) PURE
;
1126 STDMETHOD_(void,PreLoad
)(THIS
) PURE
;
1127 STDMETHOD_(void,UnLoad
)(THIS
) PURE
;
1128 STDMETHOD_(WINED3DRESOURCETYPE
,GetType
)(THIS
) PURE
;
1129 /*** IWineD3DSurface methods ***/
1130 STDMETHOD(GetContainer
)(THIS_ REFIID riid
, void ** ppContainer
) PURE
;
1131 STDMETHOD(GetDesc
)(THIS_ WINED3DSURFACE_DESC
* pDesc
) PURE
;
1132 STDMETHOD(LockRect
)(THIS_ WINED3DLOCKED_RECT
* pLockedRect
, CONST RECT
* pRect
,DWORD Flags
) PURE
;
1133 STDMETHOD(UnlockRect
)(THIS
) PURE
;
1134 STDMETHOD(GetDC
)(THIS_ HDC
*pHdc
) PURE
;
1135 STDMETHOD(ReleaseDC
)(THIS_ HDC hdc
) PURE
;
1136 STDMETHOD(Flip
)(THIS_ IWineD3DSurface
*Override
, DWORD FLAGS
) PURE
;
1137 STDMETHOD(Blt
)(THIS_ RECT
*DestRect
, IWineD3DSurface
*SrcSurface
, RECT
*SrcRect
, DWORD Flags
, WINEDDBLTFX
*DDBltFx
, WINED3DTEXTUREFILTERTYPE Filter
) PURE
;
1138 STDMETHOD(GetBltStatus
)(THIS_ DWORD Flags
) PURE
;
1139 STDMETHOD(GetFlipStatus
)(THIS_ DWORD Flags
) PURE
;
1140 STDMETHOD(IsLost
)(THIS
) PURE
;
1141 STDMETHOD(Restore
)(THIS
) PURE
;
1142 STDMETHOD(BltFast
)(THIS_ DWORD dstx
, DWORD dsty
, IWineD3DSurface
*src
, RECT
*rsrc
, DWORD trans
) PURE
;
1143 STDMETHOD(GetPalette
)(THIS_
struct IWineD3DPalette
**Palette
) PURE
;
1144 STDMETHOD(SetPalette
)(THIS_
struct IWineD3DPalette
*Palette
) PURE
;
1145 STDMETHOD(RealizePalette
)(THIS
) PURE
;
1146 STDMETHOD(SetColorKey
)(THIS_ DWORD Flags
, WINEDDCOLORKEY
*CKey
) PURE
;
1147 STDMETHOD_(DWORD
,GetPitch
)(THIS
) PURE
;
1148 STDMETHOD(SetMem
)(THIS_
void *mem
) PURE
;
1149 STDMETHOD(SetOverlayPosition
)(THIS_ LONG X
, LONG Y
) PURE
;
1150 STDMETHOD(GetOverlayPosition
)(THIS_ LONG
*X
, LONG
*Y
) PURE
;
1151 STDMETHOD(UpdateOverlayZOrder
)(THIS_ DWORD Flags
, IWineD3DSurface
*Ref
) PURE
;
1152 STDMETHOD(UpdateOverlay
)(THIS_ RECT
*SrcRect
, IWineD3DSurface
*DstSurface
, RECT
*DstRect
, DWORD Flags
, WINEDDOVERLAYFX
*FX
);
1153 STDMETHOD(SetClipper
)(THIS_
struct IWineD3DClipper
*clipper
);
1154 STDMETHOD(GetClipper
)(THIS_
struct IWineD3DClipper
**clipper
);
1155 /* Internally used methods */
1156 STDMETHOD(AddDirtyRect
)(THIS_ CONST RECT
* pRect
) PURE
;
1157 STDMETHOD(LoadTexture
)(THIS
, BOOL srgb_mode
) PURE
;
1158 STDMETHOD_(void, BindTexture
)(THIS
) PURE
;
1159 STDMETHOD(SaveSnapshot
)(THIS_
const char *filename
) PURE
;
1160 STDMETHOD(SetContainer
)(THIS_ IWineD3DBase
*container
) PURE
;
1161 STDMETHOD_(void,SetGlTextureDesc
)(THIS_ UINT textureName
, int target
) PURE
;
1162 STDMETHOD_(void,GetGlDesc
)(THIS_ glDescriptor
**glDescription
) PURE
;
1163 STDMETHOD_(CONST
void *, GetData
)(THIS
) PURE
;
1164 STDMETHOD(SetFormat
)(THIS_ WINED3DFORMAT format
) PURE
;
1165 STDMETHOD(PrivateSetup
)(THIS
) PURE
;
1166 STDMETHOD_(void,ModifyLocation
)(THIS_ DWORD flag
, BOOL persistent
);
1167 STDMETHOD(LoadLocation
)(THIS_ DWORD flag
, const RECT
*rect
);
1168 STDMETHOD_(WINED3DSURFTYPE
,GetImplType
)(THIS
);
1172 #if !defined(__cplusplus) || defined(CINTERFACE)
1173 /*** IUnknown methods ***/
1174 #define IWineD3DSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1175 #define IWineD3DSurface_AddRef(p) (p)->lpVtbl->AddRef(p)
1176 #define IWineD3DSurface_Release(p) (p)->lpVtbl->Release(p)
1177 /*** IWineD3DBase methods ***/
1178 #define IWineD3DSurface_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1179 /*** IWineD3DResource methods ***/
1180 #define IWineD3DSurface_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1181 #define IWineD3DSurface_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1182 #define IWineD3DSurface_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1183 #define IWineD3DSurface_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1184 #define IWineD3DSurface_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1185 #define IWineD3DSurface_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1186 #define IWineD3DSurface_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1187 #define IWineD3DSurface_UnLoad(p) (p)->lpVtbl->UnLoad(p)
1188 #define IWineD3DSurface_GetType(p) (p)->lpVtbl->GetType(p)
1189 /*** IWineD3DSurface methods ***/
1190 #define IWineD3DSurface_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
1191 #define IWineD3DSurface_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1192 #define IWineD3DSurface_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
1193 #define IWineD3DSurface_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
1194 #define IWineD3DSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
1195 #define IWineD3DSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
1196 #define IWineD3DSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
1197 #define IWineD3DSurface_Blt(p,a,b,c,d,e,f) (p)->lpVtbl->Blt(p,a,b,c,d,e,f)
1198 #define IWineD3DSurface_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
1199 #define IWineD3DSurface_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
1200 #define IWineD3DSurface_IsLost(p) (p)->lpVtbl->IsLost(p)
1201 #define IWineD3DSurface_Restore(p) (p)->lpVtbl->Restore(p)
1202 #define IWineD3DSurface_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
1203 #define IWineD3DSurface_GetPalette(p, a) (p)->lpVtbl->GetPalette(p, a)
1204 #define IWineD3DSurface_SetPalette(p, a) (p)->lpVtbl->SetPalette(p, a)
1205 #define IWineD3DSurface_RealizePalette(p) (p)->lpVtbl->RealizePalette(p)
1206 #define IWineD3DSurface_SetColorKey(p, a, b) (p)->lpVtbl->SetColorKey(p, a, b)
1207 #define IWineD3DSurface_GetPitch(p) (p)->lpVtbl->GetPitch(p)
1208 #define IWineD3DSurface_SetMem(p, a) (p)->lpVtbl->SetMem(p, a)
1209 #define IWineD3DSurface_SetOverlayPosition(p, a, b) (p)->lpVtbl->SetOverlayPosition(p, a, b)
1210 #define IWineD3DSurface_GetOverlayPosition(p, a, b) (p)->lpVtbl->GetOverlayPosition(p, a, b)
1211 #define IWineD3DSurface_UpdateOverlayZOrder(p, a, b) (p)->lpVtbl->UpdateOverlayZOrder(p, a, b)
1212 #define IWineD3DSurface_UpdateOverlay(p, a, b, c, d, e) (p)->lpVtbl->UpdateOverlay(p, a, b, c, d, e)
1213 #define IWineD3DSurface_SetClipper(p, a) (p)->lpVtbl->SetClipper(p, a)
1214 #define IWineD3DSurface_GetClipper(p, a) (p)->lpVtbl->GetClipper(p, a)
1215 /*** IWineD3DSurface (Internal, no d3d mapping) methods ***/
1216 #define IWineD3DSurface_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
1217 #define IWineD3DSurface_LoadTexture(p,a) (p)->lpVtbl->LoadTexture(p,a)
1218 #define IWineD3DSurface_BindTexture(p) (p)->lpVtbl->BindTexture(p)
1219 #define IWineD3DSurface_SaveSnapshot(p,a) (p)->lpVtbl->SaveSnapshot(p,a)
1220 #define IWineD3DSurface_SetContainer(p,a) (p)->lpVtbl->SetContainer(p,a)
1221 #define IWineD3DSurface_SetGlTextureDesc(p,a,b) (p)->lpVtbl->SetGlTextureDesc(p,a,b)
1222 #define IWineD3DSurface_GetGlDesc(p,a) (p)->lpVtbl->GetGlDesc(p,a)
1223 #define IWineD3DSurface_GetData(p) (p)->lpVtbl->GetData(p)
1224 #define IWineD3DSurface_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
1225 #define IWineD3DSurface_PrivateSetup(p) (p)->lpVtbl->PrivateSetup(p)
1226 #define IWineD3DSurface_ModifyLocation(p,a,b) (p)->lpVtbl->ModifyLocation(p,a,b)
1227 #define IWineD3DSurface_LoadLocation(p,a,b) (p)->lpVtbl->LoadLocation(p,a,b)
1228 #define IWineD3DSurface_GetImplType(p) (p)->lpVtbl->GetImplType(p)
1231 /*****************************************************************************
1232 * IWineD3DVolume interface
1234 #define INTERFACE IWineD3DVolume
1235 DECLARE_INTERFACE_(IWineD3DVolume
,IWineD3DResource
)
1237 /*** IUnknown methods ***/
1238 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1239 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1240 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1241 /*** IWineD3DBase methods ***/
1242 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1243 /*** IWineD3DResource methods ***/
1244 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
1245 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void * pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
1246 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void * pData
, DWORD
* pSizeOfData
) PURE
;
1247 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
1248 STDMETHOD_(DWORD
,SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
1249 STDMETHOD_(DWORD
,GetPriority
)(THIS
) PURE
;
1250 STDMETHOD_(void,PreLoad
)(THIS
) PURE
;
1251 STDMETHOD_(void,UnLoad
)(THIS
) PURE
;
1252 STDMETHOD_(WINED3DRESOURCETYPE
, GetType
)(THIS
) PURE
;
1253 /*** IWineD3DVolume methods ***/
1254 STDMETHOD(GetContainer
)(THIS_ REFIID riid
, void ** ppContainer
) PURE
;
1255 STDMETHOD(GetDesc
)(THIS_ WINED3DVOLUME_DESC
* pDesc
) PURE
;
1256 STDMETHOD(LockBox
)(THIS_ WINED3DLOCKED_BOX
* pLockedVolume
, CONST WINED3DBOX
* pBox
, DWORD Flags
) PURE
;
1257 STDMETHOD(UnlockBox
)(THIS
) PURE
;
1258 STDMETHOD(AddDirtyBox
)(THIS_ CONST WINED3DBOX
* pDirtyBox
) PURE
;
1259 STDMETHOD(CleanDirtyBox
)(THIS
) PURE
;
1260 STDMETHOD(LoadTexture
)(THIS_
int gl_level
, BOOL srgb_mode
) PURE
;
1261 STDMETHOD(SetContainer
)(THIS_ IWineD3DBase
*container
) PURE
;
1265 #if !defined(__cplusplus) || defined(CINTERFACE)
1266 /*** IUnknown methods ***/
1267 #define IWineD3DVolume_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1268 #define IWineD3DVolume_AddRef(p) (p)->lpVtbl->AddRef(p)
1269 #define IWineD3DVolume_Release(p) (p)->lpVtbl->Release(p)
1270 /*** IWineD3DBase methods ***/
1271 #define IWineD3DVolume_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1272 /*** IWineD3DResource methods ***/
1273 #define IWineD3DVolume_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1274 #define IWineD3DVolume_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1275 #define IWineD3DVolume_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1276 #define IWineD3DVolume_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1277 #define IWineD3DVolume_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1278 #define IWineD3DVolume_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1279 #define IWineD3DVolume_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1280 #define IWineD3DVolume_UnLoad(p) (p)->lpVtbl->UnLoad(p)
1281 #define IWineD3DVolume_GetType(p) (p)->lpVtbl->GetType(p)
1282 /*** IWineD3DVolume methods ***/
1283 #define IWineD3DVolume_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
1284 #define IWineD3DVolume_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1285 #define IWineD3DVolume_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
1286 #define IWineD3DVolume_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
1287 #define IWineD3DVolume_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
1288 #define IWineD3DVolume_CleanDirtyBox(p) (p)->lpVtbl->CleanDirtyBox(p)
1289 #define IWineD3DVolume_LoadTexture(p,a,b) (p)->lpVtbl->LoadTexture(p,a,b)
1290 #define IWineD3DVolume_SetContainer(p,a) (p)->lpVtbl->SetContainer(p,a)
1293 /*****************************************************************************
1294 * IWineD3DVertexDeclaration interface
1296 #define INTERFACE IWineD3DVertexDeclaration
1297 DECLARE_INTERFACE_(IWineD3DVertexDeclaration
,IWineD3DBase
)
1299 /*** IUnknown methods ***/
1300 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void **ppvObject
) PURE
;
1301 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1302 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1303 /*** IWineD3DBase methods ***/
1304 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1305 /*** IWineD3DVertexDeclaration methods ***/
1306 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
**ppDevice
) PURE
;
1307 STDMETHOD(GetDeclaration
)(THIS_ WINED3DVERTEXELEMENT
*elements
, UINT
*elements_count
) PURE
;
1308 STDMETHOD(SetDeclaration
)(THIS_
const WINED3DVERTEXELEMENT
*elements
, UINT element_count
) PURE
;
1312 #if !defined(__cplusplus) || defined(CINTERFACE)
1313 /*** IUnknown methods ***/
1314 #define IWineD3DVertexDeclaration_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1315 #define IWineD3DVertexDeclaration_AddRef(p) (p)->lpVtbl->AddRef(p)
1316 #define IWineD3DVertexDeclaration_Release(p) (p)->lpVtbl->Release(p)
1317 /*** IWineD3DBase methods ***/
1318 #define IWineD3DVertexDeclaration_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1319 /*** IWineD3DVertexDeclaration methods ***/
1320 #define IWineD3DVertexDeclaration_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1321 #define IWineD3DVertexDeclaration_GetDeclaration(p,a,b) (p)->lpVtbl->GetDeclaration(p,a,b)
1322 #define IWineD3DVertexDeclaration_SetDeclaration(p,a,b) (p)->lpVtbl->SetDeclaration(p,a,b)
1325 /*****************************************************************************
1326 * IWineD3DStateBlock interface
1328 #define INTERFACE IWineD3DStateBlock
1329 DECLARE_INTERFACE_(IWineD3DStateBlock
,IWineD3DBase
)
1331 /*** IUnknown methods ***/
1332 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1333 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1334 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1335 /*** IWineD3DBase methods ***/
1336 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1337 /*** IWineD3DStateBlock methods ***/
1338 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
**pDevice
) PURE
;
1339 STDMETHOD(Capture
)(THIS
) PURE
;
1340 STDMETHOD(Apply
)(THIS
) PURE
;
1341 STDMETHOD(InitStartupStateBlock
)(THIS
) PURE
;
1345 #if !defined(__cplusplus) || defined(CINTERFACE)
1346 /*** IUnknown methods ***/
1347 #define IWineD3DStateBlock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1348 #define IWineD3DStateBlock_AddRef(p) (p)->lpVtbl->AddRef(p)
1349 #define IWineD3DStateBlock_Release(p) (p)->lpVtbl->Release(p)
1350 /*** IWineD3DBase methods ***/
1351 #define IWineD3DStateBlock_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1352 /*** IWineD3DStateBlock methods ***/
1353 #define IWineD3DStateBlock_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1354 #define IWineD3DStateBlock_Capture(p) (p)->lpVtbl->Capture(p)
1355 #define IWineD3DStateBlock_Apply(p) (p)->lpVtbl->Apply(p)
1356 #define IWineD3DStateBlock_InitStartupStateBlock(p) (p)->lpVtbl->InitStartupStateBlock(p)
1359 /*****************************************************************************
1360 * WineD3DQuery interface
1362 #define INTERFACE IWineD3DQuery
1363 DECLARE_INTERFACE_(IWineD3DQuery
,IWineD3DBase
)
1365 /*** IUnknown methods ***/
1366 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void **ppvObject
) PURE
;
1367 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1368 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1369 /*** IWineD3DBase methods ***/
1370 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1371 /*** IWineD3DQuery methods ***/
1372 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
**ppDevice
) PURE
;
1373 STDMETHOD(GetData
)(THIS_
void *pData
, DWORD dwSize
, DWORD dwGetDataFlags
) PURE
;
1374 STDMETHOD_(DWORD
,GetDataSize
)(THIS
) PURE
;
1375 STDMETHOD_(WINED3DQUERYTYPE
, GetType
)(THIS
) PURE
;
1376 STDMETHOD(Issue
)(THIS_ DWORD dwIssueFlags
) PURE
;
1381 #if !defined(__cplusplus) || defined(CINTERFACE)
1382 /*** IUnknown methods ***/
1383 #define IWineD3DQuery_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1384 #define IWineD3DQuery_AddRef(p) (p)->lpVtbl->AddRef(p)
1385 #define IWineD3DQuery_Release(p) (p)->lpVtbl->Release(p)
1386 /*** IWineD3DBase methods ***/
1387 #define IWineD3DQuery_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1388 /*** IWineD3DQuery methods ***/
1389 #define IWineD3DQuery_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1390 #define IWineD3DQuery_GetData(p,a,b,c) (p)->lpVtbl->GetData(p,a,b,c)
1391 #define IWineD3DQuery_GetDataSize(p) (p)->lpVtbl->GetDataSize(p)
1392 #define IWineD3DQuery_GetType(p) (p)->lpVtbl->GetType(p)
1393 #define IWineD3DQuery_Issue(p,a) (p)->lpVtbl->Issue(p,a)
1397 /*****************************************************************************
1398 * IWineD3DSwapChain interface
1399 * TODO: add gamma-ramp setting functions to make life easier
1400 * (There kinda missing from Microsofts DirectX!)
1402 #define INTERFACE IWineD3DSwapChain
1403 DECLARE_INTERFACE_(IWineD3DSwapChain
,IWineD3DBase
)
1405 /*** IUnknown methods ***/
1406 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void **ppvObject
) PURE
;
1407 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1408 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1409 /*** IWineD3DBase methods ***/
1410 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1411 /*** IDirect3DSwapChain9 methods ***/
1412 STDMETHOD_(void, Destroy
)(THIS_ D3DCB_DESTROYSURFACEFN pFn
) PURE
;
1413 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
**ppDevice
) PURE
;
1414 STDMETHOD(Present
)(THIS_ CONST RECT
*pSourceRect
, CONST RECT
*pDestRect
, HWND hDestWindowOverride
, CONST RGNDATA
*pDirtyRegion
, DWORD dwFlags
) PURE
;
1415 STDMETHOD(GetFrontBufferData
)(THIS_ IWineD3DSurface
*pDestSurface
) PURE
;
1416 STDMETHOD(GetBackBuffer
)(THIS_ UINT iBackBuffer
, WINED3DBACKBUFFER_TYPE Type
, IWineD3DSurface
**ppBackBuffer
) PURE
;
1417 STDMETHOD(GetRasterStatus
)(THIS_ WINED3DRASTER_STATUS
*pRasterStatus
) PURE
;
1418 STDMETHOD(GetDisplayMode
)(THIS_ WINED3DDISPLAYMODE
*pMode
) PURE
;
1419 STDMETHOD(GetPresentParameters
)(THIS_ WINED3DPRESENT_PARAMETERS
*pPresentationParameters
) PURE
;
1420 STDMETHOD(SetGammaRamp
)(THIS_ DWORD Flags
, const WINED3DGAMMARAMP
*pRamp
) PURE
;
1421 STDMETHOD(GetGammaRamp
)(THIS_ WINED3DGAMMARAMP
*pRamp
) PURE
;
1425 #if !defined(__cplusplus) || defined(CINTERFACE)
1426 /*** IUnknown methods ***/
1427 #define IWineD3DSwapChain_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1428 #define IWineD3DSwapChain_AddRef(p) (p)->lpVtbl->AddRef(p)
1429 #define IWineD3DSwapChain_Release(p) (p)->lpVtbl->Release(p)
1430 /*** IWineD3DBase methods ***/
1431 #define IWineD3DSwapChain_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1432 /*** IWineD3DSwapChain methods ***/
1433 #define IWineD3DSwapChain_Destroy(p,a) (p)->lpVtbl->Destroy(p,a)
1434 #define IWineD3DSwapChain_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1435 #define IWineD3DSwapChain_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
1436 #define IWineD3DSwapChain_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
1437 #define IWineD3DSwapChain_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
1438 #define IWineD3DSwapChain_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
1439 #define IWineD3DSwapChain_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
1440 #define IWineD3DSwapChain_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
1441 #define IWineD3DSwapChain_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)
1442 #define IWineD3DSwapChain_GetGammaRamp(p,a) (p)->lpVtbl->GetGammaRamp(p,a)
1445 /*****************************************************************************
1446 * IWineD3DBaseShader interface
1448 #define INTERFACE IWineD3DBaseShader
1449 DECLARE_INTERFACE_(IWineD3DBaseShader
,IWineD3DBase
)
1451 /*** IUnknown methods ***/
1452 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1453 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1454 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1455 /*** IWineD3DBase methods ***/
1456 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1457 /*** IWineD3DBaseShader methods ***/
1458 STDMETHOD(SetFunction
)(THIS_ CONST DWORD
*pFunction
) PURE
;
1459 STDMETHOD(CompileShader
)(THIS
) PURE
;
1463 #if !defined(__cplusplus) || defined(CINTERFACE)
1464 /*** IUnknown methods ***/
1465 #define IWineD3DBaseShader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1466 #define IWineD3DBaseShader_AddRef(p) (p)->lpVtbl->AddRef(p)
1467 #define IWineD3DBaseShader_Release(p) (p)->lpVtbl->Release(p)
1468 /*** IWineD3DBase methods ***/
1469 #define IWineD3DBaseShader_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1470 /*** IWineD3DBaseShader methods ***/
1471 #define IWineD3DBaseShader_SetFunction(p,a) (p)->lpVtbl->SetFunction(p,a)
1472 #define IWineD3DBaseShader_CompileShader(p) (p)->lpVtbl->CompileShader(p)
1475 /*****************************************************************************
1476 * IWineD3DVertexShader interface
1478 #define INTERFACE IWineD3DVertexShader
1479 DECLARE_INTERFACE_(IWineD3DVertexShader
,IWineD3DBaseShader
)
1481 /*** IUnknown methods ***/
1482 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1483 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1484 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1485 /*** IWineD3DBase methods ***/
1486 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1487 /*** IWineD3DBaseShader methods ***/
1488 STDMETHOD(SetFunction
)(THIS_ CONST DWORD
*pFunction
) PURE
;
1489 STDMETHOD(CompileShader
)(THIS
) PURE
;
1490 /*** IWineD3DVertexShader methods ***/
1491 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
1492 STDMETHOD(GetFunction
)(THIS_ VOID
*pData
, UINT
*pSizeOfData
) PURE
;
1493 STDMETHOD_(void, FakeSemantics
)(THIS_
struct IWineD3DVertexDeclaration
*vertex_declaration
) PURE
;
1494 STDMETHOD(SetLocalConstantsF
)(THIS_ UINT start_idx
, const float *src_data
, UINT count
) PURE
;
1498 #if !defined(__cplusplus) || defined(CINTERFACE)
1499 /*** IUnknown methods ***/
1500 #define IWineD3DVertexShader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1501 #define IWineD3DVertexShader_AddRef(p) (p)->lpVtbl->AddRef(p)
1502 #define IWineD3DVertexShader_Release(p) (p)->lpVtbl->Release(p)
1503 /*** IWineD3DBase methods ***/
1504 #define IWineD3DVertexShader_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1505 /*** IWineD3DBaseShader methods ***/
1506 #define IWineD3DVertexShader_SetFunction(p,a) (p)->lpVtbl->SetFunction(p,a)
1507 #define IWineD3DVertexShader_CompileShader(p) (p)->lpVtbl->CompileShader(p)
1508 /*** IWineD3DVertexShader methods ***/
1509 #define IWineD3DVertexShader_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1510 #define IWineD3DVertexShader_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1511 #define IWineD3DVertexShader_FakeSemantics(p,a) (p)->lpVtbl->FakeSemantics(p,a)
1512 #define IWineD3DVertexShader_SetLocalConstantsF(p,a,b,c) (p)->lpVtbl->SetLocalConstantsF(p,a,b,c)
1515 /*****************************************************************************
1516 * IWineD3DPixelShader interface
1518 #define INTERFACE IWineD3DPixelShader
1519 DECLARE_INTERFACE_(IWineD3DPixelShader
,IWineD3DBaseShader
)
1521 /*** IUnknown methods ***/
1522 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1523 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1524 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1525 /*** IWineD3DBase methods ***/
1526 STDMETHOD(GetParent
)(THIS_ IUnknown
**pParent
) PURE
;
1527 /*** IWineD3DBaseShader methods ***/
1528 STDMETHOD(SetFunction
)(THIS_ CONST DWORD
*pFunction
) PURE
;
1529 STDMETHOD(CompileShader
)(THIS
) PURE
;
1530 /*** IWineD3DPixelShader methods ***/
1531 STDMETHOD(GetDevice
)(THIS_ IWineD3DDevice
** ppDevice
) PURE
;
1532 STDMETHOD(GetFunction
)(THIS_ VOID
* pData
, UINT
* pSizeOfData
) PURE
;
1536 #if !defined(__cplusplus) || defined(CINTERFACE)
1537 /*** IUnknown methods ***/
1538 #define IWineD3DPixelShader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1539 #define IWineD3DPixelShader_AddRef(p) (p)->lpVtbl->AddRef(p)
1540 #define IWineD3DPixelShader_Release(p) (p)->lpVtbl->Release(p)
1541 /*** IWineD3DBase methods ***/
1542 #define IWineD3DPixelShader_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
1543 /*** IWineD3DBaseShader methods ***/
1544 #define IWineD3DPixelShader_SetFunction(p,a) (p)->lpVtbl->SetFunction(p,a)
1545 #define IWineD3DPixelShader_CompileShader(p) (p)->lpVtbl->CompileShader(p)
1546 /*** IWineD3DPixelShader methods ***/
1547 #define IWineD3DPixelShader_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1548 #define IWineD3DPixelShader_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1551 /*****************************************************************************
1552 * IWineD3DPalette interface
1554 #define INTERFACE IWineD3DPalette
1555 DECLARE_INTERFACE_(IWineD3DPalette
,IUnknown
)
1557 /*** IUnknown methods ***/
1558 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1559 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1560 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1561 /*** IWineD3DPalette methods ***/
1562 STDMETHOD_(HRESULT
,GetParent
)(THIS_ IUnknown
**Parent
);
1563 STDMETHOD_(HRESULT
,GetEntries
)(THIS_ DWORD Flags
, DWORD Start
, DWORD Count
, PALETTEENTRY
*PalEnt
);
1564 STDMETHOD_(HRESULT
,GetCaps
)(THIS_ DWORD
*Caps
);
1565 STDMETHOD_(HRESULT
,SetEntries
)(THIS_ DWORD Flags
, DWORD Start
, DWORD Count
, PALETTEENTRY
*PalEnt
);
1569 #if !defined(__cplusplus) || defined(CINTERFACE)
1570 /*** IUnknown methods ***/
1571 #define IWineD3DPalette_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1572 #define IWineD3DPalette_AddRef(p) (p)->lpVtbl->AddRef(p)
1573 #define IWineD3DPalette_Release(p) (p)->lpVtbl->Release(p)
1574 /*** IWineD3DPalette methods ***/
1575 #define IWineD3DPalette_GetParent(p, a) (p)->lpVtbl->GetParent(p, a)
1576 #define IWineD3DPalette_GetEntries(p, a, b, c, d) (p)->lpVtbl->GetEntries(p, a, b, c, d)
1577 #define IWineD3DPalette_GetCaps(p, a) (p)->lpVtbl->GetCaps(p, a)
1578 #define IWineD3DPalette_SetEntries(p, a, b, c, d) (p)->lpVtbl->SetEntries(p, a, b, c, d)
1581 /*****************************************************************************
1582 * IDirectDrawClipper interface
1584 #define INTERFACE IWineD3DClipper
1585 DECLARE_INTERFACE_(IWineD3DClipper
,IUnknown
)
1587 /*** IUnknown methods ***/
1588 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1589 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1590 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1591 /*** WineD3DBase methods ***/
1592 STDMETHOD_(HRESULT
,GetParent
)(THIS_ IUnknown
**parent
) PURE
;
1593 /*** IWineD3DClipper methods ***/
1594 STDMETHOD(GetClipList
)(THIS_ LPRECT lpRect
, LPRGNDATA lpClipList
, LPDWORD lpdwSize
) PURE
;
1595 STDMETHOD(GetHWnd
)(THIS_ HWND
*lphWnd
) PURE
;
1596 STDMETHOD(IsClipListChanged
)(THIS_ BOOL
*lpbChanged
) PURE
;
1597 STDMETHOD(SetClipList
)(THIS_ LPRGNDATA lpClipList
, DWORD dwFlags
) PURE
;
1598 STDMETHOD(SetHWnd
)(THIS_ DWORD dwFlags
, HWND hWnd
) PURE
;
1602 #if !defined(__cplusplus) || defined(CINTERFACE)
1603 /*** IUnknown methods ***/
1604 #define IWineD3DClipper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1605 #define IWineD3DClipper_AddRef(p) (p)->lpVtbl->AddRef(p)
1606 #define IWineD3DClipper_Release(p) (p)->lpVtbl->Release(p)
1607 /*** IWineD3DClipper methods ***/
1608 #define IWineD3DClipper_GetClipList(p,a,b,c) (p)->lpVtbl->GetClipList(p,a,b,c)
1609 #define IWineD3DClipper_GetHWnd(p,a) (p)->lpVtbl->GetHWnd(p,a)
1610 #define IWineD3DClipper_IsClipListChanged(p,a) (p)->lpVtbl->IsClipListChanged(p,a)
1611 #define IWineD3DClipper_SetClipList(p,a,b) (p)->lpVtbl->SetClipList(p,a,b)
1612 #define IWineD3DClipper_SetHWnd(p,a,b) (p)->lpVtbl->SetHWnd(p,a,b)
1614 /*** IUnknown methods ***/
1615 #define IWineD3DClipper_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1616 #define IWineD3DClipper_AddRef(p) (p)->AddRef()
1617 #define IWineD3DClipper_Release(p) (p)->Release()
1618 /*** IWineD3DClipper methods ***/
1619 #define IWineD3DClipper_GetClipList(p,a,b,c) (p)->GetClipList(a,b,c)
1620 #define IWineD3DClipper_GetHWnd(p,a) (p)->GetHWnd(a)
1621 #define IWineD3DClipper_IsClipListChanged(p,a) (p)->IsClipListChanged(a)
1622 #define IWineD3DClipper_SetClipList(p,a,b) (p)->SetClipList(a,b)
1623 #define IWineD3DClipper_SetHWnd(p,a,b) (p)->SetHWnd(a,b)
1626 /* DDraw Clippers are not created from DDraw objects, they have a separate creation function */
1627 IWineD3DClipper
* WINAPI
WineDirect3DCreateClipper(IUnknown
*parent
);
1629 #if 0 /* FIXME: During porting in from d3d8 - the following will be used */
1630 extern HRESULT WINAPI
IDirect3DVertexShaderImpl_ParseProgram(IDirect3DVertexShaderImpl
* This
, CONST DWORD
* pFunction
);
1631 /* internal Interfaces */
1632 extern HRESULT WINAPI
IDirect3DVertexShaderImpl_ExecuteSW(IDirect3DVertexShaderImpl
* This
, VSHADERINPUTDATA
* input
, VSHADEROUTPUTDATA
* output
);
1633 #endif /* Temporary #if 0 */