VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/d3d8.h@ 106293

最後變更 在這個檔案從106293是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

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

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