msxml3: Initialise output interface pointers to NULL in xmlnodelist_QueryInterface...
[wine/multimedia.git] / include / d3d8.h
blob75d1810dd38f39329d635d7398ea29c249519281
1 /*
2 * Copyright (C) 2002 Jason Edmeades
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_D3D8_H
20 #define __WINE_D3D8_H
22 #ifndef DIRECT3D_VERSION
23 #define DIRECT3D_VERSION 0x0800
24 #endif
26 #include <objbase.h>
28 #include <d3d8types.h>
29 #include <d3d8caps.h>
31 /*****************************************************************************
32 * Behavior Flags for IDirect3D8::CreateDevice
34 #define D3DCREATE_FPU_PRESERVE 0x00000002L
35 #define D3DCREATE_MULTITHREADED 0x00000004L
36 #define D3DCREATE_PUREDEVICE 0x00000010L
37 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L
38 #define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L
39 #define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L
41 /*****************************************************************************
42 * #defines and error codes
44 #define D3D_SDK_VERSION 220
45 #define D3DADAPTER_DEFAULT 0
46 #define D3DENUM_NO_WHQL_LEVEL 2
48 #define _FACD3D 0x876
49 #define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code )
52 * Direct3D Errors
54 #define D3D_OK S_OK
55 #define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072)
56 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073)
57 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074)
58 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075)
59 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076)
60 #define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077)
61 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078)
62 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079)
63 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081)
64 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082)
65 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086)
66 #define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087)
68 #define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150)
69 #define D3DERR_MOREDATA MAKE_D3DHRESULT(2151)
70 #define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152)
71 #define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153)
72 #define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154)
73 #define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380)
74 #define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155)
75 #define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156)
76 #define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157)
78 /*****************************************************************************
79 * Predeclare the interfaces
81 DEFINE_GUID(IID_IDirect3D8, 0x1DD9E8DA,0x1C77,0x4D40,0xB0,0xCF,0x98,0xFE,0xFD,0xFF,0x95,0x12);
82 typedef struct IDirect3D8 *LPDIRECT3D8;
84 DEFINE_GUID(IID_IDirect3DDevice8, 0x7385E5DF,0x8FE8,0x41D5,0x86,0xB6,0xD7,0xB4,0x85,0x47,0xB6,0xCF);
85 typedef struct IDirect3DDevice8 *LPDIRECT3DDEVICE8;
87 DEFINE_GUID(IID_IDirect3DResource8, 0x1B36BB7B,0x09B7,0x410A,0xB4,0x45,0x7D,0x14,0x30,0xD7,0xB3,0x3F);
88 typedef struct IDirect3DResource8 *LPDIRECT3DRESOURCE8, *PDIRECT3DRESOURCE8;
90 DEFINE_GUID(IID_IDirect3DVertexBuffer8, 0x8AEEEAC7,0x05F9,0x44D4,0xB5,0x91,0x00,0x0B,0x0D,0xF1,0xCB,0x95);
91 typedef struct IDirect3DVertexBuffer8 *LPDIRECT3DVERTEXBUFFER8, *PDIRECT3DVERTEXBUFFER8;
93 DEFINE_GUID(IID_IDirect3DVolume8, 0xBD7349F5,0x14F1,0x42E4,0x9C,0x79,0x97,0x23,0x80,0xDB,0x40,0xC0);
94 typedef struct IDirect3DVolume8 *LPDIRECT3DVOLUME8, *PDIRECT3DVOLUME8;
96 DEFINE_GUID(IID_IDirect3DSwapChain8, 0x928C088B,0x76B9,0x4C6B,0xA5,0x36,0xA5,0x90,0x85,0x38,0x76,0xCD);
97 typedef struct IDirect3DSwapChain8 *LPDIRECT3DSWAPCHAIN8, *PDIRECT3DSWAPCHAIN8;
99 DEFINE_GUID(IID_IDirect3DSurface8, 0xB96EEBCA,0xB326,0x4EA5,0x88,0x2F,0x2F,0xF5,0xBA,0xE0,0x21,0xDD);
100 typedef struct IDirect3DSurface8 *LPDIRECT3DSURFACE8, *PDIRECT3DSURFACE8;
102 DEFINE_GUID(IID_IDirect3DIndexBuffer8, 0x0E689C9A,0x053D,0x44A0,0x9D,0x92,0xDB,0x0E,0x3D,0x75,0x0F,0x86);
103 typedef struct IDirect3DIndexBuffer8 *LPDIRECT3DINDEXBUFFER8, *PDIRECT3DINDEXBUFFER8;
105 DEFINE_GUID(IID_IDirect3DBaseTexture8, 0xB4211CFA,0x51B9,0x4A9F,0xAB,0x78,0xDB,0x99,0xB2,0xBB,0x67,0x8E);
106 typedef struct IDirect3DBaseTexture8 *LPDIRECT3DBASETEXTURE8, *PDIRECT3DBASETEXTURE8;
108 DEFINE_GUID(IID_IDirect3DTexture8, 0xE4CDD575,0x2866,0x4F01,0xB1,0x2E,0x7E,0xEC,0xE1,0xEC,0x93,0x58);
109 typedef struct IDirect3DTexture8 *LPDIRECT3DTEXTURE8, *PDIRECT3DTEXTURE8;
111 DEFINE_GUID(IID_IDirect3DCubeTexture8, 0x3EE5B968,0x2ACA,0x4C34,0x8B,0xB5,0x7E,0x0C,0x3D,0x19,0xB7,0x50);
112 typedef struct IDirect3DCubeTexture8 *LPDIRECT3DCUBETEXTURE8, *PDIRECT3DCUBETEXTURE8;
114 DEFINE_GUID(IID_IDirect3DVolumeTexture8, 0x4B8AAAFA,0x140F,0x42BA,0x91,0x31,0x59,0x7E,0xAF,0xAA,0x2E,0xAD);
115 typedef struct IDirect3DVolumeTexture8 *LPDIRECT3DVOLUMETEXTURE8, *PDIRECT3DVOLUMETEXTURE8;
117 /*****************************************************************************
118 * IDirect3D8 interface
120 #define INTERFACE IDirect3D8
121 DECLARE_INTERFACE_(IDirect3D8,IUnknown)
123 /*** IUnknown methods ***/
124 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
125 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
126 STDMETHOD_(ULONG,Release)(THIS) PURE;
127 /*** IDirect3D8 methods ***/
128 STDMETHOD(RegisterSoftwareDevice)(THIS_ void * pInitializeFunction) PURE;
129 STDMETHOD_(UINT,GetAdapterCount )(THIS) PURE;
130 STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER8 * pIdentifier) PURE;
131 STDMETHOD_(UINT,GetAdapterModeCount)(THIS_ UINT Adapter) PURE;
132 STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, UINT Mode, D3DDISPLAYMODE * pMode) PURE;
133 STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, D3DDISPLAYMODE * pMode) PURE;
134 STDMETHOD(CheckDeviceType)(THIS_ UINT Adapter, D3DDEVTYPE CheckType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL Windowed) PURE;
135 STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) PURE;
136 STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType) PURE;
137 STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) PURE;
138 STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS8 * pCaps) PURE;
139 STDMETHOD_(HMONITOR,GetAdapterMonitor)(THIS_ UINT Adapter) PURE;
140 STDMETHOD(CreateDevice)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType,HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS * pPresentationParameters, struct IDirect3DDevice8 ** ppReturnedDeviceInterface) PURE;
142 #undef INTERFACE
144 #if !defined(__cplusplus) || defined(CINTERFACE)
145 /*** IUnknown methods ***/
146 #define IDirect3D8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
147 #define IDirect3D8_AddRef(p) (p)->lpVtbl->AddRef(p)
148 #define IDirect3D8_Release(p) (p)->lpVtbl->Release(p)
149 /*** IDirect3D8 methods ***/
150 #define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
151 #define IDirect3D8_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
152 #define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
153 #define IDirect3D8_GetAdapterModeCount(p,a) (p)->lpVtbl->GetAdapterModeCount(p,a)
154 #define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->lpVtbl->EnumAdapterModes(p,a,b,c)
155 #define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
156 #define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
157 #define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
158 #define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e)
159 #define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
160 #define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
161 #define IDirect3D8_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
162 #define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
163 #else
164 /*** IUnknown methods ***/
165 #define IDirect3D8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
166 #define IDirect3D8_AddRef(p) (p)->AddRef()
167 #define IDirect3D8_Release(p) (p)->Release()
168 /*** IDirect3D8 methods ***/
169 #define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a)
170 #define IDirect3D8_GetAdapterCount(p) (p)->GetAdapterCount()
171 #define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c)
172 #define IDirect3D8_GetAdapterModeCount(p,a) (p)->GetAdapterModeCount(a)
173 #define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->EnumAdapterModes(a,b,c)
174 #define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b)
175 #define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e)
176 #define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f)
177 #define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->CheckDeviceMultiSampleType(a,b,c,d,e)
178 #define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e)
179 #define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c)
180 #define IDirect3D8_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a)
181 #define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f)
182 #endif
184 /*****************************************************************************
185 * IDirect3DVolume8 interface
187 #define INTERFACE IDirect3DVolume8
188 DECLARE_INTERFACE_(IDirect3DVolume8,IUnknown)
190 /*** IUnknown methods ***/
191 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
192 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
193 STDMETHOD_(ULONG,Release)(THIS) PURE;
194 /*** IDirect3DVolume8 methods ***/
195 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE;
196 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
197 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void * pData, DWORD * pSizeOfData) PURE;
198 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
199 STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE;
200 STDMETHOD(GetDesc)(THIS_ D3DVOLUME_DESC * pDesc) PURE;
201 STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX * pLockedVolume,CONST D3DBOX * pBox, DWORD Flags) PURE;
202 STDMETHOD(UnlockBox)(THIS) PURE;
204 #undef INTERFACE
206 #if !defined(__cplusplus) || defined(CINTERFACE)
207 /*** IUnknown methods ***/
208 #define IDirect3DVolume8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
209 #define IDirect3DVolume8_AddRef(p) (p)->lpVtbl->AddRef(p)
210 #define IDirect3DVolume8_Release(p) (p)->lpVtbl->Release(p)
211 /*** IDirect3DVolume8 methods ***/
212 #define IDirect3DVolume8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
213 #define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
214 #define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
215 #define IDirect3DVolume8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
216 #define IDirect3DVolume8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
217 #define IDirect3DVolume8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
218 #define IDirect3DVolume8_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
219 #define IDirect3DVolume8_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
220 #else
221 /*** IUnknown methods ***/
222 #define IDirect3DVolume8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
223 #define IDirect3DVolume8_AddRef(p) (p)->AddRef()
224 #define IDirect3DVolume8_Release(p) (p)->Release()
225 /*** IDirect3DVolume8 methods ***/
226 #define IDirect3DVolume8_GetDevice(p,a) (p)->GetDevice(a)
227 #define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
228 #define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
229 #define IDirect3DVolume8_FreePrivateData(p,a) (p)->FreePrivateData(a)
230 #define IDirect3DVolume8_GetContainer(p,a,b) (p)->GetContainer(a,b)
231 #define IDirect3DVolume8_GetDesc(p,a) (p)->GetDesc(a)
232 #define IDirect3DVolume8_LockBox(p,a,b,c) (p)->LockBox(a,b,c)
233 #define IDirect3DVolume8_UnlockBox(p) (p)->UnlockBox()
234 #endif
236 /*****************************************************************************
237 * IDirect3DSwapChain8 interface
239 #define INTERFACE IDirect3DSwapChain8
240 DECLARE_INTERFACE_(IDirect3DSwapChain8,IUnknown)
242 /*** IUnknown methods ***/
243 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
244 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
245 STDMETHOD_(ULONG,Release)(THIS) PURE;
246 /*** IDirect3DSwapChain8 methods ***/
247 STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect, CONST RECT * pDestRect, HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE;
248 STDMETHOD(GetBackBuffer)(THIS_ UINT BackBuffer, D3DBACKBUFFER_TYPE Type, struct IDirect3DSurface8 ** ppBackBuffer) PURE;
250 #undef INTERFACE
252 #if !defined(__cplusplus) || defined(CINTERFACE)
253 /*** IUnknown methods ***/
254 #define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
255 #define IDirect3DSwapChain8_AddRef(p) (p)->lpVtbl->AddRef(p)
256 #define IDirect3DSwapChain8_Release(p) (p)->lpVtbl->Release(p)
257 /*** IDirect3DSwapChain8 methods ***/
258 #define IDirect3DSwapChain8_Present(p,a,b,c) (p)->lpVtbl->Present(p,a,b,c)
259 #define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
260 #else
261 /*** IUnknown methods ***/
262 #define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
263 #define IDirect3DSwapChain8_AddRef(p) (p)->AddRef()
264 #define IDirect3DSwapChain8_Release(p) (p)->Release()
265 /*** IDirect3DSwapChain8 methods ***/
266 #define IDirect3DSwapChain8_Present(p,a,b,c) (p)->Present(a,b,c)
267 #define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
268 #endif
270 /*****************************************************************************
271 * IDirect3DSurface8 interface
273 #define INTERFACE IDirect3DSurface8
274 DECLARE_INTERFACE_(IDirect3DSurface8,IUnknown)
276 /*** IUnknown methods ***/
277 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
278 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
279 STDMETHOD_(ULONG,Release)(THIS) PURE;
280 /*** IDirect3DSurface8 methods ***/
281 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE;
282 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void * pData,DWORD SizeOfData,DWORD Flags) PURE;
283 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void * pData,DWORD * pSizeOfData) PURE;
284 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
285 STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE;
286 STDMETHOD(GetDesc)(THIS_ D3DSURFACE_DESC * pDesc) PURE;
287 STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT * pLockedRect, CONST RECT * pRect,DWORD Flags) PURE;
288 STDMETHOD(UnlockRect)(THIS) PURE;
290 #undef INTERFACE
292 #if !defined(__cplusplus) || defined(CINTERFACE)
293 /*** IUnknown methods ***/
294 #define IDirect3DSurface8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
295 #define IDirect3DSurface8_AddRef(p) (p)->lpVtbl->AddRef(p)
296 #define IDirect3DSurface8_Release(p) (p)->lpVtbl->Release(p)
297 /*** IDirect3DSurface8 methods ***/
298 #define IDirect3DSurface8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
299 #define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
300 #define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
301 #define IDirect3DSurface8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
302 #define IDirect3DSurface8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
303 #define IDirect3DSurface8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
304 #define IDirect3DSurface8_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
305 #define IDirect3DSurface8_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
306 #else
307 /*** IUnknown methods ***/
308 #define IDirect3DSurface8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
309 #define IDirect3DSurface8_AddRef(p) (p)->AddRef()
310 #define IDirect3DSurface8_Release(p) (p)->Release()
311 /*** IDirect3DSurface8 methods ***/
312 #define IDirect3DSurface8_GetDevice(p,a) (p)->GetDevice(a)
313 #define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
314 #define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
315 #define IDirect3DSurface8_FreePrivateData(p,a) (p)->FreePrivateData(a)
316 #define IDirect3DSurface8_GetContainer(p,a,b) (p)->GetContainer(a,b)
317 #define IDirect3DSurface8_GetDesc(p,a) (p)->GetDesc(a)
318 #define IDirect3DSurface8_LockRect(p,a,b,c) (p)->LockRect(a,b,c)
319 #define IDirect3DSurface8_UnlockRect(p) (p)->UnlockRect()
320 #endif
322 /*****************************************************************************
323 * IDirect3DResource8 interface
325 #define INTERFACE IDirect3DResource8
326 DECLARE_INTERFACE_(IDirect3DResource8,IUnknown)
328 /*** IUnknown methods ***/
329 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
330 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
331 STDMETHOD_(ULONG,Release)(THIS) PURE;
332 /*** IDirect3DResource8 methods ***/
333 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE;
334 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
335 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
336 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
337 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
338 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
339 STDMETHOD_(void,PreLoad)(THIS) PURE;
340 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
342 #undef INTERFACE
344 #if !defined(__cplusplus) || defined(CINTERFACE)
345 /*** IUnknown methods ***/
346 #define IDirect3DResource8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
347 #define IDirect3DResource8_AddRef(p) (p)->lpVtbl->AddRef(p)
348 #define IDirect3DResource8_Release(p) (p)->lpVtbl->Release(p)
349 /*** IDirect3DResource8 methods ***/
350 #define IDirect3DResource8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
351 #define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
352 #define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
353 #define IDirect3DResource8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
354 #define IDirect3DResource8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
355 #define IDirect3DResource8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
356 #define IDirect3DResource8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
357 #define IDirect3DResource8_GetType(p) (p)->lpVtbl->GetType(p)
358 #else
359 /*** IUnknown methods ***/
360 #define IDirect3DResource8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
361 #define IDirect3DResource8_AddRef(p) (p)->AddRef()
362 #define IDirect3DResource8_Release(p) (p)->Release()
363 /*** IDirect3DResource8 methods ***/
364 #define IDirect3DResource8_GetDevice(p,a) (p)->GetDevice(a)
365 #define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
366 #define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
367 #define IDirect3DResource8_FreePrivateData(p,a) (p)->FreePrivateData(a)
368 #define IDirect3DResource8_SetPriority(p,a) (p)->SetPriority(a)
369 #define IDirect3DResource8_GetPriority(p) (p)->GetPriority()
370 #define IDirect3DResource8_PreLoad(p) (p)->PreLoad()
371 #define IDirect3DResource8_GetType(p) (p)->GetType()
372 #endif
374 /*****************************************************************************
375 * IDirect3DVertexBuffer8 interface
377 #define INTERFACE IDirect3DVertexBuffer8
378 DECLARE_INTERFACE_(IDirect3DVertexBuffer8,IDirect3DResource8)
380 /*** IUnknown methods ***/
381 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
382 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
383 STDMETHOD_(ULONG,Release)(THIS) PURE;
384 /*** IDirect3DResource8 methods ***/
385 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE;
386 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
387 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
388 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
389 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
390 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
391 STDMETHOD_(void,PreLoad)(THIS) PURE;
392 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
393 /*** IDirect3DVertexBuffer8 methods ***/
394 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE;
395 STDMETHOD(Unlock)(THIS) PURE;
396 STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC * pDesc) PURE;
398 #undef INTERFACE
400 #if !defined(__cplusplus) || defined(CINTERFACE)
401 /*** IUnknown methods ***/
402 #define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
403 #define IDirect3DVertexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
404 #define IDirect3DVertexBuffer8_Release(p) (p)->lpVtbl->Release(p)
405 /*** IDirect3DVertexBuffer8 methods: IDirect3DResource8 ***/
406 #define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
407 #define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
408 #define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
409 #define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
410 #define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
411 #define IDirect3DVertexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
412 #define IDirect3DVertexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
413 #define IDirect3DVertexBuffer8_GetType(p) (p)->lpVtbl->GetType(p)
414 /*** IDirect3DVertexBuffer8 methods ***/
415 #define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
416 #define IDirect3DVertexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p)
417 #define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
418 #else
419 /*** IUnknown methods ***/
420 #define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
421 #define IDirect3DVertexBuffer8_AddRef(p) (p)->AddRef()
422 #define IDirect3DVertexBuffer8_Release(p) (p)->Release()
423 /*** IDirect3DVertexBuffer8 methods: IDirect3DResource8 ***/
424 #define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->GetDevice(a)
425 #define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
426 #define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
427 #define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a)
428 #define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->SetPriority(a)
429 #define IDirect3DVertexBuffer8_GetPriority(p) (p)->GetPriority()
430 #define IDirect3DVertexBuffer8_PreLoad(p) (p)->PreLoad()
431 #define IDirect3DVertexBuffer8_GetType(p) (p)->GetType()
432 /*** IDirect3DVertexBuffer8 methods ***/
433 #define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
434 #define IDirect3DVertexBuffer8_Unlock(p) (p)->Unlock()
435 #define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->GetDesc(a)
436 #endif
438 /*****************************************************************************
439 * IDirect3DIndexBuffer8 interface
441 #define INTERFACE IDirect3DIndexBuffer8
442 DECLARE_INTERFACE_(IDirect3DIndexBuffer8,IDirect3DResource8)
444 /*** IUnknown methods ***/
445 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
446 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
447 STDMETHOD_(ULONG,Release)(THIS) PURE;
448 /*** IDirect3DResource8 methods ***/
449 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE;
450 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
451 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
452 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
453 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
454 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
455 STDMETHOD_(void,PreLoad)(THIS) PURE;
456 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
457 /*** IDirect3DIndexBuffer8 methods ***/
458 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE;
459 STDMETHOD(Unlock)(THIS) PURE;
460 STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC * pDesc) PURE;
462 #undef INTERFACE
464 #if !defined(__cplusplus) || defined(CINTERFACE)
465 /*** IUnknown methods ***/
466 #define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
467 #define IDirect3DIndexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
468 #define IDirect3DIndexBuffer8_Release(p) (p)->lpVtbl->Release(p)
469 /*** IDirect3DIndexBuffer8 methods: IDirect3DResource8 ***/
470 #define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
471 #define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
472 #define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
473 #define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
474 #define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
475 #define IDirect3DIndexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
476 #define IDirect3DIndexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
477 #define IDirect3DIndexBuffer8_GetType(p) (p)->lpVtbl->GetType(p)
478 /*** IDirect3DIndexBuffer8 methods ***/
479 #define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
480 #define IDirect3DIndexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p)
481 #define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
482 #else
483 /*** IUnknown methods ***/
484 #define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
485 #define IDirect3DIndexBuffer8_AddRef(p) (p)->AddRef()
486 #define IDirect3DIndexBuffer8_Release(p) (p)->Release()
487 /*** IDirect3DIndexBuffer8 methods: IDirect3DResource8 ***/
488 #define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->GetDevice(a)
489 #define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
490 #define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
491 #define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a)
492 #define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->SetPriority(a)
493 #define IDirect3DIndexBuffer8_GetPriority(p) (p)->GetPriority()
494 #define IDirect3DIndexBuffer8_PreLoad(p) (p)->PreLoad()
495 #define IDirect3DIndexBuffer8_GetType(p) (p)->GetType()
496 /*** IDirect3DIndexBuffer8 methods ***/
497 #define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
498 #define IDirect3DIndexBuffer8_Unlock(p) (p)->Unlock()
499 #define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->GetDesc(a)
500 #endif
502 /*****************************************************************************
503 * IDirect3DBaseTexture8 interface
505 #define INTERFACE IDirect3DBaseTexture8
506 DECLARE_INTERFACE_(IDirect3DBaseTexture8,IDirect3DResource8)
508 /*** IUnknown methods ***/
509 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
510 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
511 STDMETHOD_(ULONG,Release)(THIS) PURE;
512 /*** IDirect3DResource8 methods ***/
513 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE;
514 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
515 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
516 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
517 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
518 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
519 STDMETHOD_(void,PreLoad)(THIS) PURE;
520 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
521 /*** IDirect3DBaseTexture8 methods ***/
522 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE;
523 STDMETHOD_(DWORD,GetLOD)(THIS) PURE;
524 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE;
526 #undef INTERFACE
528 #if !defined(__cplusplus) || defined(CINTERFACE)
529 /*** IUnknown methods ***/
530 #define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
531 #define IDirect3DBaseTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)
532 #define IDirect3DBaseTexture8_Release(p) (p)->lpVtbl->Release(p)
533 /*** IDirect3DBaseTexture8 methods: IDirect3DResource8 ***/
534 #define IDirect3DBaseTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
535 #define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
536 #define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
537 #define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
538 #define IDirect3DBaseTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
539 #define IDirect3DBaseTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
540 #define IDirect3DBaseTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
541 #define IDirect3DBaseTexture8_GetType(p) (p)->lpVtbl->GetType(p)
542 /*** IDirect3DBaseTexture8 methods ***/
543 #define IDirect3DBaseTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
544 #define IDirect3DBaseTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)
545 #define IDirect3DBaseTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
546 #else
547 /*** IUnknown methods ***/
548 #define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
549 #define IDirect3DBaseTexture8_AddRef(p) (p)->AddRef()
550 #define IDirect3DBaseTexture8_Release(p) (p)->Release()
551 /*** IDirect3DBaseTexture8 methods: IDirect3DResource8 ***/
552 #define IDirect3DBaseTexture8_GetDevice(p,a) (p)->GetDevice(a)
553 #define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
554 #define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
555 #define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)
556 #define IDirect3DBaseTexture8_SetPriority(p,a) (p)->SetPriority(a)
557 #define IDirect3DBaseTexture8_GetPriority(p) (p)->GetPriority()
558 #define IDirect3DBaseTexture8_PreLoad(p) (p)->PreLoad()
559 #define IDirect3DBaseTexture8_GetType(p) (p)->GetType()
560 /*** IDirect3DBaseTexture8 methods ***/
561 #define IDirect3DBaseTexture8_SetLOD(p,a) (p)->SetLOD(a)
562 #define IDirect3DBaseTexture8_GetLOD(p) (p)->GetLOD()
563 #define IDirect3DBaseTexture8_GetLevelCount(p) (p)->GetLevelCount()
564 #endif
566 /*****************************************************************************
567 * IDirect3DCubeTexture8 interface
569 #define INTERFACE IDirect3DCubeTexture8
570 DECLARE_INTERFACE_(IDirect3DCubeTexture8,IDirect3DBaseTexture8)
572 /*** IUnknown methods ***/
573 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
574 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
575 STDMETHOD_(ULONG,Release)(THIS) PURE;
576 /*** IDirect3DResource8 methods ***/
577 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE;
578 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
579 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
580 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
581 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
582 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
583 STDMETHOD_(void,PreLoad)(THIS) PURE;
584 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
585 /*** IDirect3DBaseTexture8 methods ***/
586 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE;
587 STDMETHOD_(DWORD,GetLOD)(THIS) PURE;
588 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE;
589 /*** IDirect3DCubeTexture8 methods ***/
590 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC * pDesc) PURE;
591 STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,IDirect3DSurface8 ** ppCubeMapSurface) PURE;
592 STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,D3DLOCKED_RECT * pLockedRect,CONST RECT * pRect,DWORD Flags) PURE;
593 STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level) PURE;
594 STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType,CONST RECT * pDirtyRect) PURE;
596 #undef INTERFACE
598 #if !defined(__cplusplus) || defined(CINTERFACE)
599 /*** IUnknown methods ***/
600 #define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
601 #define IDirect3DCubeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)
602 #define IDirect3DCubeTexture8_Release(p) (p)->lpVtbl->Release(p)
603 /*** IDirect3DCubeTexture8 methods: IDirect3DResource8 ***/
604 #define IDirect3DCubeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
605 #define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
606 #define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
607 #define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
608 #define IDirect3DCubeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
609 #define IDirect3DCubeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
610 #define IDirect3DCubeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
611 #define IDirect3DCubeTexture8_GetType(p) (p)->lpVtbl->GetType(p)
612 /*** IDirect3DCubeTexture8 methods: IDirect3DBaseTexture8 ***/
613 #define IDirect3DCubeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
614 #define IDirect3DCubeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)
615 #define IDirect3DCubeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
616 /*** IDirect3DCubeTexture8 methods ***/
617 #define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
618 #define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
619 #define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
620 #define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
621 #define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
622 #else
623 /*** IUnknown methods ***/
624 #define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
625 #define IDirect3DCubeTexture8_AddRef(p) (p)->AddRef()
626 #define IDirect3DCubeTexture8_Release(p) (p)->Release()
627 /*** IDirect3DCubeTexture8 methods: IDirect3DResource8 ***/
628 #define IDirect3DCubeTexture8_GetDevice(p,a) (p)->GetDevice(a)
629 #define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
630 #define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
631 #define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)
632 #define IDirect3DCubeTexture8_SetPriority(p,a) (p)->SetPriority(a)
633 #define IDirect3DCubeTexture8_GetPriority(p) (p)->GetPriority()
634 #define IDirect3DCubeTexture8_PreLoad(p) (p)->PreLoad()
635 #define IDirect3DCubeTexture8_GetType(p) (p)->GetType()
636 /*** IDirect3DCubeTexture8 methods: IDirect3DBaseTexture8 ***/
637 #define IDirect3DCubeTexture8_SetLOD(p,a) (p)->SetLOD(a)
638 #define IDirect3DCubeTexture8_GetLOD(p) (p)->GetLOD()
639 #define IDirect3DCubeTexture8_GetLevelCount(p) (p)->GetLevelCount()
640 /*** IDirect3DCubeTexture8 methods ***/
641 #define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
642 #define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c)
643 #define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e)
644 #define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->UnlockRect(a,b)
645 #define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b)
646 #endif
648 /*****************************************************************************
649 * IDirect3DTexture8 interface
651 #define INTERFACE IDirect3DTexture8
652 DECLARE_INTERFACE_(IDirect3DTexture8,IDirect3DBaseTexture8)
654 /*** IUnknown methods ***/
655 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
656 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
657 STDMETHOD_(ULONG,Release)(THIS) PURE;
658 /*** IDirect3DResource8 methods ***/
659 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE;
660 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
661 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
662 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
663 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
664 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
665 STDMETHOD_(void,PreLoad)(THIS) PURE;
666 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
667 /*** IDirect3DBaseTexture8 methods ***/
668 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE;
669 STDMETHOD_(DWORD,GetLOD)(THIS) PURE;
670 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE;
671 /*** IDirect3DTexture8 methods ***/
672 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC * pDesc) PURE;
673 STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level,IDirect3DSurface8 ** ppSurfaceLevel) PURE;
674 STDMETHOD(LockRect)(THIS_ UINT Level,D3DLOCKED_RECT * pLockedRect,CONST RECT * pRect,DWORD Flags) PURE;
675 STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE;
676 STDMETHOD(AddDirtyRect)(THIS_ CONST RECT * pDirtyRect) PURE;
678 #undef INTERFACE
680 #if !defined(__cplusplus) || defined(CINTERFACE)
681 /*** IUnknown methods ***/
682 #define IDirect3DTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
683 #define IDirect3DTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)
684 #define IDirect3DTexture8_Release(p) (p)->lpVtbl->Release(p)
685 /*** IDirect3DTexture8 methods: IDirect3DResource8 ***/
686 #define IDirect3DTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
687 #define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
688 #define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
689 #define IDirect3DTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
690 #define IDirect3DTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
691 #define IDirect3DTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
692 #define IDirect3DTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
693 #define IDirect3DTexture8_GetType(p) (p)->lpVtbl->GetType(p)
694 /*** IDirect3DTexture8 methods: IDirect3DBaseTexture8 ***/
695 #define IDirect3DTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
696 #define IDirect3DTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)
697 #define IDirect3DTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
698 /*** IDirect3DTexture8 methods ***/
699 #define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
700 #define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
701 #define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
702 #define IDirect3DTexture8_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
703 #define IDirect3DTexture8_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
704 #else
705 /*** IUnknown methods ***/
706 #define IDirect3DTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
707 #define IDirect3DTexture8_AddRef(p) (p)->AddRef()
708 #define IDirect3DTexture8_Release(p) (p)->Release()
709 /*** IDirect3DTexture8 methods: IDirect3DResource8 ***/
710 #define IDirect3DTexture8_GetDevice(p,a) (p)->GetDevice(a)
711 #define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
712 #define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
713 #define IDirect3DTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)
714 #define IDirect3DTexture8_SetPriority(p,a) (p)->SetPriority(a)
715 #define IDirect3DTexture8_GetPriority(p) (p)->GetPriority()
716 #define IDirect3DTexture8_PreLoad(p) (p)->PreLoad()
717 #define IDirect3DTexture8_GetType(p) (p)->GetType()
718 /*** IDirect3DTexture8 methods: IDirect3DBaseTexture8 ***/
719 #define IDirect3DTexture8_SetLOD(p,a) (p)->SetLOD(a)
720 #define IDirect3DTexture8_GetLOD(p) (p)->GetLOD()
721 #define IDirect3DTexture8_GetLevelCount(p) (p)->GetLevelCount()
722 /*** IDirect3DTexture8 methods ***/
723 #define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
724 #define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b)
725 #define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d)
726 #define IDirect3DTexture8_UnlockRect(p,a) (p)->UnlockRect(a)
727 #define IDirect3DTexture8_AddDirtyRect(p,a) (p)->AddDirtyRect(a)
728 #endif
730 /*****************************************************************************
731 * IDirect3DVolumeTexture8 interface
733 #define INTERFACE IDirect3DVolumeTexture8
734 DECLARE_INTERFACE_(IDirect3DVolumeTexture8,IDirect3DBaseTexture8)
736 /*** IUnknown methods ***/
737 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
738 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
739 STDMETHOD_(ULONG,Release)(THIS) PURE;
740 /*** IDirect3DResource8 methods ***/
741 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE;
742 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
743 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
744 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
745 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
746 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
747 STDMETHOD_(void,PreLoad)(THIS) PURE;
748 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
749 /*** IDirect3DBaseTexture8 methods ***/
750 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE;
751 STDMETHOD_(DWORD,GetLOD)(THIS) PURE;
752 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE;
753 /*** IDirect3DVolumeTexture8 methods ***/
754 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DVOLUME_DESC * pDesc) PURE;
755 STDMETHOD(GetVolumeLevel)(THIS_ UINT Level,IDirect3DVolume8 ** ppVolumeLevel) PURE;
756 STDMETHOD(LockBox)(THIS_ UINT Level,D3DLOCKED_BOX * pLockedVolume,CONST D3DBOX * pBox,DWORD Flags) PURE;
757 STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE;
758 STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX * pDirtyBox) PURE;
760 #undef INTERFACE
762 #if !defined(__cplusplus) || defined(CINTERFACE)
763 /*** IUnknown methods ***/
764 #define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
765 #define IDirect3DVolumeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)
766 #define IDirect3DVolumeTexture8_Release(p) (p)->lpVtbl->Release(p)
767 /*** IDirect3DVolumeTexture8 methods: IDirect3DResource8 ***/
768 #define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
769 #define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
770 #define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
771 #define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
772 #define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
773 #define IDirect3DVolumeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
774 #define IDirect3DVolumeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
775 #define IDirect3DVolumeTexture8_GetType(p) (p)->lpVtbl->GetType(p)
776 /*** IDirect3DVolumeTexture8 methods: IDirect3DBaseTexture8 ***/
777 #define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
778 #define IDirect3DVolumeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)
779 #define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
780 /*** IDirect3DVolumeTexture8 methods ***/
781 #define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
782 #define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
783 #define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
784 #define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
785 #define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
786 #else
787 /*** IUnknown methods ***/
788 #define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
789 #define IDirect3DVolumeTexture8_AddRef(p) (p)->AddRef()
790 #define IDirect3DVolumeTexture8_Release(p) (p)->Release()
791 /*** IDirect3DVolumeTexture8 methods: IDirect3DResource8 ***/
792 #define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->GetDevice(a)
793 #define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
794 #define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
795 #define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)
796 #define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->SetPriority(a)
797 #define IDirect3DVolumeTexture8_GetPriority(p) (p)->GetPriority()
798 #define IDirect3DVolumeTexture8_PreLoad(p) (p)->PreLoad()
799 #define IDirect3DVolumeTexture8_GetType(p) (p)->GetType()
800 /*** IDirect3DVolumeTexture8 methods: IDirect3DBaseTexture8 ***/
801 #define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->SetLOD(a)
802 #define IDirect3DVolumeTexture8_GetLOD(p) (p)->GetLOD()
803 #define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->GetLevelCount()
804 /*** IDirect3DVolumeTexture8 methods ***/
805 #define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
806 #define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b)
807 #define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d)
808 #define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->UnlockBox(a)
809 #define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->AddDirtyBox(a)
810 #endif
812 /*****************************************************************************
813 * IDirect3DDevice8 interface
815 #define INTERFACE IDirect3DDevice8
816 DECLARE_INTERFACE_(IDirect3DDevice8,IUnknown)
818 /*** IUnknown methods ***/
819 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
820 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
821 STDMETHOD_(ULONG,Release)(THIS) PURE;
822 /*** IDirect3DDevice8 methods ***/
823 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
824 STDMETHOD_(UINT,GetAvailableTextureMem)(THIS) PURE;
825 STDMETHOD(ResourceManagerDiscardBytes)(THIS_ DWORD Bytes) PURE;
826 STDMETHOD(GetDirect3D)(THIS_ IDirect3D8 ** ppD3D8) PURE;
827 STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS8 * pCaps) PURE;
828 STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE * pMode) PURE;
829 STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS * pParameters) PURE;
830 STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, IDirect3DSurface8 * pCursorBitmap) PURE;
831 STDMETHOD_(void,SetCursorPosition)(THIS_ UINT XScreenSpace, UINT YScreenSpace,DWORD Flags) PURE;
832 STDMETHOD_(BOOL,ShowCursor)(THIS_ BOOL bShow) PURE;
833 STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS * pPresentationParameters, IDirect3DSwapChain8 ** pSwapChain) PURE;
834 STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS * pPresentationParameters) PURE;
835 STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect,CONST RECT * pDestRect,HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE;
836 STDMETHOD(GetBackBuffer)(THIS_ UINT BackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface8 ** ppBackBuffer) PURE;
837 STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS * pRasterStatus) PURE;
838 STDMETHOD_(void,SetGammaRamp)(THIS_ DWORD Flags,CONST D3DGAMMARAMP * pRamp) PURE;
839 STDMETHOD_(void,GetGammaRamp)(THIS_ D3DGAMMARAMP * pRamp) PURE;
840 STDMETHOD(CreateTexture)(THIS_ UINT Width,UINT Height,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DTexture8 ** ppTexture) PURE;
841 STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width,UINT Height,UINT Depth,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DVolumeTexture8 ** ppVolumeTexture) PURE;
842 STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DCubeTexture8 ** ppCubeTexture) PURE;
843 STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length,DWORD Usage,DWORD FVF,D3DPOOL Pool,IDirect3DVertexBuffer8 ** ppVertexBuffer) PURE;
844 STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DIndexBuffer8 ** ppIndexBuffer) PURE;
845 STDMETHOD(CreateRenderTarget)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,BOOL Lockable,IDirect3DSurface8 ** ppSurface) PURE;
846 STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,IDirect3DSurface8 ** ppSurface) PURE;
847 STDMETHOD(CreateImageSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,IDirect3DSurface8 ** ppSurface) PURE;
848 STDMETHOD(CopyRects)(THIS_ IDirect3DSurface8 * pSourceSurface,CONST RECT * pSourceRectsArray,UINT cRects,IDirect3DSurface8 * pDestinationSurface,CONST POINT * pDestPointsArray) PURE;
849 STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture8 * pSourceTexture,IDirect3DBaseTexture8 * pDestinationTexture) PURE;
850 STDMETHOD(GetFrontBuffer)(THIS_ IDirect3DSurface8 * pDestSurface) PURE;
851 STDMETHOD(SetRenderTarget)(THIS_ IDirect3DSurface8 * pRenderTarget,IDirect3DSurface8 * pNewZStencil) PURE;
852 STDMETHOD(GetRenderTarget)(THIS_ IDirect3DSurface8 ** ppRenderTarget) PURE;
853 STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface8 ** ppZStencilSurface) PURE;
854 STDMETHOD(BeginScene)(THIS) PURE;
855 STDMETHOD(EndScene)(THIS) PURE;
856 STDMETHOD(Clear)(THIS_ DWORD Count,CONST D3DRECT * pRects,DWORD Flags,D3DCOLOR Color,float Z,DWORD Stencil) PURE;
857 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,CONST D3DMATRIX * pMatrix) PURE;
858 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,D3DMATRIX * pMatrix) PURE;
859 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX * pMatrix) PURE;
860 STDMETHOD(SetViewport)(THIS_ CONST D3DVIEWPORT8 * pViewport) PURE;
861 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT8 * pViewport) PURE;
862 STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL8 * pMaterial) PURE;
863 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL8 *pMaterial) PURE;
864 STDMETHOD(SetLight)(THIS_ DWORD Index,CONST D3DLIGHT8 * pLight) PURE;
865 STDMETHOD(GetLight)(THIS_ DWORD Index,D3DLIGHT8 * pLight) PURE;
866 STDMETHOD(LightEnable)(THIS_ DWORD Index,BOOL Enable) PURE;
867 STDMETHOD(GetLightEnable)(THIS_ DWORD Index,BOOL * pEnable) PURE;
868 STDMETHOD(SetClipPlane)(THIS_ DWORD Index,CONST float * pPlane) PURE;
869 STDMETHOD(GetClipPlane)(THIS_ DWORD Index,float * pPlane) PURE;
870 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD Value) PURE;
871 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD * pValue) PURE;
872 STDMETHOD(BeginStateBlock)(THIS) PURE;
873 STDMETHOD(EndStateBlock)(THIS_ DWORD * pToken) PURE;
874 STDMETHOD(ApplyStateBlock)(THIS_ DWORD Token) PURE;
875 STDMETHOD(CaptureStateBlock)(THIS_ DWORD Token) PURE;
876 STDMETHOD(DeleteStateBlock)(THIS_ DWORD Token) PURE;
877 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type,DWORD * pToken) PURE;
878 STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS8 * pClipStatus) PURE;
879 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS8 * pClipStatus) PURE;
880 STDMETHOD(GetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8 ** ppTexture) PURE;
881 STDMETHOD(SetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8 * pTexture) PURE;
882 STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD * pValue) PURE;
883 STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE;
884 STDMETHOD(ValidateDevice)(THIS_ DWORD * pNumPasses) PURE;
885 STDMETHOD(GetInfo)(THIS_ DWORD DevInfoID,void * pDevInfoStruct,DWORD DevInfoStructSize) PURE;
886 STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber,CONST PALETTEENTRY * pEntries) PURE;
887 STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY * pEntries) PURE;
888 STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE;
889 STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT * PaletteNumber) PURE;
890 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE;
891 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT minIndex,UINT NumVertices,UINT startIndex,UINT primCount) PURE;
892 STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT PrimitiveCount,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;
893 STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT MinVertexIndex,UINT NumVertexIndices,UINT PrimitiveCount,CONST void * pIndexData,D3DFORMAT IndexDataFormat,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;
894 STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex,UINT DestIndex,UINT VertexCount,IDirect3DVertexBuffer8 * pDestBuffer,DWORD Flags) PURE;
895 STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD * pDeclaration,CONST DWORD * pFunction,DWORD * pHandle,DWORD Usage) PURE;
896 STDMETHOD(SetVertexShader)(THIS_ DWORD Handle) PURE;
897 STDMETHOD(GetVertexShader)(THIS_ DWORD * pHandle) PURE;
898 STDMETHOD(DeleteVertexShader)(THIS_ DWORD Handle) PURE;
899 STDMETHOD(SetVertexShaderConstant)(THIS_ DWORD Register,CONST void * pConstantData,DWORD ConstantCount) PURE;
900 STDMETHOD(GetVertexShaderConstant)(THIS_ DWORD Register,void * pConstantData,DWORD ConstantCount) PURE;
901 STDMETHOD(GetVertexShaderDeclaration)(THIS_ DWORD Handle,void * pData,DWORD * pSizeOfData) PURE;
902 STDMETHOD(GetVertexShaderFunction)(THIS_ DWORD Handle,void * pData,DWORD * pSizeOfData) PURE;
903 STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8 * pStreamData,UINT Stride) PURE;
904 STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8 ** ppStreamData,UINT * pStride) PURE;
905 STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer8 * pIndexData,UINT BaseVertexIndex) PURE;
906 STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer8 ** ppIndexData,UINT * pBaseVertexIndex) PURE;
907 STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD * pFunction,DWORD * pHandle) PURE;
908 STDMETHOD(SetPixelShader)(THIS_ DWORD Handle) PURE;
909 STDMETHOD(GetPixelShader)(THIS_ DWORD * pHandle) PURE;
910 STDMETHOD(DeletePixelShader)(THIS_ DWORD Handle) PURE;
911 STDMETHOD(SetPixelShaderConstant)(THIS_ DWORD Register,CONST void * pConstantData,DWORD ConstantCount) PURE;
912 STDMETHOD(GetPixelShaderConstant)(THIS_ DWORD Register,void * pConstantData,DWORD ConstantCount) PURE;
913 STDMETHOD(GetPixelShaderFunction)(THIS_ DWORD Handle,void * pData,DWORD * pSizeOfData) PURE;
914 STDMETHOD(DrawRectPatch)(THIS_ UINT Handle,CONST float * pNumSegs,CONST D3DRECTPATCH_INFO * pRectPatchInfo) PURE;
915 STDMETHOD(DrawTriPatch)(THIS_ UINT Handle,CONST float * pNumSegs,CONST D3DTRIPATCH_INFO * pTriPatchInfo) PURE;
916 STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE;
918 #undef INTERFACE
920 #if !defined(__cplusplus) || defined(CINTERFACE)
921 /*** IUnknown methods ***/
922 #define IDirect3DDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
923 #define IDirect3DDevice8_AddRef(p) (p)->lpVtbl->AddRef(p)
924 #define IDirect3DDevice8_Release(p) (p)->lpVtbl->Release(p)
925 /*** IDirect3DDevice8 methods ***/
926 #define IDirect3DDevice8_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
927 #define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
928 #define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->lpVtbl->ResourceManagerDiscardBytes(p,a)
929 #define IDirect3DDevice8_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
930 #define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
931 #define IDirect3DDevice8_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
932 #define IDirect3DDevice8_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
933 #define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
934 #define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
935 #define IDirect3DDevice8_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
936 #define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
937 #define IDirect3DDevice8_Reset(p,a) (p)->lpVtbl->Reset(p,a)
938 #define IDirect3DDevice8_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
939 #define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
940 #define IDirect3DDevice8_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
941 #define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)
942 #define IDirect3DDevice8_GetGammaRamp(p,a) (p)->lpVtbl->GetGammaRamp(p,a)
943 #define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g)
944 #define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h)
945 #define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f)
946 #define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e)
947 #define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e)
948 #define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f)
949 #define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e)
950 #define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->lpVtbl->CreateImageSurface(p,a,b,c,d)
951 #define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->lpVtbl->CopyRects(p,a,b,c,d,e)
952 #define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
953 #define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->lpVtbl->GetFrontBuffer(p,a)
954 #define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
955 #define IDirect3DDevice8_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
956 #define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
957 #define IDirect3DDevice8_BeginScene(p) (p)->lpVtbl->BeginScene(p)
958 #define IDirect3DDevice8_EndScene(p) (p)->lpVtbl->EndScene(p)
959 #define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
960 #define IDirect3DDevice8_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
961 #define IDirect3DDevice8_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
962 #define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
963 #define IDirect3DDevice8_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
964 #define IDirect3DDevice8_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
965 #define IDirect3DDevice8_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
966 #define IDirect3DDevice8_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
967 #define IDirect3DDevice8_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
968 #define IDirect3DDevice8_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
969 #define IDirect3DDevice8_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
970 #define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
971 #define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
972 #define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
973 #define IDirect3DDevice8_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
974 #define IDirect3DDevice8_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
975 #define IDirect3DDevice8_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
976 #define IDirect3DDevice8_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
977 #define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a)
978 #define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a)
979 #define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a)
980 #define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
981 #define IDirect3DDevice8_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
982 #define IDirect3DDevice8_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
983 #define IDirect3DDevice8_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
984 #define IDirect3DDevice8_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
985 #define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
986 #define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
987 #define IDirect3DDevice8_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
988 #define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)
989 #define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
990 #define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
991 #define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
992 #define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
993 #define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
994 #define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e)
995 #define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
996 #define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
997 #define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->lpVtbl->processVertices(p,a,b,c,d,e)
998 #define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d)
999 #define IDirect3DDevice8_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
1000 #define IDirect3DDevice8_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
1001 #define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->lpVtbl->DeleteVertexShader(p,a)
1002 #define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstant(p,a,b,c)
1003 #define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstant(p,a,b,c)
1004 #define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->lpVtbl->GetVertexShaderDeclaration(p,a,b,c)
1005 #define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->lpVtbl->GetVertexShaderFunction(p,a,b,c)
1006 #define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->lpVtbl->SetStreamSource(p,a,b,c)
1007 #define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->lpVtbl->GetStreamSource(p,a,b,c)
1008 #define IDirect3DDevice8_SetIndices(p,a,b) (p)->lpVtbl->SetIndices(p,a,b)
1009 #define IDirect3DDevice8_GetIndices(p,a,b) (p)->lpVtbl->GetIndices(p,a,b)
1010 #define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
1011 #define IDirect3DDevice8_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
1012 #define IDirect3DDevice8_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
1013 #define IDirect3DDevice8_DeletePixelShader(p,a) (p)->lpVtbl->DeletePixelShader(p,a)
1014 #define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstant(p,a,b,c)
1015 #define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstant(p,a,b,c)
1016 #define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->lpVtbl->GetPixelShaderFunction(p,a,b,c)
1017 #define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
1018 #define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
1019 #define IDirect3DDevice8_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
1020 #else
1021 /*** IUnknown methods ***/
1022 #define IDirect3DDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1023 #define IDirect3DDevice8_AddRef(p) (p)->AddRef()
1024 #define IDirect3DDevice8_Release(p) (p)->Release()
1025 /*** IDirect3DDevice8 methods ***/
1026 #define IDirect3DDevice8_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
1027 #define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
1028 #define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->ResourceManagerDiscardBytes(a)
1029 #define IDirect3DDevice8_GetDirect3D(p,a) (p)->GetDirect3D(a)
1030 #define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
1031 #define IDirect3DDevice8_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
1032 #define IDirect3DDevice8_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
1033 #define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
1034 #define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
1035 #define IDirect3DDevice8_ShowCursor(p,a) (p)->ShowCursor(a)
1036 #define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
1037 #define IDirect3DDevice8_Reset(p,a) (p)->Reset(a)
1038 #define IDirect3DDevice8_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
1039 #define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
1040 #define IDirect3DDevice8_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
1041 #define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->SetGammaRamp(a,b)
1042 #define IDirect3DDevice8_GetGammaRamp(p,a) (p)->GetGammaRamp(a)
1043 #define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->CreateTexture(a,b,c,d,e,f,g)
1044 #define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h)
1045 #define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->CreateCubeTexture(a,b,c,d,e,f)
1046 #define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->CreateVertexBuffer(a,b,c,d,e)
1047 #define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->CreateIndexBuffer(a,b,c,d,e)
1048 #define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->CreateRenderTarget(a,b,c,d,e,f)
1049 #define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->CreateDepthStencilSurface(a,b,c,d,e)
1050 #define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->CreateImageSurface(a,b,c,d)
1051 #define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->CopyRects(a,b,c,d,e)
1052 #define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
1053 #define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->GetFrontBuffer(a)
1054 #define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
1055 #define IDirect3DDevice8_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
1056 #define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
1057 #define IDirect3DDevice8_BeginScene(p) (p)->BeginScene()
1058 #define IDirect3DDevice8_EndScene(p) (p)->EndScene()
1059 #define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
1060 #define IDirect3DDevice8_SetTransform(p,a,b) (p)->SetTransform(a,b)
1061 #define IDirect3DDevice8_GetTransform(p,a,b) (p)->GetTransform(a,b)
1062 #define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
1063 #define IDirect3DDevice8_SetViewport(p,a) (p)->SetViewport(a)
1064 #define IDirect3DDevice8_GetViewport(p,a) (p)->GetViewport(a)
1065 #define IDirect3DDevice8_SetMaterial(p,a) (p)->SetMaterial(a)
1066 #define IDirect3DDevice8_GetMaterial(p,a) (p)->GetMaterial(a)
1067 #define IDirect3DDevice8_SetLight(p,a,b) (p)->SetLight(a,b)
1068 #define IDirect3DDevice8_GetLight(p,a,b) (p)->GetLight(a,b)
1069 #define IDirect3DDevice8_LightEnable(p,a,b) (p)->LightEnable(a,b)
1070 #define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
1071 #define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
1072 #define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
1073 #define IDirect3DDevice8_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
1074 #define IDirect3DDevice8_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
1075 #define IDirect3DDevice8_BeginStateBlock(p) (p)->BeginStateBlock()
1076 #define IDirect3DDevice8_EndStateBlock(p,a) (p)->EndStateBlock(a)
1077 #define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a)
1078 #define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a)
1079 #define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a)
1080 #define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
1081 #define IDirect3DDevice8_SetClipStatus(p,a) (p)->SetClipStatus(a)
1082 #define IDirect3DDevice8_GetClipStatus(p,a) (p)->GetClipStatus(a)
1083 #define IDirect3DDevice8_GetTexture(p,a,b) (p)->GetTexture(a,b)
1084 #define IDirect3DDevice8_SetTexture(p,a,b) (p)->SetTexture(a,b)
1085 #define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
1086 #define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
1087 #define IDirect3DDevice8_ValidateDevice(p,a) (p)->ValidateDevice(a)
1088 #define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c)
1089 #define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
1090 #define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
1091 #define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
1092 #define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
1093 #define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
1094 #define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->DrawIndexedPrimitive(a,b,c,d,e)
1095 #define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
1096 #define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
1097 #define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->processVertices(a,b,c,d,e)
1098 #define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->CreateVertexShader(a,b,c,d)
1099 #define IDirect3DDevice8_SetVertexShader(p,a) (p)->SetVertexShader(a)
1100 #define IDirect3DDevice8_GetVertexShader(p,a) (p)->GetVertexShader(a)
1101 #define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->DeleteVertexShader(a)
1102 #define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->SetVertexShaderConstant(a,b,c)
1103 #define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->GetVertexShaderConstant(a,b,c)
1104 #define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->GetVertexShaderDeclaration(a,b,c)
1105 #define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->GetVertexShaderFunction(a,b,c)
1106 #define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->SetStreamSource(a,b,c)
1107 #define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->GetStreamSource(a,b,c)
1108 #define IDirect3DDevice8_SetIndices(p,a,b) (p)->SetIndices(a,b)
1109 #define IDirect3DDevice8_GetIndices(p,a,b) (p)->GetIndices(a,b)
1110 #define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
1111 #define IDirect3DDevice8_SetPixelShader(p,a) (p)->SetPixelShader(a)
1112 #define IDirect3DDevice8_GetPixelShader(p,a) (p)->GetPixelShader(a)
1113 #define IDirect3DDevice8_DeletePixelShader(p,a) (p)->DeletePixelShader(a)
1114 #define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->SetPixelShaderConstant(a,b,c)
1115 #define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->GetPixelShaderConstant(a,b,c)
1116 #define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->GetPixelShaderFunction(a,b,c)
1117 #define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
1118 #define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
1119 #define IDirect3DDevice8_DeletePatch(p,a) (p)->DeletePatch(a)
1120 #endif
1122 #ifdef __cplusplus
1123 extern "C" {
1124 #endif /* defined(__cplusplus) */
1126 /* Define the main entrypoint as well */
1127 IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion);
1129 #ifdef __cplusplus
1130 } /* extern "C" */
1131 #endif /* defined(__cplusplus) */
1133 #endif /* __WINE_D3D8_H */