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