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