2 * Direct3D wine internal public interface file
4 * Copyright 2002-2003 The wine-d3d team
5 * Copyright 2002-2003 Raphael Junqueira
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __WINE_WINED3D_INTERFACE_H
23 #define __WINE_WINED3D_INTERFACE_H
25 #if !defined( __WINE_CONFIG_H )
26 # error You must include config.h to use this header
29 #if !defined( __WINE_D3D8_H ) && !defined( __WINE_D3D9_H )
30 # error You must include d3d8.h or d3d9.h header to use this header
33 /*****************************************************************
34 * THIS FILE MUST NOT CONTAIN X11 or MESA DEFINES
35 * PLEASE USE wine/wined3d_gl.h INSTEAD
39 /*****************************************************************************
40 * WineD3D Structures to be used when d3d8 and d3d9 are incompatible
42 typedef struct _WINED3DADAPTER_IDENTIFIER {
46 LARGE_INTEGER *DriverVersion;
51 GUID *DeviceIdentifier;
53 } WINED3DADAPTER_IDENTIFIER;
55 typedef struct _WINED3DPRESENT_PARAMETERS {
56 UINT *BackBufferWidth;
57 UINT *BackBufferHeight;
58 D3DFORMAT *BackBufferFormat;
59 UINT *BackBufferCount;
60 D3DMULTISAMPLE_TYPE *MultiSampleType;
61 DWORD *MultiSampleQuality;
62 D3DSWAPEFFECT *SwapEffect;
65 BOOL *EnableAutoDepthStencil;
66 D3DFORMAT *AutoDepthStencilFormat;
68 UINT *FullScreen_RefreshRateInHz;
69 UINT *PresentationInterval;
70 } WINED3DPRESENT_PARAMETERS;
72 typedef struct _WINED3DSURFACE_DESC
75 D3DRESOURCETYPE *Type;
80 D3DMULTISAMPLE_TYPE *MultiSampleType;
81 DWORD *MultiSampleQuality;
84 } WINED3DSURFACE_DESC;
86 typedef struct _WINED3DVOLUME_DESC
89 D3DRESOURCETYPE *Type;
99 /* The following have differing names, but actually are the same layout. */
100 /* Also, D3DCAPS8 is a subset of D3DCAPS9 so can be typecase as long as
101 none of the 9 fields are accessed when the device is d3d8 */
102 #if defined( __WINE_D3D8_H )
104 #define WINED3DLIGHT D3DLIGHT8
105 #define WINED3DCLIPSTATUS D3DCLIPSTATUS8
106 #define WINED3DMATERIAL D3DMATERIAL8
107 #define WINED3DVIEWPORT D3DVIEWPORT8
110 #define WINED3DCAPS D3DCAPS8
113 #define WINED3DLIGHT D3DLIGHT9
114 #define WINED3DCLIPSTATUS D3DCLIPSTATUS9
115 #define WINED3DMATERIAL D3DMATERIAL9
116 #define WINED3DVIEWPORT D3DVIEWPORT9
119 #define WINED3DCAPS D3DCAPS9
122 typedef struct IWineD3D IWineD3D;
123 typedef struct IWineD3DDevice IWineD3DDevice;
124 typedef struct IWineD3DResource IWineD3DResource;
125 typedef struct IWineD3DVertexBuffer IWineD3DVertexBuffer;
126 typedef struct IWineD3DIndexBuffer IWineD3DIndexBuffer;
127 typedef struct IWineD3DBaseTexture IWineD3DBaseTexture;
128 typedef struct IWineD3DTexture IWineD3DTexture;
129 typedef struct IWineD3DCubeTexture IWineD3DCubeTexture;
130 typedef struct IWineD3DVolumeTexture IWineD3DVolumeTexture;
131 typedef struct IWineD3DStateBlock IWineD3DStateBlock;
132 typedef struct IWineD3DSurface IWineD3DSurface;
133 typedef struct IWineD3DVolume IWineD3DVolume;
134 typedef struct IWineD3DVertexDeclaration IWineD3DVertexDeclaration;
136 /*****************************************************************************
137 * Callback functions required for predefining surfaces / stencils
139 typedef HRESULT WINAPI (*D3DCB_CREATERENDERTARGETFN) (IUnknown *pDevice,
143 D3DMULTISAMPLE_TYPE MultiSample,
144 DWORD MultisampleQuality,
146 IWineD3DSurface **ppSurface,
147 HANDLE * pSharedHandle);
149 typedef HRESULT WINAPI (*D3DCB_CREATESURFACEFN) (IUnknown *pDevice,
154 IWineD3DSurface **ppSurface,
155 HANDLE * pSharedHandle);
157 typedef HRESULT WINAPI (*D3DCB_CREATEVOLUMEFN) (IUnknown *pDevice,
164 IWineD3DVolume **ppVolume,
165 HANDLE * pSharedHandle);
167 /*****************************************************************************
171 #define INTERFACE IWineD3D
172 DECLARE_INTERFACE_(IWineD3D,IUnknown)
174 /*** IUnknown methods ***/
175 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
176 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
177 STDMETHOD_(ULONG,Release)(THIS) PURE;
178 /*** IWineD3D methods ***/
179 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
180 STDMETHOD_(UINT,GetAdapterCount)(THIS) PURE;
181 STDMETHOD(RegisterSoftwareDevice)(THIS_ void * pInitializeFunction) PURE;
182 STDMETHOD_(HMONITOR,GetAdapterMonitor)(THIS_ UINT Adapter) PURE;
183 STDMETHOD_(UINT,GetAdapterModeCount)(THIS_ UINT Adapter, D3DFORMAT Format) PURE;
184 STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, UINT Mode, D3DFORMAT Format, D3DDISPLAYMODE * pMode) PURE;
185 STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, D3DDISPLAYMODE * pMode) PURE;
186 STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, WINED3DADAPTER_IDENTIFIER* pIdentifier) PURE;
187 STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType, DWORD *pQuality) PURE;
188 STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) PURE;
189 STDMETHOD(CheckDeviceType)(THIS_ UINT Adapter, D3DDEVTYPE CheckType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL Windowed) PURE;
190 STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) PURE;
191 STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat) PURE;
192 STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, WINED3DCAPS* pCaps) PURE;
193 STDMETHOD(CreateDevice)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType,HWND hFocusWindow, DWORD BehaviorFlags, WINED3DPRESENT_PARAMETERS * pPresentationParameters, IWineD3DDevice ** ppReturnedDeviceInterface, IUnknown *parent, D3DCB_CREATERENDERTARGETFN pFn) PURE;
197 #if !defined(__cplusplus) || defined(CINTERFACE)
198 /*** IUnknown methods ***/
199 #define IWineD3D_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
200 #define IWineD3D_AddRef(p) (p)->lpVtbl->AddRef(p)
201 #define IWineD3D_Release(p) (p)->lpVtbl->Release(p)
202 /*** IWineD3D methods ***/
203 #define IWineD3D_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
204 #define IWineD3D_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
205 #define IWineD3D_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
206 #define IWineD3D_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
207 #define IWineD3D_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
208 #define IWineD3D_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
209 #define IWineD3D_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
210 #define IWineD3D_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
211 #define IWineD3D_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
212 #define IWineD3D_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
213 #define IWineD3D_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
214 #define IWineD3D_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
215 #define IWineD3D_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
216 #define IWineD3D_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
217 #define IWineD3D_CreateDevice(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f,g,h)
220 /* Define the main WineD3D entrypoint */
221 IWineD3D* WINAPI WineDirect3DCreate(UINT SDKVersion, UINT dxVersion, IUnknown *parent);
223 /*****************************************************************************
224 * IWineD3DDevice interface
226 #define INTERFACE IWineD3DDevice
227 DECLARE_INTERFACE_(IWineD3DDevice,IUnknown)
229 /*** IUnknown methods ***/
230 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
231 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
232 STDMETHOD_(ULONG,Release)(THIS) PURE;
233 /*** IWineD3DDevice methods ***/
234 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
235 STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length,DWORD Usage,DWORD FVF,D3DPOOL Pool,IWineD3DVertexBuffer **ppVertexBuffer, HANDLE *sharedHandle, IUnknown *parent) PURE;
236 STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IWineD3DIndexBuffer** ppIndexBuffer, HANDLE* pSharedHandle, IUnknown *parent) PURE;
237 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type, IWineD3DStateBlock **ppStateBlock, IUnknown *parent) PURE;
238 STDMETHOD(CreateRenderTarget)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IWineD3DSurface** ppSurface, HANDLE* pSharedHandle, IUnknown *parent) PURE;
239 STDMETHOD(CreateOffscreenPlainSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IWineD3DSurface** ppSurface, HANDLE* pSharedHandle, IUnknown *parent) PURE;
240 STDMETHOD(CreateTexture)(THIS_ UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IWineD3DTexture** ppTexture, HANDLE* pSharedHandle, IUnknown *parent, D3DCB_CREATESURFACEFN pFn) PURE;
241 STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IWineD3DVolumeTexture** ppVolumeTexture, HANDLE* pSharedHandle, IUnknown *parent, D3DCB_CREATEVOLUMEFN pFn) PURE;
242 STDMETHOD(CreateVolume)(THIS_ UINT Width, UINT Height, UINT Depth, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IWineD3DVolume** ppVolumeTexture, HANDLE* pSharedHandle, IUnknown *parent) PURE;
243 STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IWineD3DCubeTexture** ppCubeTexture, HANDLE* pSharedHandle, IUnknown *parent, D3DCB_CREATESURFACEFN pFn) PURE;
244 STDMETHOD(SetFVF)(THIS_ DWORD fvf) PURE;
245 STDMETHOD(GetFVF)(THIS_ DWORD * pfvf) PURE;
246 STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber,IWineD3DVertexBuffer * pStreamData,UINT Offset,UINT Stride) PURE;
247 STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber,IWineD3DVertexBuffer ** ppStreamData,UINT *pOffset, UINT * pStride) PURE;
248 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,CONST D3DMATRIX * pMatrix) PURE;
249 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,D3DMATRIX * pMatrix) PURE;
250 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX * pMatrix) PURE;
251 STDMETHOD(SetLight)(THIS_ DWORD Index,CONST WINED3DLIGHT * pLight) PURE;
252 STDMETHOD(GetLight)(THIS_ DWORD Index,WINED3DLIGHT * pLight) PURE;
253 STDMETHOD(SetLightEnable)(THIS_ DWORD Index,BOOL Enable) PURE;
254 STDMETHOD(GetLightEnable)(THIS_ DWORD Index,BOOL * pEnable) PURE;
255 STDMETHOD(SetClipPlane)(THIS_ DWORD Index,CONST float * pPlane) PURE;
256 STDMETHOD(GetClipPlane)(THIS_ DWORD Index,float * pPlane) PURE;
257 STDMETHOD(SetClipStatus)(THIS_ CONST WINED3DCLIPSTATUS * pClipStatus) PURE;
258 STDMETHOD(GetClipStatus)(THIS_ WINED3DCLIPSTATUS * pClipStatus) PURE;
259 STDMETHOD(SetMaterial)(THIS_ CONST WINED3DMATERIAL * pMaterial) PURE;
260 STDMETHOD(GetMaterial)(THIS_ WINED3DMATERIAL *pMaterial) PURE;
261 STDMETHOD(SetIndices)(THIS_ IWineD3DIndexBuffer * pIndexData,UINT BaseVertexIndex) PURE;
262 STDMETHOD(GetIndices)(THIS_ IWineD3DIndexBuffer ** ppIndexData,UINT * pBaseVertexIndex) PURE;
263 STDMETHOD(SetViewport)(THIS_ CONST WINED3DVIEWPORT * pViewport) PURE;
264 STDMETHOD(GetViewport)(THIS_ WINED3DVIEWPORT * pViewport) PURE;
265 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD Value) PURE;
266 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD * pValue) PURE;
267 STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE;
268 STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD * pValue) PURE;
269 STDMETHOD(SetTexture)(THIS_ DWORD Stage, IWineD3DBaseTexture* pTexture) PURE;
270 STDMETHOD(GetTexture)(THIS_ DWORD Stage, IWineD3DBaseTexture** ppTexture) PURE;
271 STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IWineD3DSurface** ppBackBuffer) PURE;
272 STDMETHOD(GetDeviceCaps)(THIS_ WINED3DCAPS* pCaps) PURE;
273 STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain, D3DDISPLAYMODE* pMode) PURE;
274 STDMETHOD(BeginScene)(THIS) PURE;
275 STDMETHOD(EndScene)(THIS) PURE;
276 STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect,CONST RECT * pDestRect,HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE;
277 STDMETHOD(Clear)(THIS_ DWORD Count,CONST D3DRECT * pRects,DWORD Flags,D3DCOLOR Color,float Z,DWORD Stencil) PURE;
278 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE;
279 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,INT baseVIdx, UINT minIndex,UINT NumVertices,UINT startIndex,UINT primCount) PURE;
280 STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT PrimitiveCount,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;
281 STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT MinVertexIndex,UINT NumVertexIndices,UINT PrimitiveCount,CONST void * pIndexData,D3DFORMAT IndexDataFormat,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;
282 /*** Internal use IWineD3D methods ***/
283 STDMETHOD_(void, SetupTextureStates)(THIS_ DWORD Stage, DWORD Flags);
289 #if !defined(__cplusplus) || defined(CINTERFACE)
290 /*** IUnknown methods ***/
291 #define IWineD3DDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
292 #define IWineD3DDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
293 #define IWineD3DDevice_Release(p) (p)->lpVtbl->Release(p)
294 /*** IWineD3DDevice methods ***/
295 #define IWineD3DDevice_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
296 #define IWineD3DDevice_CreateVertexBuffer(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f,g)
297 #define IWineD3DDevice_CreateIndexBuffer(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f,g)
298 #define IWineD3DDevice_CreateStateBlock(p,a,b,c) (p)->lpVtbl->CreateStateBlock(p,a,b,c)
299 #define IWineD3DDevice_CreateRenderTarget(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h,i)
300 #define IWineD3DDevice_CreateOffscreenPlainSurface(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f,g)
301 #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)
302 #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)
303 #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)
304 #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)
305 #define IWineD3DDevice_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
306 #define IWineD3DDevice_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
307 #define IWineD3DDevice_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
308 #define IWineD3DDevice_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
309 #define IWineD3DDevice_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
310 #define IWineD3DDevice_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
311 #define IWineD3DDevice_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
312 #define IWineD3DDevice_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
313 #define IWineD3DDevice_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
314 #define IWineD3DDevice_SetLightEnable(p,a,b) (p)->lpVtbl->SetLightEnable(p,a,b)
315 #define IWineD3DDevice_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
316 #define IWineD3DDevice_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
317 #define IWineD3DDevice_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
318 #define IWineD3DDevice_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
319 #define IWineD3DDevice_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
320 #define IWineD3DDevice_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
321 #define IWineD3DDevice_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
322 #define IWineD3DDevice_SetIndices(p,a,b) (p)->lpVtbl->SetIndices(p,a,b)
323 #define IWineD3DDevice_GetIndices(p,a,b) (p)->lpVtbl->GetIndices(p,a,b)
324 #define IWineD3DDevice_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
325 #define IWineD3DDevice_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
326 #define IWineD3DDevice_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
327 #define IWineD3DDevice_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
328 #define IWineD3DDevice_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
329 #define IWineD3DDevice_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
330 #define IWineD3DDevice_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
331 #define IWineD3DDevice_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
332 #define IWineD3DDevice_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
333 #define IWineD3DDevice_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
334 #define IWineD3DDevice_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
335 #define IWineD3DDevice_BeginScene(p) (p)->lpVtbl->BeginScene(p)
336 #define IWineD3DDevice_EndScene(p) (p)->lpVtbl->EndScene(p)
337 #define IWineD3DDevice_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
338 #define IWineD3DDevice_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
339 #define IWineD3DDevice_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
340 #define IWineD3DDevice_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
341 #define IWineD3DDevice_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
342 #define IWineD3DDevice_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
343 #define IWineD3DDevice_SetupTextureStates(p,a,b) (p)->lpVtbl->SetupTextureStates(p,a,b)
346 /*****************************************************************************
347 * WineD3DResource interface
349 #define INTERFACE IWineD3DResource
350 DECLARE_INTERFACE_(IWineD3DResource,IUnknown)
352 /*** IUnknown methods ***/
353 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
354 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
355 STDMETHOD_(ULONG,Release)(THIS) PURE;
356 /*** IWineD3DResource methods ***/
357 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
358 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
359 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
360 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
361 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
362 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
363 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
364 STDMETHOD_(void,PreLoad)(THIS) PURE;
365 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
369 #if !defined(__cplusplus) || defined(CINTERFACE)
370 /*** IUnknown methods ***/
371 #define IWineD3DResource_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
372 #define IWineD3DResource_AddRef(p) (p)->lpVtbl->AddRef(p)
373 #define IWineD3DResource_Release(p) (p)->lpVtbl->Release(p)
374 /*** IWineD3DResource methods ***/
375 #define IWineD3DResource_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
376 #define IWineD3DResource_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
377 #define IWineD3DResource_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
378 #define IWineD3DResource_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
379 #define IWineD3DResource_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
380 #define IWineD3DResource_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
381 #define IWineD3DResource_GetPriority(p) (p)->lpVtbl->GetPriority(p)
382 #define IWineD3DResource_PreLoad(p) (p)->lpVtbl->PreLoad(p)
383 #define IWineD3DResource_GetType(p) (p)->lpVtbl->GetType(p)
386 /*****************************************************************************
387 * WineD3DVertexBuffer interface
389 #define INTERFACE IWineD3DVertexBuffer
390 DECLARE_INTERFACE_(IWineD3DVertexBuffer,IWineD3DResource)
392 /*** IUnknown methods ***/
393 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
394 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
395 STDMETHOD_(ULONG,Release)(THIS) PURE;
396 /*** IWineD3DResource methods ***/
397 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
398 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
399 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
400 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
401 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
402 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
403 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
404 STDMETHOD_(void,PreLoad)(THIS) PURE;
405 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
406 /*** IWineD3DVertexBuffer methods ***/
407 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE;
408 STDMETHOD(Unlock)(THIS) PURE;
409 STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC * pDesc) PURE;
413 #if !defined(__cplusplus) || defined(CINTERFACE)
414 /*** IUnknown methods ***/
415 #define IWineD3DVertexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
416 #define IWineD3DVertexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
417 #define IWineD3DVertexBuffer_Release(p) (p)->lpVtbl->Release(p)
418 /*** IWineD3DResource methods ***/
419 #define IWineD3DVertexBuffer_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
420 #define IWineD3DVertexBuffer_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
421 #define IWineD3DVertexBuffer_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
422 #define IWineD3DVertexBuffer_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
423 #define IWineD3DVertexBuffer_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
424 #define IWineD3DVertexBuffer_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
425 #define IWineD3DVertexBuffer_GetPriority(p) (p)->lpVtbl->GetPriority(p)
426 #define IWineD3DVertexBuffer_PreLoad(p) (p)->lpVtbl->PreLoad(p)
427 #define IWineD3DVertexBuffer_GetType(p) (p)->lpVtbl->GetType(p)
428 /*** IWineD3DVertexBuffer methods ***/
429 #define IWineD3DVertexBuffer_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
430 #define IWineD3DVertexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
431 #define IWineD3DVertexBuffer_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
434 /*****************************************************************************
435 * WineD3DIndexBuffer interface
437 #define INTERFACE IWineD3DIndexBuffer
438 DECLARE_INTERFACE_(IWineD3DIndexBuffer,IWineD3DResource)
440 /*** IUnknown methods ***/
441 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
442 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
443 STDMETHOD_(ULONG,Release)(THIS) PURE;
444 /*** IWineD3DResource methods ***/
445 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
446 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
447 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
448 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
449 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
450 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
451 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
452 STDMETHOD_(void,PreLoad)(THIS) PURE;
453 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
454 /*** IWineD3DIndexBuffer methods ***/
455 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE;
456 STDMETHOD(Unlock)(THIS) PURE;
457 STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC * pDesc) PURE;
461 #if !defined(__cplusplus) || defined(CINTERFACE)
462 /*** IUnknown methods ***/
463 #define IWineD3DIndexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
464 #define IWineD3DIndexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
465 #define IWineD3DIndexBuffer_Release(p) (p)->lpVtbl->Release(p)
466 /*** IWineD3DResource methods ***/
467 #define IWineD3DIndexBuffer_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
468 #define IWineD3DIndexBuffer_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
469 #define IWineD3DIndexBuffer_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
470 #define IWineD3DIndexBuffer_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
471 #define IWineD3DIndexBuffer_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
472 #define IWineD3DIndexBuffer_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
473 #define IWineD3DIndexBuffer_GetPriority(p) (p)->lpVtbl->GetPriority(p)
474 #define IWineD3DIndexBuffer_PreLoad(p) (p)->lpVtbl->PreLoad(p)
475 #define IWineD3DIndexBuffer_GetType(p) (p)->lpVtbl->GetType(p)
476 /*** IWineD3DIndexBuffer methods ***/
477 #define IWineD3DIndexBuffer_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
478 #define IWineD3DIndexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
479 #define IWineD3DIndexBuffer_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
482 /*****************************************************************************
483 * IWineD3DBaseTexture interface
484 * Note at d3d8 this does NOT extend Resource, but at d3d9 it does
485 * since most functions are common anyway, it makes sense to extend it
487 #define INTERFACE IWineD3DBaseTexture
488 DECLARE_INTERFACE_(IWineD3DBaseTexture,IWineD3DResource)
490 /*** IUnknown methods ***/
491 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
492 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
493 STDMETHOD_(ULONG,Release)(THIS) PURE;
494 /*** IWineD3DResource methods ***/
495 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
496 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
497 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
498 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
499 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
500 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
501 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
502 STDMETHOD_(void,PreLoad)(THIS) PURE;
503 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
504 /*** IWineD3DBaseTexture methods ***/
505 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
506 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
507 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
508 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
509 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
510 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
511 STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
512 STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
517 #if !defined(__cplusplus) || defined(CINTERFACE)
518 /*** IUnknown methods ***/
519 #define IWineD3DBaseTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
520 #define IWineD3DBaseTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
521 #define IWineD3DBaseTexture_Release(p) (p)->lpVtbl->Release(p)
522 /*** IWineD3DBaseTexture methods: IWineD3DResource ***/
523 #define IWineD3DBaseTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
524 #define IWineD3DBaseTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
525 #define IWineD3DBaseTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
526 #define IWineD3DBaseTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
527 #define IWineD3DBaseTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
528 #define IWineD3DBaseTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
529 #define IWineD3DBaseTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
530 #define IWineD3DBaseTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
531 #define IWineD3DBaseTexture_GetType(p) (p)->lpVtbl->GetType(p)
532 /*** IWineD3DBaseTexture methods ***/
533 #define IWineD3DBaseTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
534 #define IWineD3DBaseTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
535 #define IWineD3DBaseTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
536 #define IWineD3DBaseTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
537 #define IWineD3DBaseTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
538 #define IWineD3DBaseTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
539 #define IWineD3DBaseTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
540 #define IWineD3DBaseTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
543 /*****************************************************************************
544 * IWineD3DTexture interface
546 #define INTERFACE IWineD3DTexture
547 DECLARE_INTERFACE_(IWineD3DTexture,IWineD3DBaseTexture)
549 /*** IUnknown methods ***/
550 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
551 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
552 STDMETHOD_(ULONG,Release)(THIS) PURE;
553 /*** IWineD3DResource methods ***/
554 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
555 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
556 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
557 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
558 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
559 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
560 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
561 STDMETHOD_(void,PreLoad)(THIS) PURE;
562 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
563 /*** IWineD3DBaseTexture methods ***/
564 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
565 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
566 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
567 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
568 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
569 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
570 STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
571 STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
572 /*** IWineD3DTexture methods ***/
573 STDMETHOD(GetLevelDesc)(THIS_ UINT Level, WINED3DSURFACE_DESC* pDesc) PURE;
574 STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level, IWineD3DSurface** ppSurfaceLevel) PURE;
575 STDMETHOD(LockRect)(THIS_ UINT Level, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE;
576 STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE;
577 STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pDirtyRect) PURE;
581 #if !defined(__cplusplus) || defined(CINTERFACE)
582 /*** IUnknown methods ***/
583 #define IWineD3DTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
584 #define IWineD3DTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
585 #define IWineD3DTexture_Release(p) (p)->lpVtbl->Release(p)
586 /*** IWineD3DTexture methods: IWineD3DResource ***/
587 #define IWineD3DTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
588 #define IWineD3DTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
589 #define IWineD3DTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
590 #define IWineD3DTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
591 #define IWineD3DTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
592 #define IWineD3DTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
593 #define IWineD3DTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
594 #define IWineD3DTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
595 #define IWineD3DTexture_GetType(p) (p)->lpVtbl->GetType(p)
596 /*** IWineD3DTexture methods: IWineD3DBaseTexture ***/
597 #define IWineD3DTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
598 #define IWineD3DTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
599 #define IWineD3DTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
600 #define IWineD3DTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
601 #define IWineD3DTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
602 #define IWineD3DTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
603 #define IWineD3DTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
604 #define IWineD3DTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
605 /*** IWineD3DTexture methods ***/
606 #define IWineD3DTexture_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
607 #define IWineD3DTexture_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
608 #define IWineD3DTexture_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
609 #define IWineD3DTexture_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
610 #define IWineD3DTexture_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
613 /*****************************************************************************
614 * IWineD3DCubeTexture interface
616 #define INTERFACE IWineD3DCubeTexture
617 DECLARE_INTERFACE_(IWineD3DCubeTexture,IWineD3DBaseTexture)
619 /*** IUnknown methods ***/
620 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
621 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
622 STDMETHOD_(ULONG,Release)(THIS) PURE;
623 /*** IWineD3DResource methods ***/
624 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
625 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
626 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
627 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
628 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
629 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
630 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
631 STDMETHOD_(void,PreLoad)(THIS) PURE;
632 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
633 /*** IWineD3DBaseTexture methods ***/
634 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
635 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
636 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
637 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
638 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
639 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
640 STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
641 STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
642 /*** IWineD3DCubeTexture methods ***/
643 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,WINED3DSURFACE_DESC* pDesc) PURE;
644 STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level, IWineD3DSurface** ppCubeMapSurface) PURE;
645 STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE;
646 STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level) PURE;
647 STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType, CONST RECT* pDirtyRect) PURE;
651 #if !defined(__cplusplus) || defined(CINTERFACE)
652 /*** IUnknown methods ***/
653 #define IWineD3DCubeTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
654 #define IWineD3DCubeTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
655 #define IWineD3DCubeTexture_Release(p) (p)->lpVtbl->Release(p)
656 /*** IWineD3DCubeTexture methods: IWineD3DResource ***/
657 #define IWineD3DCubeTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
658 #define IWineD3DCubeTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
659 #define IWineD3DCubeTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
660 #define IWineD3DCubeTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
661 #define IWineD3DCubeTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
662 #define IWineD3DCubeTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
663 #define IWineD3DCubeTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
664 #define IWineD3DCubeTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
665 #define IWineD3DCubeTexture_GetType(p) (p)->lpVtbl->GetType(p)
666 /*** IWineD3DCubeTexture methods: IWineD3DBaseTexture ***/
667 #define IWineD3DCubeTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
668 #define IWineD3DCubeTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
669 #define IWineD3DCubeTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
670 #define IWineD3DCubeTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
671 #define IWineD3DCubeTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
672 #define IWineD3DCubeTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
673 #define IWineD3DCubeTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
674 #define IWineD3DCubeTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
675 /*** IWineD3DCubeTexture methods ***/
676 #define IWineD3DCubeTexture_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
677 #define IWineD3DCubeTexture_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
678 #define IWineD3DCubeTexture_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
679 #define IWineD3DCubeTexture_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
680 #define IWineD3DCubeTexture_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
684 /*****************************************************************************
685 * IWineD3DVolumeTexture interface
687 #define INTERFACE IWineD3DVolumeTexture
688 DECLARE_INTERFACE_(IWineD3DVolumeTexture,IWineD3DBaseTexture)
690 /*** IUnknown methods ***/
691 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
692 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
693 STDMETHOD_(ULONG,Release)(THIS) PURE;
694 /*** IWineD3DResource methods ***/
695 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
696 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
697 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
698 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
699 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
700 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
701 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
702 STDMETHOD_(void,PreLoad)(THIS) PURE;
703 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
704 /*** IWineD3DBaseTexture methods ***/
705 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
706 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
707 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
708 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
709 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
710 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
711 STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
712 STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
713 /*** IWineD3DVolumeTexture methods ***/
714 STDMETHOD(GetLevelDesc)(THIS_ UINT Level, WINED3DVOLUME_DESC *pDesc) PURE;
715 STDMETHOD(GetVolumeLevel)(THIS_ UINT Level, IWineD3DVolume** ppVolumeLevel) PURE;
716 STDMETHOD(LockBox)(THIS_ UINT Level, D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) PURE;
717 STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE;
718 STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX* pDirtyBox) PURE;
722 #if !defined(__cplusplus) || defined(CINTERFACE)
723 /*** IUnknown methods ***/
724 #define IWineD3DVolumeTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
725 #define IWineD3DVolumeTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
726 #define IWineD3DVolumeTexture_Release(p) (p)->lpVtbl->Release(p)
727 /*** IWineD3DVolumeTexture methods: IWineD3DResource ***/
728 #define IWineD3DVolumeTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
729 #define IWineD3DVolumeTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
730 #define IWineD3DVolumeTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
731 #define IWineD3DVolumeTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
732 #define IWineD3DVolumeTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
733 #define IWineD3DVolumeTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
734 #define IWineD3DVolumeTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
735 #define IWineD3DVolumeTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
736 #define IWineD3DVolumeTexture_GetType(p) (p)->lpVtbl->GetType(p)
737 /*** IWineD3DVolumeTexture methods: IWineD3DBaseTexture ***/
738 #define IWineD3DVolumeTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
739 #define IWineD3DVolumeTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
740 #define IWineD3DVolumeTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
741 #define IWineD3DVolumeTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
742 #define IWineD3DVolumeTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
743 #define IWineD3DVolumeTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
744 #define IWineD3DVolumeTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
745 #define IWineD3DVolumeTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
747 /*** IWineD3DVolumeTexture methods ***/
748 #define IWineD3DVolumeTexture_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
749 #define IWineD3DVolumeTexture_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
750 #define IWineD3DVolumeTexture_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
751 #define IWineD3DVolumeTexture_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
752 #define IWineD3DVolumeTexture_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
755 /*****************************************************************************
756 * IWineD3DSurface interface
758 #define INTERFACE IWineD3DSurface
759 DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
761 /*** IUnknown methods ***/
762 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
763 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
764 STDMETHOD_(ULONG,Release)(THIS) PURE;
765 /*** IWineD3DResource methods ***/
766 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
767 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
768 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
769 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
770 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
771 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
772 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
773 STDMETHOD_(void,PreLoad)(THIS) PURE;
774 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
775 /*** IWineD3DSurface methods ***/
776 STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE;
777 STDMETHOD(GetDesc)(THIS_ WINED3DSURFACE_DESC * pDesc) PURE;
778 STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT * pLockedRect, CONST RECT * pRect,DWORD Flags) PURE;
779 STDMETHOD(UnlockRect)(THIS) PURE;
780 STDMETHOD(GetDC)(THIS_ HDC *pHdc) PURE;
781 STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE;
782 /* Internally used methods */
783 STDMETHOD(CleanDirtyRect)(THIS) PURE;
784 STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pRect) PURE;
785 STDMETHOD(LoadTexture)(THIS_ UINT gl_target, UINT gl_level) PURE;
786 STDMETHOD(SaveSnapshot)(THIS_ const char *filename) PURE;
790 #if !defined(__cplusplus) || defined(CINTERFACE)
791 /*** IUnknown methods ***/
792 #define IWineD3DSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
793 #define IWineD3DSurface_AddRef(p) (p)->lpVtbl->AddRef(p)
794 #define IWineD3DSurface_Release(p) (p)->lpVtbl->Release(p)
795 /*** IWineD3DResource methods ***/
796 /*** IWineD3DResource methods ***/
797 #define IWineD3DSurface_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
798 #define IWineD3DSurface_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
799 #define IWineD3DSurface_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
800 #define IWineD3DSurface_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
801 #define IWineD3DSurface_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
802 #define IWineD3DSurface_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
803 #define IWineD3DSurface_GetPriority(p) (p)->lpVtbl->GetPriority(p)
804 #define IWineD3DSurface_PreLoad(p) (p)->lpVtbl->PreLoad(p)
805 #define IWineD3DSurface_GetType(p) (p)->lpVtbl->GetType(p)
806 /*** IWineD3DSurface methods ***/
807 #define IWineD3DSurface_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
808 #define IWineD3DSurface_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
809 #define IWineD3DSurface_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
810 #define IWineD3DSurface_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
811 #define IWineD3DSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
812 #define IWineD3DSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
813 /*** IWineD3DSurface (Internal, no d3d mapping) methods ***/
814 #define IWineD3DSurface_CleanDirtyRect(p) (p)->lpVtbl->CleanDirtyRect(p)
815 #define IWineD3DSurface_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
816 #define IWineD3DSurface_LoadTexture(p,a,b) (p)->lpVtbl->LoadTexture(p,a,b)
817 #define IWineD3DSurface_SaveSnapshot(p,a) (p)->lpVtbl->SaveSnapshot(p,a)
820 /*****************************************************************************
821 * IWineD3DVolume interface
823 #define INTERFACE IWineD3DVolume
824 DECLARE_INTERFACE_(IWineD3DVolume,IUnknown)
826 /*** IUnknown methods ***/
827 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
828 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
829 STDMETHOD_(ULONG,Release)(THIS) PURE;
830 /*** IWineD3DVolume methods ***/
831 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
832 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
833 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
834 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
835 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
836 STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE;
837 STDMETHOD(GetDesc)(THIS_ WINED3DVOLUME_DESC * pDesc) PURE;
838 STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) PURE;
839 STDMETHOD(UnlockBox)(THIS) PURE;
840 STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX* pDirtyBox) PURE;
841 STDMETHOD(CleanDirtyBox)(THIS) PURE;
845 #if !defined(__cplusplus) || defined(CINTERFACE)
846 /*** IUnknown methods ***/
847 #define IWineD3DVolume_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
848 #define IWineD3DVolume_AddRef(p) (p)->lpVtbl->AddRef(p)
849 #define IWineD3DVolume_Release(p) (p)->lpVtbl->Release(p)
850 /*** IWineD3DVolume methods ***/
851 #define IWineD3DVolume_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
852 #define IWineD3DVolume_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
853 #define IWineD3DVolume_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
854 #define IWineD3DVolume_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
855 #define IWineD3DVolume_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
856 #define IWineD3DVolume_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
857 #define IWineD3DVolume_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
858 #define IWineD3DVolume_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
859 #define IWineD3DVolume_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
860 #define IWineD3DVolume_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
861 #define IWineD3DVolume_CleanDirtyBox(p) (p)->lpVtbl->CleanDirtyBox(p)
864 /*****************************************************************************
865 * IWineD3DVertexDeclaration interface
867 #define INTERFACE IWineD3DVertexDeclaration
868 DECLARE_INTERFACE_(IWineD3DVertexDeclaration,IUnknown)
870 /*** IUnknown methods ***/
871 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
872 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
873 STDMETHOD_(ULONG,Release)(THIS) PURE;
874 /*** IWineD3DVertexDeclaration methods ***/
875 STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
876 STDMETHOD(GetDeclaration8)(THIS_ DWORD*, DWORD* pSizeOfData) PURE;
878 STDMETHOD(GetDeclaration9)(THIS_ D3DVERTEXELEMENT9*, UINT* pNumElements) PURE;
883 #if !defined(__cplusplus) || defined(CINTERFACE)
884 /*** IUnknown methods ***/
885 #define IWineD3DVertexDeclaration_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
886 #define IWineD3DVertexDeclaration_AddRef(p) (p)->lpVtbl->AddRef(p)
887 #define IWineD3DVertexDeclaration_Release(p) (p)->lpVtbl->Release(p)
888 /*** IWineD3DVertexDeclaration methods ***/
889 #define IWineD3DVertexDeclaration_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
890 #define IWineD3DVertexDeclaration_GetDeclaration8(p,a,b) (p)->lpVtbl->GetDeclaration8(p,a,b)
891 #define IWineD3DVertexDeclaration_GetDeclaration9(p,a,b) (p)->lpVtbl->GetDeclaration9(p,a,b)
894 /*****************************************************************************
895 * WineD3DStateBlock interface
897 #define INTERFACE IWineD3DStateBlock
898 DECLARE_INTERFACE_(IWineD3DStateBlock,IUnknown)
900 /*** IUnknown methods ***/
901 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
902 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
903 STDMETHOD_(ULONG,Release)(THIS) PURE;
904 /*** IWineD3DStateBlock methods ***/
905 STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
906 STDMETHOD(InitStartupStateBlock)(THIS) PURE;
910 #if !defined(__cplusplus) || defined(CINTERFACE)
911 /*** IUnknown methods ***/
912 #define IWineD3DStateBlock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
913 #define IWineD3DStateBlock_AddRef(p) (p)->lpVtbl->AddRef(p)
914 #define IWineD3DStateBlock_Release(p) (p)->lpVtbl->Release(p)
915 /*** IWineD3DStateBlock methods ***/
916 #define IWineD3DStateBlock_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
917 #define IWineD3DStateBlock_InitStartupStateBlock(p) (p)->lpVtbl->InitStartupStateBlock(p)
921 #if 0 /* FIXME: During porting in from d3d8 - the following will be used */
922 /*****************************************************************
927 #define MAX_PALETTES 256
928 #define MAX_STREAMS 16
929 #define MAX_CLIPPLANES D3DMAXUSERCLIPPLANES
930 #define MAX_LEVELS 256
932 /* Other useful values */
933 #define HIGHEST_RENDER_STATE 174
934 #define HIGHEST_TEXTURE_STATE 29
935 #define HIGHEST_TRANSFORMSTATE 512
936 #define D3DSBT_RECORDED 0xfffffffe
938 #define D3D_VSHADER_MAX_CONSTANTS 96
939 #define D3D_PSHADER_MAX_CONSTANTS 32
941 /*****************************************************************
945 #include "wine/wined3d_gl.h"
946 #include "wine/wined3d_types.h"
952 /*****************************************************************
956 typedef struct IDirect3DImpl IDirect3DImpl;
957 typedef struct IDirect3DBaseTextureImpl IDirect3DBaseTextureImpl;
958 typedef struct IDirect3DVolumeTextureImpl IDirect3DVolumeTextureImpl;
959 typedef struct IDirect3DDeviceImpl IDirect3DDeviceImpl;
960 typedef struct IDirect3DTextureImpl IDirect3DTextureImpl;
961 typedef struct IDirect3DCubeTextureImpl IDirect3DCubeTextureImpl;
962 typedef struct IDirect3DIndexBufferImpl IDirect3DIndexBufferImpl;
963 typedef struct IDirect3DSurfaceImpl IDirect3DSurfaceImpl;
964 typedef struct IDirect3DSwapChainImpl IDirect3DSwapChainImpl;
965 typedef struct IDirect3DResourceImpl IDirect3DResourceImpl;
966 typedef struct IDirect3DVolumeImpl IDirect3DVolumeImpl;
967 typedef struct IDirect3DVertexBufferImpl IDirect3DVertexBufferImpl;
968 typedef struct IDirect3DStateBlockImpl IDirect3DStateBlockImpl;
969 typedef struct IDirect3DVertexDeclarationImpl IDirect3DVertexDeclarationImpl;
970 typedef struct IDirect3DVertexShaderImpl IDirect3DVertexShaderImpl;
971 typedef struct IDirect3DPixelShaderImpl IDirect3DPixelShaderImpl;
974 /*************************************************************
975 * d3dcore interfaces defs
978 /** Vertex Shader API */
979 extern HRESULT WINAPI IDirect3DVertexShaderImpl_ParseProgram(IDirect3DVertexShaderImpl* This, CONST DWORD* pFunction);
980 extern HRESULT WINAPI IDirect3DVertexShaderImpl_GetFunction(IDirect3DVertexShaderImpl* This, VOID* pData, UINT* pSizeOfData);
981 extern HRESULT WINAPI IDirect3DVertexShaderImpl_SetConstantB(IDirect3DVertexShaderImpl* This, UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount);
982 extern HRESULT WINAPI IDirect3DVertexShaderImpl_SetConstantI(IDirect3DVertexShaderImpl* This, UINT StartRegister, CONST INT* pConstantData, UINT Vector4iCount);
983 extern HRESULT WINAPI IDirect3DVertexShaderImpl_SetConstantF(IDirect3DVertexShaderImpl* This, UINT StartRegister, CONST FLOAT* pConstantData, UINT Vector4fCount);
984 extern HRESULT WINAPI IDirect3DVertexShaderImpl_GetConstantB(IDirect3DVertexShaderImpl* This, UINT StartRegister, BOOL* pConstantData, UINT BoolCount);
985 extern HRESULT WINAPI IDirect3DVertexShaderImpl_GetConstantI(IDirect3DVertexShaderImpl* This, UINT StartRegister, INT* pConstantData, UINT Vector4iCount);
986 extern HRESULT WINAPI IDirect3DVertexShaderImpl_GetConstantF(IDirect3DVertexShaderImpl* This, UINT StartRegister, FLOAT* pConstantData, UINT Vector4fCount);
987 /* internal Interfaces */
988 extern DWORD WINAPI IDirect3DVertexShaderImpl_GetVersion(IDirect3DVertexShaderImpl* This);
989 extern HRESULT WINAPI IDirect3DVertexShaderImpl_ExecuteSW(IDirect3DVertexShaderImpl* This, VSHADERINPUTDATA* input, VSHADEROUTPUTDATA* output);
991 #endif /* Temporary #if 0 */