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