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