VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/d3d8.h@ 20636

Last change on this file since 20636 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette