VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/d3d.h

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

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 94.9 KB
 
1/*
2 * Copyright (C) the Wine project
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_D3D_H
29#define __WINE_D3D_H
30
31#include <stdlib.h>
32
33#define COM_NO_WINDOWS_H
34#include <objbase.h>
35#include <d3dtypes.h> /* must precede d3dcaps.h */
36#include <d3dcaps.h>
37
38/*****************************************************************************
39 * Predeclare the interfaces
40 */
41DEFINE_GUID(IID_IDirect3D, 0x3BBA0080,0x2421,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
42DEFINE_GUID(IID_IDirect3D2, 0x6aae1ec1,0x662a,0x11d0,0x88,0x9d,0x00,0xaa,0x00,0xbb,0xb7,0x6a);
43DEFINE_GUID(IID_IDirect3D3, 0xbb223240,0xe72b,0x11d0,0xa9,0xb4,0x00,0xaa,0x00,0xc0,0x99,0x3e);
44DEFINE_GUID(IID_IDirect3D7, 0xf5049e77,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
45
46DEFINE_GUID(IID_IDirect3DRampDevice, 0xF2086B20,0x259F,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
47DEFINE_GUID(IID_IDirect3DRGBDevice, 0xA4665C60,0x2673,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
48DEFINE_GUID(IID_IDirect3DHALDevice, 0x84E63dE0,0x46AA,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
49DEFINE_GUID(IID_IDirect3DMMXDevice, 0x881949a1,0xd6f3,0x11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29);
50DEFINE_GUID(IID_IDirect3DRefDevice, 0x50936643,0x13e9,0x11d1,0x89,0xaa,0x00,0xa0,0xc9,0x05,0x41,0x29);
51DEFINE_GUID(IID_IDirect3DTnLHalDevice, 0xf5049e78,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
52DEFINE_GUID(IID_IDirect3DNullDevice, 0x8767df22,0xbacc,0x11d1,0x89,0x69,0x00,0xa0,0xc9,0x06,0x29,0xa8);
53
54DEFINE_GUID(IID_IDirect3DDevice, 0x64108800,0x957d,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
55DEFINE_GUID(IID_IDirect3DDevice2, 0x93281501,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
56DEFINE_GUID(IID_IDirect3DDevice3, 0xb0ab3b60,0x33d7,0x11d1,0xa9,0x81,0x00,0xc0,0x4f,0xd7,0xb1,0x74);
57DEFINE_GUID(IID_IDirect3DDevice7, 0xf5049e79,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
58
59DEFINE_GUID(IID_IDirect3DTexture, 0x2CDCD9E0,0x25A0,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
60DEFINE_GUID(IID_IDirect3DTexture2, 0x93281502,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
61
62DEFINE_GUID(IID_IDirect3DLight, 0x4417C142,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
63
64DEFINE_GUID(IID_IDirect3DMaterial, 0x4417C144,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
65DEFINE_GUID(IID_IDirect3DMaterial2, 0x93281503,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
66DEFINE_GUID(IID_IDirect3DMaterial3, 0xca9c46f4,0xd3c5,0x11d1,0xb7,0x5a,0x00,0x60,0x08,0x52,0xb3,0x12);
67
68DEFINE_GUID(IID_IDirect3DExecuteBuffer, 0x4417C145,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
69
70DEFINE_GUID(IID_IDirect3DViewport, 0x4417C146,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
71DEFINE_GUID(IID_IDirect3DViewport2, 0x93281500,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
72DEFINE_GUID(IID_IDirect3DViewport3, 0xb0ab3b61,0x33d7,0x11d1,0xa9,0x81,0x00,0xc0,0x4f,0xd7,0xb1,0x74);
73
74DEFINE_GUID(IID_IDirect3DVertexBuffer, 0x7a503555,0x4a83,0x11d1,0xa5,0xdb,0x00,0xa0,0xc9,0x03,0x67,0xf8);
75DEFINE_GUID(IID_IDirect3DVertexBuffer7, 0xf5049e7d,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
76
77
78typedef struct IDirect3D *LPDIRECT3D;
79typedef struct IDirect3D2 *LPDIRECT3D2;
80typedef struct IDirect3D3 *LPDIRECT3D3;
81typedef struct IDirect3D7 *LPDIRECT3D7;
82
83typedef struct IDirect3DLight *LPDIRECT3DLIGHT;
84
85typedef struct IDirect3DDevice *LPDIRECT3DDEVICE;
86typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2;
87typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3;
88typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7;
89
90typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT;
91typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2;
92typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3;
93
94typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL;
95typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2;
96typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3;
97
98typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE;
99typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2;
100
101typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER;
102
103typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER;
104typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7;
105
106/* ********************************************************************
107 Error Codes
108 ******************************************************************** */
109#define D3D_OK DD_OK
110#define D3DERR_BADMAJORVERSION MAKE_DDHRESULT(700)
111#define D3DERR_BADMINORVERSION MAKE_DDHRESULT(701)
112#define D3DERR_INVALID_DEVICE MAKE_DDHRESULT(705)
113#define D3DERR_INITFAILED MAKE_DDHRESULT(706)
114#define D3DERR_DEVICEAGGREGATED MAKE_DDHRESULT(707)
115#define D3DERR_EXECUTE_CREATE_FAILED MAKE_DDHRESULT(710)
116#define D3DERR_EXECUTE_DESTROY_FAILED MAKE_DDHRESULT(711)
117#define D3DERR_EXECUTE_LOCK_FAILED MAKE_DDHRESULT(712)
118#define D3DERR_EXECUTE_UNLOCK_FAILED MAKE_DDHRESULT(713)
119#define D3DERR_EXECUTE_LOCKED MAKE_DDHRESULT(714)
120#define D3DERR_EXECUTE_NOT_LOCKED MAKE_DDHRESULT(715)
121#define D3DERR_EXECUTE_FAILED MAKE_DDHRESULT(716)
122#define D3DERR_EXECUTE_CLIPPED_FAILED MAKE_DDHRESULT(717)
123#define D3DERR_TEXTURE_NO_SUPPORT MAKE_DDHRESULT(720)
124#define D3DERR_TEXTURE_CREATE_FAILED MAKE_DDHRESULT(721)
125#define D3DERR_TEXTURE_DESTROY_FAILED MAKE_DDHRESULT(722)
126#define D3DERR_TEXTURE_LOCK_FAILED MAKE_DDHRESULT(723)
127#define D3DERR_TEXTURE_UNLOCK_FAILED MAKE_DDHRESULT(724)
128#define D3DERR_TEXTURE_LOAD_FAILED MAKE_DDHRESULT(725)
129#define D3DERR_TEXTURE_SWAP_FAILED MAKE_DDHRESULT(726)
130#define D3DERR_TEXTURE_LOCKED MAKE_DDHRESULT(727)
131#define D3DERR_TEXTURE_NOT_LOCKED MAKE_DDHRESULT(728)
132#define D3DERR_TEXTURE_GETSURF_FAILED MAKE_DDHRESULT(729)
133#define D3DERR_MATRIX_CREATE_FAILED MAKE_DDHRESULT(730)
134#define D3DERR_MATRIX_DESTROY_FAILED MAKE_DDHRESULT(731)
135#define D3DERR_MATRIX_SETDATA_FAILED MAKE_DDHRESULT(732)
136#define D3DERR_MATRIX_GETDATA_FAILED MAKE_DDHRESULT(733)
137#define D3DERR_SETVIEWPORTDATA_FAILED MAKE_DDHRESULT(734)
138#define D3DERR_INVALIDCURRENTVIEWPORT MAKE_DDHRESULT(735)
139#define D3DERR_INVALIDPRIMITIVETYPE MAKE_DDHRESULT(736)
140#define D3DERR_INVALIDVERTEXTYPE MAKE_DDHRESULT(737)
141#define D3DERR_TEXTURE_BADSIZE MAKE_DDHRESULT(738)
142#define D3DERR_INVALIDRAMPTEXTURE MAKE_DDHRESULT(739)
143#define D3DERR_MATERIAL_CREATE_FAILED MAKE_DDHRESULT(740)
144#define D3DERR_MATERIAL_DESTROY_FAILED MAKE_DDHRESULT(741)
145#define D3DERR_MATERIAL_SETDATA_FAILED MAKE_DDHRESULT(742)
146#define D3DERR_MATERIAL_GETDATA_FAILED MAKE_DDHRESULT(743)
147#define D3DERR_INVALIDPALETTE MAKE_DDHRESULT(744)
148#define D3DERR_ZBUFF_NEEDS_SYSTEMMEMORY MAKE_DDHRESULT(745)
149#define D3DERR_ZBUFF_NEEDS_VIDEOMEMORY MAKE_DDHRESULT(746)
150#define D3DERR_SURFACENOTINVIDMEM MAKE_DDHRESULT(747)
151#define D3DERR_LIGHT_SET_FAILED MAKE_DDHRESULT(750)
152#define D3DERR_LIGHTHASVIEWPORT MAKE_DDHRESULT(751)
153#define D3DERR_LIGHTNOTINTHISVIEWPORT MAKE_DDHRESULT(752)
154#define D3DERR_SCENE_IN_SCENE MAKE_DDHRESULT(760)
155#define D3DERR_SCENE_NOT_IN_SCENE MAKE_DDHRESULT(761)
156#define D3DERR_SCENE_BEGIN_FAILED MAKE_DDHRESULT(762)
157#define D3DERR_SCENE_END_FAILED MAKE_DDHRESULT(763)
158#define D3DERR_INBEGIN MAKE_DDHRESULT(770)
159#define D3DERR_NOTINBEGIN MAKE_DDHRESULT(771)
160#define D3DERR_NOVIEWPORTS MAKE_DDHRESULT(772)
161#define D3DERR_VIEWPORTDATANOTSET MAKE_DDHRESULT(773)
162#define D3DERR_VIEWPORTHASNODEVICE MAKE_DDHRESULT(774)
163#define D3DERR_NOCURRENTVIEWPORT MAKE_DDHRESULT(775)
164#define D3DERR_INVALIDVERTEXFORMAT MAKE_DDHRESULT(2048)
165#define D3DERR_COLORKEYATTACHED MAKE_DDHRESULT(2050)
166#define D3DERR_VERTEXBUFFEROPTIMIZED MAKE_DDHRESULT(2060)
167#define D3DERR_VBUF_CREATE_FAILED MAKE_DDHRESULT(2061)
168#define D3DERR_VERTEXBUFFERLOCKED MAKE_DDHRESULT(2062)
169#define D3DERR_VERTEXBUFFERUNLOCKFAILED MAKE_DDHRESULT(2063)
170#define D3DERR_ZBUFFER_NOTPRESENT MAKE_DDHRESULT(2070)
171#define D3DERR_STENCILBUFFER_NOTPRESENT MAKE_DDHRESULT(2071)
172
173#define D3DERR_WRONGTEXTUREFORMAT MAKE_DDHRESULT(2072)
174#define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_DDHRESULT(2073)
175#define D3DERR_UNSUPPORTEDCOLORARG MAKE_DDHRESULT(2074)
176#define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_DDHRESULT(2075)
177#define D3DERR_UNSUPPORTEDALPHAARG MAKE_DDHRESULT(2076)
178#define D3DERR_TOOMANYOPERATIONS MAKE_DDHRESULT(2077)
179#define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_DDHRESULT(2078)
180#define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_DDHRESULT(2079)
181#define D3DERR_CONFLICTINGRENDERSTATE MAKE_DDHRESULT(2081)
182#define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_DDHRESULT(2082)
183#define D3DERR_TOOMANYPRIMITIVES MAKE_DDHRESULT(2083)
184#define D3DERR_INVALIDMATRIX MAKE_DDHRESULT(2084)
185#define D3DERR_TOOMANYVERTICES MAKE_DDHRESULT(2085)
186#define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_DDHRESULT(2086)
187
188#define D3DERR_INVALIDSTATEBLOCK MAKE_DDHRESULT(2100)
189#define D3DERR_INBEGINSTATEBLOCK MAKE_DDHRESULT(2101)
190#define D3DERR_NOTINBEGINSTATEBLOCK MAKE_DDHRESULT(2102)
191
192/* ********************************************************************
193 Enums
194 ******************************************************************** */
195#define D3DNEXT_NEXT __MSABI_LONG(0x01)
196#define D3DNEXT_HEAD __MSABI_LONG(0x02)
197#define D3DNEXT_TAIL __MSABI_LONG(0x04)
198
199#define D3DDP_WAIT __MSABI_LONG(0x00000001)
200#define D3DDP_OUTOFORDER __MSABI_LONG(0x00000002)
201#define D3DDP_DONOTCLIP __MSABI_LONG(0x00000004)
202#define D3DDP_DONOTUPDATEEXTENTS __MSABI_LONG(0x00000008)
203#define D3DDP_DONOTLIGHT __MSABI_LONG(0x00000010)
204
205/* ********************************************************************
206 Types and structures
207 ******************************************************************** */
208typedef DWORD D3DVIEWPORTHANDLE, *LPD3DVIEWPORTHANDLE;
209
210
211/*****************************************************************************
212 * IDirect3D interface
213 */
214#undef INTERFACE
215#define INTERFACE IDirect3D
216DECLARE_INTERFACE_(IDirect3D,IUnknown)
217{
218 /*** IUnknown methods ***/
219 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
220 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
221 STDMETHOD_(ULONG,Release)(THIS) PURE;
222 /*** IDirect3D methods ***/
223 STDMETHOD(Initialize)(THIS_ REFIID riid) PURE;
224 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK cb, void *ctx) PURE;
225 STDMETHOD(CreateLight)(THIS_ struct IDirect3DLight **light, IUnknown *outer) PURE;
226 STDMETHOD(CreateMaterial)(THIS_ struct IDirect3DMaterial **material, IUnknown *outer) PURE;
227 STDMETHOD(CreateViewport)(THIS_ struct IDirect3DViewport **viewport, IUnknown *outer) PURE;
228 STDMETHOD(FindDevice)(THIS_ D3DFINDDEVICESEARCH *search, D3DFINDDEVICERESULT *result) PURE;
229};
230#undef INTERFACE
231
232#if !defined(__cplusplus) || defined(CINTERFACE)
233/*** IUnknown methods ***/
234#define IDirect3D_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
235#define IDirect3D_AddRef(p) (p)->lpVtbl->AddRef(p)
236#define IDirect3D_Release(p) (p)->lpVtbl->Release(p)
237/*** IDirect3D methods ***/
238#define IDirect3D_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
239#define IDirect3D_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
240#define IDirect3D_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b)
241#define IDirect3D_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
242#define IDirect3D_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
243#define IDirect3D_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b)
244#else
245/*** IUnknown methods ***/
246#define IDirect3D_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
247#define IDirect3D_AddRef(p) (p)->AddRef()
248#define IDirect3D_Release(p) (p)->Release()
249/*** IDirect3D methods ***/
250#define IDirect3D_Initialize(p,a) (p)->Initialize(a)
251#define IDirect3D_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
252#define IDirect3D_CreateLight(p,a,b) (p)->CreateLight(a,b)
253#define IDirect3D_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
254#define IDirect3D_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
255#define IDirect3D_FindDevice(p,a,b) (p)->FindDevice(a,b)
256#endif
257
258
259/*****************************************************************************
260 * IDirect3D2 interface
261 */
262#define INTERFACE IDirect3D2
263DECLARE_INTERFACE_(IDirect3D2,IUnknown)
264{
265 /*** IUnknown methods ***/
266 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
267 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
268 STDMETHOD_(ULONG,Release)(THIS) PURE;
269 /*** IDirect3D2 methods ***/
270 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK cb, void *ctx) PURE;
271 STDMETHOD(CreateLight)(THIS_ struct IDirect3DLight **light, IUnknown *outer) PURE;
272 STDMETHOD(CreateMaterial)(THIS_ struct IDirect3DMaterial2 **material, IUnknown *outer) PURE;
273 STDMETHOD(CreateViewport)(THIS_ struct IDirect3DViewport2 **viewport, IUnknown *outer) PURE;
274 STDMETHOD(FindDevice)(THIS_ D3DFINDDEVICESEARCH *search, D3DFINDDEVICERESULT *result) PURE;
275 STDMETHOD(CreateDevice)(THIS_ REFCLSID rclsid, IDirectDrawSurface *surface,
276 struct IDirect3DDevice2 **device) PURE;
277};
278#undef INTERFACE
279
280#if !defined(__cplusplus) || defined(CINTERFACE)
281/*** IUnknown methods ***/
282#define IDirect3D2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
283#define IDirect3D2_AddRef(p) (p)->lpVtbl->AddRef(p)
284#define IDirect3D2_Release(p) (p)->lpVtbl->Release(p)
285/*** IDirect3D2 methods ***/
286#define IDirect3D2_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
287#define IDirect3D2_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b)
288#define IDirect3D2_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
289#define IDirect3D2_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
290#define IDirect3D2_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b)
291#define IDirect3D2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
292#else
293/*** IUnknown methods ***/
294#define IDirect3D2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
295#define IDirect3D2_AddRef(p) (p)->AddRef()
296#define IDirect3D2_Release(p) (p)->Release()
297/*** IDirect3D2 methods ***/
298#define IDirect3D2_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
299#define IDirect3D2_CreateLight(p,a,b) (p)->CreateLight(a,b)
300#define IDirect3D2_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
301#define IDirect3D2_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
302#define IDirect3D2_FindDevice(p,a,b) (p)->FindDevice(a,b)
303#define IDirect3D2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
304#endif
305
306
307/*****************************************************************************
308 * IDirect3D3 interface
309 */
310#define INTERFACE IDirect3D3
311DECLARE_INTERFACE_(IDirect3D3,IUnknown)
312{
313 /*** IUnknown methods ***/
314 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
315 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
316 STDMETHOD_(ULONG,Release)(THIS) PURE;
317 /*** IDirect3D3 methods ***/
318 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK cb, void *ctx) PURE;
319 STDMETHOD(CreateLight)(THIS_ struct IDirect3DLight **light, IUnknown *outer) PURE;
320 STDMETHOD(CreateMaterial)(THIS_ struct IDirect3DMaterial3 **material, IUnknown *outer) PURE;
321 STDMETHOD(CreateViewport)(THIS_ struct IDirect3DViewport3 **viewport, IUnknown *outer) PURE;
322 STDMETHOD(FindDevice)(THIS_ D3DFINDDEVICESEARCH *search, D3DFINDDEVICERESULT *result) PURE;
323 STDMETHOD(CreateDevice)(THIS_ REFCLSID rclsid, IDirectDrawSurface4 *surface,
324 struct IDirect3DDevice3 **device, IUnknown *outer) PURE;
325 STDMETHOD(CreateVertexBuffer)(THIS_ D3DVERTEXBUFFERDESC *desc, struct IDirect3DVertexBuffer **buffer,
326 DWORD flags, IUnknown *outer) PURE;
327 STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID device_iid, LPD3DENUMPIXELFORMATSCALLBACK cb, void *ctx) PURE;
328 STDMETHOD(EvictManagedTextures)(THIS) PURE;
329};
330#undef INTERFACE
331
332#if !defined(__cplusplus) || defined(CINTERFACE)
333/*** IUnknown methods ***/
334#define IDirect3D3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
335#define IDirect3D3_AddRef(p) (p)->lpVtbl->AddRef(p)
336#define IDirect3D3_Release(p) (p)->lpVtbl->Release(p)
337/*** IDirect3D3 methods ***/
338#define IDirect3D3_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
339#define IDirect3D3_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b)
340#define IDirect3D3_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
341#define IDirect3D3_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
342#define IDirect3D3_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b)
343#define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->lpVtbl->CreateDevice(p,a,b,c,d)
344#define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d)
345#define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c)
346#define IDirect3D3_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p)
347#else
348/*** IUnknown methods ***/
349#define IDirect3D3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
350#define IDirect3D3_AddRef(p) (p)->AddRef()
351#define IDirect3D3_Release(p) (p)->Release()
352/*** IDirect3D3 methods ***/
353#define IDirect3D3_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
354#define IDirect3D3_CreateLight(p,a,b) (p)->CreateLight(a,b)
355#define IDirect3D3_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
356#define IDirect3D3_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
357#define IDirect3D3_FindDevice(p,a,b) (p)->FindDevice(a,b)
358#define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->CreateDevice(a,b,c,d)
359#define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->CreateVertexBuffer(a,b,c,d)
360#define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c)
361#define IDirect3D3_EvictManagedTextures(p) (p)->EvictManagedTextures()
362#endif
363
364/*****************************************************************************
365 * IDirect3D7 interface
366 */
367#define INTERFACE IDirect3D7
368DECLARE_INTERFACE_(IDirect3D7,IUnknown)
369{
370 /*** IUnknown methods ***/
371 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
372 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
373 STDMETHOD_(ULONG,Release)(THIS) PURE;
374 /*** IDirect3D7 methods ***/
375 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK7 cb, void *ctx) PURE;
376 STDMETHOD(CreateDevice)(THIS_ REFCLSID rclsid, IDirectDrawSurface7 *surface,
377 struct IDirect3DDevice7 **device) PURE;
378 STDMETHOD(CreateVertexBuffer)(THIS_ D3DVERTEXBUFFERDESC *desc,
379 struct IDirect3DVertexBuffer7 **buffer, DWORD flags) PURE;
380 STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID device_iid, LPD3DENUMPIXELFORMATSCALLBACK cb, void *ctx) PURE;
381 STDMETHOD(EvictManagedTextures)(THIS) PURE;
382};
383#undef INTERFACE
384
385#if !defined(__cplusplus) || defined(CINTERFACE)
386/*** IUnknown methods ***/
387#define IDirect3D7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
388#define IDirect3D7_AddRef(p) (p)->lpVtbl->AddRef(p)
389#define IDirect3D7_Release(p) (p)->lpVtbl->Release(p)
390/*** IDirect3D3 methods ***/
391#define IDirect3D7_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
392#define IDirect3D7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
393#define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c)
394#define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c)
395#define IDirect3D7_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p)
396#else
397/*** IUnknown methods ***/
398#define IDirect3D7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
399#define IDirect3D7_AddRef(p) (p)->AddRef()
400#define IDirect3D7_Release(p) (p)->Release()
401/*** IDirect3D3 methods ***/
402#define IDirect3D7_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
403#define IDirect3D7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
404#define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->CreateVertexBuffer(a,b,c)
405#define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c)
406#define IDirect3D7_EvictManagedTextures(p) (p)->EvictManagedTextures()
407#endif
408
409
410/*****************************************************************************
411 * IDirect3DLight interface
412 */
413#define INTERFACE IDirect3DLight
414DECLARE_INTERFACE_(IDirect3DLight,IUnknown)
415{
416 /*** IUnknown methods ***/
417 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
418 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
419 STDMETHOD_(ULONG,Release)(THIS) PURE;
420 /*** IDirect3DLight methods ***/
421 STDMETHOD(Initialize)(THIS_ IDirect3D *d3d) PURE;
422 STDMETHOD(SetLight)(THIS_ D3DLIGHT *data) PURE;
423 STDMETHOD(GetLight)(THIS_ D3DLIGHT *data) PURE;
424};
425#undef INTERFACE
426
427#if !defined(__cplusplus) || defined(CINTERFACE)
428/*** IUnknown methods ***/
429#define IDirect3DLight_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
430#define IDirect3DLight_AddRef(p) (p)->lpVtbl->AddRef(p)
431#define IDirect3DLight_Release(p) (p)->lpVtbl->Release(p)
432/*** IDirect3DLight methods ***/
433#define IDirect3DLight_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
434#define IDirect3DLight_SetLight(p,a) (p)->lpVtbl->SetLight(p,a)
435#define IDirect3DLight_GetLight(p,a) (p)->lpVtbl->GetLight(p,a)
436#else
437/*** IUnknown methods ***/
438#define IDirect3DLight_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
439#define IDirect3DLight_AddRef(p) (p)->AddRef()
440#define IDirect3DLight_Release(p) (p)->Release()
441/*** IDirect3DLight methods ***/
442#define IDirect3DLight_Initialize(p,a) (p)->Initialize(a)
443#define IDirect3DLight_SetLight(p,a) (p)->SetLight(a)
444#define IDirect3DLight_GetLight(p,a) (p)->GetLight(a)
445#endif
446
447
448/*****************************************************************************
449 * IDirect3DMaterial interface
450 */
451#define INTERFACE IDirect3DMaterial
452DECLARE_INTERFACE_(IDirect3DMaterial,IUnknown)
453{
454 /*** IUnknown methods ***/
455 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
456 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
457 STDMETHOD_(ULONG,Release)(THIS) PURE;
458 /*** IDirect3DMaterial methods ***/
459 STDMETHOD(Initialize)(THIS_ IDirect3D *d3d) PURE;
460 STDMETHOD(SetMaterial)(THIS_ D3DMATERIAL *data) PURE;
461 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL *data) PURE;
462 STDMETHOD(GetHandle)(THIS_ struct IDirect3DDevice *device, D3DMATERIALHANDLE *handle) PURE;
463 STDMETHOD(Reserve)(THIS) PURE;
464 STDMETHOD(Unreserve)(THIS) PURE;
465};
466#undef INTERFACE
467
468#if !defined(__cplusplus) || defined(CINTERFACE)
469/*** IUnknown methods ***/
470#define IDirect3DMaterial_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
471#define IDirect3DMaterial_AddRef(p) (p)->lpVtbl->AddRef(p)
472#define IDirect3DMaterial_Release(p) (p)->lpVtbl->Release(p)
473/*** IDirect3DMaterial methods ***/
474#define IDirect3DMaterial_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
475#define IDirect3DMaterial_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
476#define IDirect3DMaterial_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
477#define IDirect3DMaterial_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
478#define IDirect3DMaterial_Reserve(p) (p)->lpVtbl->Reserve(p)
479#define IDirect3DMaterial_Unreserve(p) (p)->lpVtbl->Unreserve(p)
480#else
481/*** IUnknown methods ***/
482#define IDirect3DMaterial_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
483#define IDirect3DMaterial_AddRef(p) (p)->AddRef()
484#define IDirect3DMaterial_Release(p) (p)->Release()
485/*** IDirect3DMaterial methods ***/
486#define IDirect3DMaterial_Initialize(p,a) (p)->Initialize(a)
487#define IDirect3DMaterial_SetMaterial(p,a) (p)->SetMaterial(a)
488#define IDirect3DMaterial_GetMaterial(p,a) (p)->GetMaterial(a)
489#define IDirect3DMaterial_GetHandle(p,a,b) (p)->GetHandle(a,b)
490#define IDirect3DMaterial_Reserve(p) (p)->Reserve()
491#define IDirect3DMaterial_Unreserve(p) (p)->Unreserve()
492#endif
493
494
495/*****************************************************************************
496 * IDirect3DMaterial2 interface
497 */
498#define INTERFACE IDirect3DMaterial2
499DECLARE_INTERFACE_(IDirect3DMaterial2,IUnknown)
500{
501 /*** IUnknown methods ***/
502 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
503 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
504 STDMETHOD_(ULONG,Release)(THIS) PURE;
505 /*** IDirect3DMaterial2 methods ***/
506 STDMETHOD(SetMaterial)(THIS_ D3DMATERIAL *data) PURE;
507 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL *data) PURE;
508 STDMETHOD(GetHandle)(THIS_ struct IDirect3DDevice2 *device, D3DMATERIALHANDLE *handle) PURE;
509};
510#undef INTERFACE
511
512#if !defined(__cplusplus) || defined(CINTERFACE)
513/*** IUnknown methods ***/
514#define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
515#define IDirect3DMaterial2_AddRef(p) (p)->lpVtbl->AddRef(p)
516#define IDirect3DMaterial2_Release(p) (p)->lpVtbl->Release(p)
517/*** IDirect3DMaterial2 methods ***/
518#define IDirect3DMaterial2_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
519#define IDirect3DMaterial2_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
520#define IDirect3DMaterial2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
521#else
522/*** IUnknown methods ***/
523#define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
524#define IDirect3DMaterial2_AddRef(p) (p)->AddRef()
525#define IDirect3DMaterial2_Release(p) (p)->Release()
526/*** IDirect3DMaterial2 methods ***/
527#define IDirect3DMaterial2_SetMaterial(p,a) (p)->SetMaterial(a)
528#define IDirect3DMaterial2_GetMaterial(p,a) (p)->GetMaterial(a)
529#define IDirect3DMaterial2_GetHandle(p,a,b) (p)->GetHandle(a,b)
530#endif
531
532
533/*****************************************************************************
534 * IDirect3DMaterial3 interface
535 */
536#define INTERFACE IDirect3DMaterial3
537DECLARE_INTERFACE_(IDirect3DMaterial3,IUnknown)
538{
539 /*** IUnknown methods ***/
540 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
541 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
542 STDMETHOD_(ULONG,Release)(THIS) PURE;
543 /*** IDirect3DMaterial3 methods ***/
544 STDMETHOD(SetMaterial)(THIS_ D3DMATERIAL *data) PURE;
545 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL *data) PURE;
546 STDMETHOD(GetHandle)(THIS_ struct IDirect3DDevice3 *device, D3DMATERIALHANDLE *handle) PURE;
547};
548#undef INTERFACE
549
550#if !defined(__cplusplus) || defined(CINTERFACE)
551/*** IUnknown methods ***/
552#define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
553#define IDirect3DMaterial3_AddRef(p) (p)->lpVtbl->AddRef(p)
554#define IDirect3DMaterial3_Release(p) (p)->lpVtbl->Release(p)
555/*** IDirect3DMaterial3 methods ***/
556#define IDirect3DMaterial3_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
557#define IDirect3DMaterial3_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
558#define IDirect3DMaterial3_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
559#else
560/*** IUnknown methods ***/
561#define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
562#define IDirect3DMaterial3_AddRef(p) (p)->AddRef()
563#define IDirect3DMaterial3_Release(p) (p)->Release()
564/*** IDirect3DMaterial3 methods ***/
565#define IDirect3DMaterial3_SetMaterial(p,a) (p)->SetMaterial(a)
566#define IDirect3DMaterial3_GetMaterial(p,a) (p)->GetMaterial(a)
567#define IDirect3DMaterial3_GetHandle(p,a,b) (p)->GetHandle(a,b)
568#endif
569
570
571/*****************************************************************************
572 * IDirect3DTexture interface
573 */
574#define INTERFACE IDirect3DTexture
575DECLARE_INTERFACE_(IDirect3DTexture,IUnknown)
576{
577 /*** IUnknown methods ***/
578 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
579 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
580 STDMETHOD_(ULONG,Release)(THIS) PURE;
581 /*** IDirect3DTexture methods ***/
582 STDMETHOD(Initialize)(THIS_ struct IDirect3DDevice *device, IDirectDrawSurface *surface) PURE;
583 STDMETHOD(GetHandle)(THIS_ struct IDirect3DDevice *device, D3DTEXTUREHANDLE *handle) PURE;
584 STDMETHOD(PaletteChanged)(THIS_ DWORD dwStart, DWORD dwCount) PURE;
585 STDMETHOD(Load)(THIS_ IDirect3DTexture *texture) PURE;
586 STDMETHOD(Unload)(THIS) PURE;
587};
588#undef INTERFACE
589
590#if !defined(__cplusplus) || defined(CINTERFACE)
591/*** IUnknown methods ***/
592#define IDirect3DTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
593#define IDirect3DTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
594#define IDirect3DTexture_Release(p) (p)->lpVtbl->Release(p)
595/*** IDirect3DTexture methods ***/
596#define IDirect3DTexture_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
597#define IDirect3DTexture_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
598#define IDirect3DTexture_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b)
599#define IDirect3DTexture_Load(p,a) (p)->lpVtbl->Load(p,a)
600#define IDirect3DTexture_Unload(p) (p)->lpVtbl->Unload(p)
601#else
602/*** IUnknown methods ***/
603#define IDirect3DTexture_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
604#define IDirect3DTexture_AddRef(p) (p)->AddRef()
605#define IDirect3DTexture_Release(p) (p)->Release()
606/*** IDirect3DTexture methods ***/
607#define IDirect3DTexture_Initialize(p,a,b) (p)->Initialize(a,b)
608#define IDirect3DTexture_GetHandle(p,a,b) (p)->GetHandle(a,b)
609#define IDirect3DTexture_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b)
610#define IDirect3DTexture_Load(p,a) (p)->Load(a)
611#define IDirect3DTexture_Unload(p) (p)->Unload()
612#endif
613
614
615/*****************************************************************************
616 * IDirect3DTexture2 interface
617 */
618#define INTERFACE IDirect3DTexture2
619DECLARE_INTERFACE_(IDirect3DTexture2,IUnknown)
620{
621 /*** IUnknown methods ***/
622 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
623 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
624 STDMETHOD_(ULONG,Release)(THIS) PURE;
625 /*** IDirect3DTexture2 methods ***/
626 STDMETHOD(GetHandle)(THIS_ struct IDirect3DDevice2 *device, D3DTEXTUREHANDLE *handle) PURE;
627 STDMETHOD(PaletteChanged)(THIS_ DWORD dwStart, DWORD dwCount) PURE;
628 STDMETHOD(Load)(THIS_ IDirect3DTexture2 *texture) PURE;
629};
630#undef INTERFACE
631
632#if !defined(__cplusplus) || defined(CINTERFACE)
633/*** IUnknown methods ***/
634#define IDirect3DTexture2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
635#define IDirect3DTexture2_AddRef(p) (p)->lpVtbl->AddRef(p)
636#define IDirect3DTexture2_Release(p) (p)->lpVtbl->Release(p)
637/*** IDirect3DTexture2 methods ***/
638#define IDirect3DTexture2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
639#define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b)
640#define IDirect3DTexture2_Load(p,a) (p)->lpVtbl->Load(p,a)
641#else
642/*** IUnknown methods ***/
643#define IDirect3DTexture2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
644#define IDirect3DTexture2_AddRef(p) (p)->AddRef()
645#define IDirect3DTexture2_Release(p) (p)->Release()
646/*** IDirect3DTexture2 methods ***/
647#define IDirect3DTexture2_GetHandle(p,a,b) (p)->GetHandle(a,b)
648#define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b)
649#define IDirect3DTexture2_Load(p,a) (p)->Load(a)
650#endif
651
652
653/*****************************************************************************
654 * IDirect3DViewport interface
655 */
656#define INTERFACE IDirect3DViewport
657DECLARE_INTERFACE_(IDirect3DViewport,IUnknown)
658{
659 /*** IUnknown methods ***/
660 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
661 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
662 STDMETHOD_(ULONG,Release)(THIS) PURE;
663 /*** IDirect3DViewport methods ***/
664 STDMETHOD(Initialize)(THIS_ IDirect3D *d3d) PURE;
665 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT *data) PURE;
666 STDMETHOD(SetViewport)(THIS_ D3DVIEWPORT *data) PURE;
667 STDMETHOD(TransformVertices)(THIS_ DWORD vertex_count, D3DTRANSFORMDATA *data, DWORD flags, DWORD *offscreen) PURE;
668 STDMETHOD(LightElements)(THIS_ DWORD element_count, D3DLIGHTDATA *data) PURE;
669 STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE hMat) PURE;
670 STDMETHOD(GetBackground)(THIS_ D3DMATERIALHANDLE *material, BOOL *valid) PURE;
671 STDMETHOD(SetBackgroundDepth)(THIS_ IDirectDrawSurface *surface) PURE;
672 STDMETHOD(GetBackgroundDepth)(THIS_ IDirectDrawSurface **surface, BOOL *valid) PURE;
673 STDMETHOD(Clear)(THIS_ DWORD count, D3DRECT *rects, DWORD flags) PURE;
674 STDMETHOD(AddLight)(THIS_ IDirect3DLight *light) PURE;
675 STDMETHOD(DeleteLight)(THIS_ IDirect3DLight *light) PURE;
676 STDMETHOD(NextLight)(THIS_ IDirect3DLight *ref, IDirect3DLight **light, DWORD flags) PURE;
677};
678#undef INTERFACE
679
680#if !defined(__cplusplus) || defined(CINTERFACE)
681/*** IUnknown methods ***/
682#define IDirect3DViewport_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
683#define IDirect3DViewport_AddRef(p) (p)->lpVtbl->AddRef(p)
684#define IDirect3DViewport_Release(p) (p)->lpVtbl->Release(p)
685/*** IDirect3DViewport methods ***/
686#define IDirect3DViewport_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
687#define IDirect3DViewport_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
688#define IDirect3DViewport_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
689#define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d)
690#define IDirect3DViewport_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b)
691#define IDirect3DViewport_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a)
692#define IDirect3DViewport_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b)
693#define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a)
694#define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b)
695#define IDirect3DViewport_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c)
696#define IDirect3DViewport_AddLight(p,a) (p)->lpVtbl->AddLight(p,a)
697#define IDirect3DViewport_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a)
698#define IDirect3DViewport_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c)
699#else
700/*** IUnknown methods ***/
701#define IDirect3DViewport_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
702#define IDirect3DViewport_AddRef(p) (p)->AddRef()
703#define IDirect3DViewport_Release(p) (p)->Release()
704/*** IDirect3DViewport methods ***/
705#define IDirect3DViewport_Initialize(p,a) (p)->Initialize(a)
706#define IDirect3DViewport_GetViewport(p,a) (p)->GetViewport(a)
707#define IDirect3DViewport_SetViewport(p,a) (p)->SetViewport(a)
708#define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d)
709#define IDirect3DViewport_LightElements(p,a,b) (p)->LightElements(a,b)
710#define IDirect3DViewport_SetBackground(p,a) (p)->SetBackground(a)
711#define IDirect3DViewport_GetBackground(p,a,b) (p)->GetBackground(a,b)
712#define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a)
713#define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b)
714#define IDirect3DViewport_Clear(p,a,b,c) (p)->Clear(a,b,c)
715#define IDirect3DViewport_AddLight(p,a) (p)->AddLight(a)
716#define IDirect3DViewport_DeleteLight(p,a) (p)->DeleteLight(a)
717#define IDirect3DViewport_NextLight(p,a,b,c) (p)->NextLight(a,b,c)
718#endif
719
720
721/*****************************************************************************
722 * IDirect3DViewport2 interface
723 */
724#define INTERFACE IDirect3DViewport2
725DECLARE_INTERFACE_(IDirect3DViewport2,IDirect3DViewport)
726{
727 /*** IUnknown methods ***/
728 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
729 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
730 STDMETHOD_(ULONG,Release)(THIS) PURE;
731 /*** IDirect3DViewport methods ***/
732 STDMETHOD(Initialize)(THIS_ IDirect3D *d3d) PURE;
733 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT *data) PURE;
734 STDMETHOD(SetViewport)(THIS_ D3DVIEWPORT *data) PURE;
735 STDMETHOD(TransformVertices)(THIS_ DWORD vertex_count, D3DTRANSFORMDATA *data, DWORD flags, DWORD *offscreen) PURE;
736 STDMETHOD(LightElements)(THIS_ DWORD element_count, D3DLIGHTDATA *data) PURE;
737 STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE hMat) PURE;
738 STDMETHOD(GetBackground)(THIS_ D3DMATERIALHANDLE *material, BOOL *valid) PURE;
739 STDMETHOD(SetBackgroundDepth)(THIS_ IDirectDrawSurface *surface) PURE;
740 STDMETHOD(GetBackgroundDepth)(THIS_ IDirectDrawSurface **surface, BOOL *valid) PURE;
741 STDMETHOD(Clear)(THIS_ DWORD count, D3DRECT *rects, DWORD flags) PURE;
742 STDMETHOD(AddLight)(THIS_ IDirect3DLight *light) PURE;
743 STDMETHOD(DeleteLight)(THIS_ IDirect3DLight *light) PURE;
744 STDMETHOD(NextLight)(THIS_ IDirect3DLight *ref, IDirect3DLight **light, DWORD flags) PURE;
745 /*** IDirect3DViewport2 methods ***/
746 STDMETHOD(GetViewport2)(THIS_ D3DVIEWPORT2 *data) PURE;
747 STDMETHOD(SetViewport2)(THIS_ D3DVIEWPORT2 *data) PURE;
748};
749#undef INTERFACE
750
751#if !defined(__cplusplus) || defined(CINTERFACE)
752/*** IUnknown methods ***/
753#define IDirect3DViewport2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
754#define IDirect3DViewport2_AddRef(p) (p)->lpVtbl->AddRef(p)
755#define IDirect3DViewport2_Release(p) (p)->lpVtbl->Release(p)
756/*** IDirect3Viewport methods ***/
757#define IDirect3DViewport2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
758#define IDirect3DViewport2_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
759#define IDirect3DViewport2_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
760#define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d)
761#define IDirect3DViewport2_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b)
762#define IDirect3DViewport2_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a)
763#define IDirect3DViewport2_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b)
764#define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a)
765#define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b)
766#define IDirect3DViewport2_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c)
767#define IDirect3DViewport2_AddLight(p,a) (p)->lpVtbl->AddLight(p,a)
768#define IDirect3DViewport2_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a)
769#define IDirect3DViewport2_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c)
770/*** IDirect3DViewport2 methods ***/
771#define IDirect3DViewport2_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a)
772#define IDirect3DViewport2_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a)
773#else
774/*** IUnknown methods ***/
775#define IDirect3DViewport2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
776#define IDirect3DViewport2_AddRef(p) (p)->AddRef()
777#define IDirect3DViewport2_Release(p) (p)->Release()
778/*** IDirect3Viewport methods ***/
779#define IDirect3DViewport2_Initialize(p,a) (p)->Initialize(a)
780#define IDirect3DViewport2_GetViewport(p,a) (p)->GetViewport(a)
781#define IDirect3DViewport2_SetViewport(p,a) (p)->SetViewport(a)
782#define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d)
783#define IDirect3DViewport2_LightElements(p,a,b) (p)->LightElements(a,b)
784#define IDirect3DViewport2_SetBackground(p,a) (p)->SetBackground(a)
785#define IDirect3DViewport2_GetBackground(p,a,b) (p)->GetBackground(a,b)
786#define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a)
787#define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b)
788#define IDirect3DViewport2_Clear(p,a,b,c) (p)->Clear(a,b,c)
789#define IDirect3DViewport2_AddLight(p,a) (p)->AddLight(a)
790#define IDirect3DViewport2_DeleteLight(p,a) (p)->DeleteLight(a)
791#define IDirect3DViewport2_NextLight(p,a,b,c) (p)->NextLight(a,b,c)
792/*** IDirect3DViewport2 methods ***/
793#define IDirect3DViewport2_GetViewport2(p,a) (p)->GetViewport2(a)
794#define IDirect3DViewport2_SetViewport2(p,a) (p)->SetViewport2(a)
795#endif
796
797/*****************************************************************************
798 * IDirect3DViewport3 interface
799 */
800#define INTERFACE IDirect3DViewport3
801DECLARE_INTERFACE_(IDirect3DViewport3,IDirect3DViewport2)
802{
803 /*** IUnknown methods ***/
804 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
805 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
806 STDMETHOD_(ULONG,Release)(THIS) PURE;
807 /*** IDirect3DViewport methods ***/
808 STDMETHOD(Initialize)(THIS_ IDirect3D *d3d) PURE;
809 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT *data) PURE;
810 STDMETHOD(SetViewport)(THIS_ D3DVIEWPORT *data) PURE;
811 STDMETHOD(TransformVertices)(THIS_ DWORD vertex_count, D3DTRANSFORMDATA *data, DWORD flags, DWORD *offscreen) PURE;
812 STDMETHOD(LightElements)(THIS_ DWORD element_count, D3DLIGHTDATA *data) PURE;
813 STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE hMat) PURE;
814 STDMETHOD(GetBackground)(THIS_ D3DMATERIALHANDLE *material, BOOL *valid) PURE;
815 STDMETHOD(SetBackgroundDepth)(THIS_ IDirectDrawSurface *surface) PURE;
816 STDMETHOD(GetBackgroundDepth)(THIS_ IDirectDrawSurface **surface, BOOL *valid) PURE;
817 STDMETHOD(Clear)(THIS_ DWORD count, D3DRECT *rects, DWORD flags) PURE;
818 STDMETHOD(AddLight)(THIS_ IDirect3DLight *light) PURE;
819 STDMETHOD(DeleteLight)(THIS_ IDirect3DLight *light) PURE;
820 STDMETHOD(NextLight)(THIS_ IDirect3DLight *ref, IDirect3DLight **light, DWORD flags) PURE;
821 /*** IDirect3DViewport2 methods ***/
822 STDMETHOD(GetViewport2)(THIS_ D3DVIEWPORT2 *data) PURE;
823 STDMETHOD(SetViewport2)(THIS_ D3DVIEWPORT2 *data) PURE;
824 /*** IDirect3DViewport3 methods ***/
825 STDMETHOD(SetBackgroundDepth2)(THIS_ IDirectDrawSurface4 *surface) PURE;
826 STDMETHOD(GetBackgroundDepth2)(THIS_ IDirectDrawSurface4 **surface, BOOL *valid) PURE;
827 STDMETHOD(Clear2)(THIS_ DWORD count, D3DRECT *rects, DWORD flags, DWORD color, D3DVALUE z, DWORD stencil) PURE;
828};
829#undef INTERFACE
830
831#if !defined(__cplusplus) || defined(CINTERFACE)
832/*** IUnknown methods ***/
833#define IDirect3DViewport3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
834#define IDirect3DViewport3_AddRef(p) (p)->lpVtbl->AddRef(p)
835#define IDirect3DViewport3_Release(p) (p)->lpVtbl->Release(p)
836/*** IDirect3Viewport methods ***/
837#define IDirect3DViewport3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
838#define IDirect3DViewport3_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
839#define IDirect3DViewport3_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
840#define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d)
841#define IDirect3DViewport3_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b)
842#define IDirect3DViewport3_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a)
843#define IDirect3DViewport3_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b)
844#define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a)
845#define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b)
846#define IDirect3DViewport3_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c)
847#define IDirect3DViewport3_AddLight(p,a) (p)->lpVtbl->AddLight(p,a)
848#define IDirect3DViewport3_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a)
849#define IDirect3DViewport3_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c)
850/*** IDirect3DViewport2 methods ***/
851#define IDirect3DViewport3_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a)
852#define IDirect3DViewport3_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a)
853/*** IDirect3DViewport3 methods ***/
854#define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->lpVtbl->SetBackgroundDepth2(p,a)
855#define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->lpVtbl->GetBackgroundDepth2(p,a,b)
856#define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->lpVtbl->Clear2(p,a,b,c,d,e,f)
857#else
858/*** IUnknown methods ***/
859#define IDirect3DViewport3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
860#define IDirect3DViewport3_AddRef(p) (p)->AddRef()
861#define IDirect3DViewport3_Release(p) (p)->Release()
862/*** IDirect3Viewport methods ***/
863#define IDirect3DViewport3_Initialize(p,a) (p)->Initialize(a)
864#define IDirect3DViewport3_GetViewport(p,a) (p)->GetViewport(a)
865#define IDirect3DViewport3_SetViewport(p,a) (p)->SetViewport(a)
866#define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d)
867#define IDirect3DViewport3_LightElements(p,a,b) (p)->LightElements(a,b)
868#define IDirect3DViewport3_SetBackground(p,a) (p)->SetBackground(a)
869#define IDirect3DViewport3_GetBackground(p,a,b) (p)->GetBackground(a,b)
870#define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a)
871#define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b)
872#define IDirect3DViewport3_Clear(p,a,b,c) (p)->Clear(a,b,c)
873#define IDirect3DViewport3_AddLight(p,a) (p)->AddLight(a)
874#define IDirect3DViewport3_DeleteLight(p,a) (p)->DeleteLight(a)
875#define IDirect3DViewport3_NextLight(p,a,b,c) (p)->NextLight(a,b,c)
876/*** IDirect3DViewport2 methods ***/
877#define IDirect3DViewport3_GetViewport2(p,a) (p)->GetViewport2(a)
878#define IDirect3DViewport3_SetViewport2(p,a) (p)->SetViewport2(a)
879/*** IDirect3DViewport3 methods ***/
880#define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->SetBackgroundDepth2(a)
881#define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->GetBackgroundDepth2(a,b)
882#define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->Clear2(a,b,c,d,e,f)
883#endif
884
885
886
887/*****************************************************************************
888 * IDirect3DExecuteBuffer interface
889 */
890#define INTERFACE IDirect3DExecuteBuffer
891DECLARE_INTERFACE_(IDirect3DExecuteBuffer,IUnknown)
892{
893 /*** IUnknown methods ***/
894 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
895 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
896 STDMETHOD_(ULONG,Release)(THIS) PURE;
897 /*** IDirect3DExecuteBuffer methods ***/
898 STDMETHOD(Initialize)(THIS_ struct IDirect3DDevice *device, D3DEXECUTEBUFFERDESC *desc) PURE;
899 STDMETHOD(Lock)(THIS_ D3DEXECUTEBUFFERDESC *desc) PURE;
900 STDMETHOD(Unlock)(THIS) PURE;
901 STDMETHOD(SetExecuteData)(THIS_ D3DEXECUTEDATA *data) PURE;
902 STDMETHOD(GetExecuteData)(THIS_ D3DEXECUTEDATA *data) PURE;
903 STDMETHOD(Validate)(THIS_ DWORD *offset, LPD3DVALIDATECALLBACK cb, void *ctx, DWORD reserved) PURE;
904 STDMETHOD(Optimize)(THIS_ DWORD dwDummy) PURE;
905};
906#undef INTERFACE
907
908#if !defined(__cplusplus) || defined(CINTERFACE)
909/*** IUnknown methods ***/
910#define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
911#define IDirect3DExecuteBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
912#define IDirect3DExecuteBuffer_Release(p) (p)->lpVtbl->Release(p)
913/*** IDirect3DExecuteBuffer methods ***/
914#define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
915#define IDirect3DExecuteBuffer_Lock(p,a) (p)->lpVtbl->Lock(p,a)
916#define IDirect3DExecuteBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
917#define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->lpVtbl->SetExecuteData(p,a)
918#define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->lpVtbl->GetExecuteData(p,a)
919#define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->lpVtbl->Validate(p,a,b,c,d)
920#define IDirect3DExecuteBuffer_Optimize(p,a) (p)->lpVtbl->Optimize(p,a)
921#else
922/*** IUnknown methods ***/
923#define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
924#define IDirect3DExecuteBuffer_AddRef(p) (p)->AddRef()
925#define IDirect3DExecuteBuffer_Release(p) (p)->Release()
926/*** IDirect3DExecuteBuffer methods ***/
927#define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->Initialize(a,b)
928#define IDirect3DExecuteBuffer_Lock(p,a) (p)->Lock(a)
929#define IDirect3DExecuteBuffer_Unlock(p) (p)->Unlock()
930#define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->SetExecuteData(a)
931#define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->GetExecuteData(a)
932#define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->Validate(a,b,c,d)
933#define IDirect3DExecuteBuffer_Optimize(p,a) (p)->Optimize(a)
934#endif
935
936
937/*****************************************************************************
938 * IDirect3DDevice interface
939 */
940#define INTERFACE IDirect3DDevice
941DECLARE_INTERFACE_(IDirect3DDevice,IUnknown)
942{
943 /*** IUnknown methods ***/
944 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
945 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
946 STDMETHOD_(ULONG,Release)(THIS) PURE;
947 /*** IDirect3DDevice methods ***/
948 STDMETHOD(Initialize)(THIS_ IDirect3D *d3d, GUID *guid, D3DDEVICEDESC *desc) PURE;
949 STDMETHOD(GetCaps)(THIS_ D3DDEVICEDESC *hal_desc, D3DDEVICEDESC *hel_desc) PURE;
950 STDMETHOD(SwapTextureHandles)(THIS_ IDirect3DTexture *tex1, IDirect3DTexture *tex2) PURE;
951 STDMETHOD(CreateExecuteBuffer)(THIS_ D3DEXECUTEBUFFERDESC *desc,
952 IDirect3DExecuteBuffer **buffer, IUnknown *outer) PURE;
953 STDMETHOD(GetStats)(THIS_ D3DSTATS *stats) PURE;
954 STDMETHOD(Execute)(THIS_ IDirect3DExecuteBuffer *buffer, IDirect3DViewport *viewport,
955 DWORD flags) PURE;
956 STDMETHOD(AddViewport)(THIS_ IDirect3DViewport *viewport) PURE;
957 STDMETHOD(DeleteViewport)(THIS_ IDirect3DViewport *viewport) PURE;
958 STDMETHOD(NextViewport)(THIS_ IDirect3DViewport *ref,
959 IDirect3DViewport **viewport, DWORD flags) PURE;
960 STDMETHOD(Pick)(THIS_ IDirect3DExecuteBuffer *buffer, IDirect3DViewport *viewport,
961 DWORD flags, D3DRECT *rect) PURE;
962 STDMETHOD(GetPickRecords)(THIS_ DWORD *count, D3DPICKRECORD *records) PURE;
963 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK cb, void *ctx) PURE;
964 STDMETHOD(CreateMatrix)(THIS_ D3DMATRIXHANDLE *matrix) PURE;
965 STDMETHOD(SetMatrix)(THIS_ D3DMATRIXHANDLE handle, D3DMATRIX *matrix) PURE;
966 STDMETHOD(GetMatrix)(THIS_ D3DMATRIXHANDLE handle, D3DMATRIX *matrix) PURE;
967 STDMETHOD(DeleteMatrix)(THIS_ D3DMATRIXHANDLE D3DMatHandle) PURE;
968 STDMETHOD(BeginScene)(THIS) PURE;
969 STDMETHOD(EndScene)(THIS) PURE;
970 STDMETHOD(GetDirect3D)(THIS_ IDirect3D **d3d) PURE;
971};
972#undef INTERFACE
973
974#if !defined(__cplusplus) || defined(CINTERFACE)
975/*** IUnknown methods ***/
976#define IDirect3DDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
977#define IDirect3DDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
978#define IDirect3DDevice_Release(p) (p)->lpVtbl->Release(p)
979/*** IDirect3DDevice methods ***/
980#define IDirect3DDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
981#define IDirect3DDevice_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
982#define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b)
983#define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->lpVtbl->CreateExecuteBuffer(p,a,b,c)
984#define IDirect3DDevice_GetStats(p,a) (p)->lpVtbl->GetStats(p,a)
985#define IDirect3DDevice_Execute(p,a,b,c) (p)->lpVtbl->Execute(p,a,b,c)
986#define IDirect3DDevice_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a)
987#define IDirect3DDevice_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a)
988#define IDirect3DDevice_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c)
989#define IDirect3DDevice_Pick(p,a,b,c,d) (p)->lpVtbl->Pick(p,a,b,c,d)
990#define IDirect3DDevice_GetPickRecords(p,a,b) (p)->lpVtbl->GetPickRecords(p,a,b)
991#define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
992#define IDirect3DDevice_CreateMatrix(p,a) (p)->lpVtbl->CreateMatrix(p,a)
993#define IDirect3DDevice_SetMatrix(p,a,b) (p)->lpVtbl->SetMatrix(p,a,b)
994#define IDirect3DDevice_GetMatrix(p,a,b) (p)->lpVtbl->GetMatrix(p,a,b)
995#define IDirect3DDevice_DeleteMatrix(p,a) (p)->lpVtbl->DeleteMatrix(p,a)
996#define IDirect3DDevice_BeginScene(p) (p)->lpVtbl->BeginScene(p)
997#define IDirect3DDevice_EndScene(p) (p)->lpVtbl->EndScene(p)
998#define IDirect3DDevice_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
999#else
1000/*** IUnknown methods ***/
1001#define IDirect3DDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1002#define IDirect3DDevice_AddRef(p) (p)->AddRef()
1003#define IDirect3DDevice_Release(p) (p)->Release()
1004/*** IDirect3DDevice methods ***/
1005#define IDirect3DDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
1006#define IDirect3DDevice_GetCaps(p,a,b) (p)->GetCaps(a,b)
1007#define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b)
1008#define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->CreateExecuteBuffer(a,b,c)
1009#define IDirect3DDevice_GetStats(p,a) (p)->GetStats(a)
1010#define IDirect3DDevice_Execute(p,a,b,c) (p)->Execute(a,b,c)
1011#define IDirect3DDevice_AddViewport(p,a) (p)->AddViewport(a)
1012#define IDirect3DDevice_DeleteViewport(p,a) (p)->DeleteViewport(a)
1013#define IDirect3DDevice_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c)
1014#define IDirect3DDevice_Pick(p,a,b,c,d) (p)->Pick(a,b,c,d)
1015#define IDirect3DDevice_GetPickRecords(p,a,b) (p)->GetPickRecords(a,b)
1016#define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
1017#define IDirect3DDevice_CreateMatrix(p,a) (p)->CreateMatrix(a)
1018#define IDirect3DDevice_SetMatrix(p,a,b) (p)->SetMatrix(a,b)
1019#define IDirect3DDevice_GetMatrix(p,a,b) (p)->GetMatrix(a,b)
1020#define IDirect3DDevice_DeleteMatrix(p,a) (p)->DeleteMatrix(a)
1021#define IDirect3DDevice_BeginScene(p) (p)->BeginScene()
1022#define IDirect3DDevice_EndScene(p) (p)->EndScene()
1023#define IDirect3DDevice_GetDirect3D(p,a) (p)->GetDirect3D(a)
1024#endif
1025
1026
1027/*****************************************************************************
1028 * IDirect3DDevice2 interface
1029 */
1030#define INTERFACE IDirect3DDevice2
1031DECLARE_INTERFACE_(IDirect3DDevice2,IUnknown)
1032{
1033 /*** IUnknown methods ***/
1034 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1035 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1036 STDMETHOD_(ULONG,Release)(THIS) PURE;
1037 /*** IDirect3DDevice2 methods ***/
1038 STDMETHOD(GetCaps)(THIS_ D3DDEVICEDESC *hal_desc, D3DDEVICEDESC *hel_desc) PURE;
1039 STDMETHOD(SwapTextureHandles)(THIS_ IDirect3DTexture2 *tex1, IDirect3DTexture2 *tex2) PURE;
1040 STDMETHOD(GetStats)(THIS_ D3DSTATS *stats) PURE;
1041 STDMETHOD(AddViewport)(THIS_ IDirect3DViewport2 *viewport) PURE;
1042 STDMETHOD(DeleteViewport)(THIS_ IDirect3DViewport2 *viewport) PURE;
1043 STDMETHOD(NextViewport)(THIS_ IDirect3DViewport2 *ref,
1044 IDirect3DViewport2 **viewport, DWORD flags) PURE;
1045 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK cb, void *ctx) PURE;
1046 STDMETHOD(BeginScene)(THIS) PURE;
1047 STDMETHOD(EndScene)(THIS) PURE;
1048 STDMETHOD(GetDirect3D)(THIS_ IDirect3D2 **d3d) PURE;
1049 /*** DrawPrimitive API ***/
1050 STDMETHOD(SetCurrentViewport)(THIS_ IDirect3DViewport2 *viewport) PURE;
1051 STDMETHOD(GetCurrentViewport)(THIS_ IDirect3DViewport2 **viewport) PURE;
1052 STDMETHOD(SetRenderTarget)(THIS_ IDirectDrawSurface *surface, DWORD flags) PURE;
1053 STDMETHOD(GetRenderTarget)(THIS_ IDirectDrawSurface **surface) PURE;
1054 STDMETHOD(Begin)(THIS_ D3DPRIMITIVETYPE d3dpt,D3DVERTEXTYPE dwVertexTypeDesc,DWORD dwFlags) PURE;
1055 STDMETHOD(BeginIndexed)(THIS_ D3DPRIMITIVETYPE primitive_type, D3DVERTEXTYPE vertex_type,
1056 void *vertices, DWORD vertex_count, DWORD flags) PURE;
1057 STDMETHOD(Vertex)(THIS_ void *vertex) PURE;
1058 STDMETHOD(Index)(THIS_ WORD wVertexIndex) PURE;
1059 STDMETHOD(End)(THIS_ DWORD dwFlags) PURE;
1060 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE dwRenderStateType, LPDWORD lpdwRenderState) PURE;
1061 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE dwRenderStateType, DWORD dwRenderState) PURE;
1062 STDMETHOD(GetLightState)(THIS_ D3DLIGHTSTATETYPE dwLightStateType, LPDWORD lpdwLightState) PURE;
1063 STDMETHOD(SetLightState)(THIS_ D3DLIGHTSTATETYPE dwLightStateType, DWORD dwLightState) PURE;
1064 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix) PURE;
1065 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix) PURE;
1066 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix) PURE;
1067 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE primitive_type, D3DVERTEXTYPE vertex_type,
1068 void *vertices, DWORD vertex_count, DWORD flags) PURE;
1069 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE primitive_type, D3DVERTEXTYPE vertex_type,
1070 void *vertices, DWORD vertex_count, WORD *indices, DWORD index_count, DWORD flags) PURE;
1071 STDMETHOD(SetClipStatus)(THIS_ D3DCLIPSTATUS *clip_status) PURE;
1072 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS *clip_status) PURE;
1073};
1074#undef INTERFACE
1075
1076#if !defined(__cplusplus) || defined(CINTERFACE)
1077/*** IUnknown methods ***/
1078#define IDirect3DDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1079#define IDirect3DDevice2_AddRef(p) (p)->lpVtbl->AddRef(p)
1080#define IDirect3DDevice2_Release(p) (p)->lpVtbl->Release(p)
1081/*** IDirect3DDevice2 methods ***/
1082#define IDirect3DDevice2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
1083#define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b)
1084#define IDirect3DDevice2_GetStats(p,a) (p)->lpVtbl->GetStats(p,a)
1085#define IDirect3DDevice2_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a)
1086#define IDirect3DDevice2_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a)
1087#define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c)
1088#define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
1089#define IDirect3DDevice2_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1090#define IDirect3DDevice2_EndScene(p) (p)->lpVtbl->EndScene(p)
1091#define IDirect3DDevice2_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1092#define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a)
1093#define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a)
1094#define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1095#define IDirect3DDevice2_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
1096#define IDirect3DDevice2_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c)
1097#define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e)
1098#define IDirect3DDevice2_Vertex(p,a) (p)->lpVtbl->Vertex(p,a)
1099#define IDirect3DDevice2_Index(p,a) (p)->lpVtbl->Index(p,a)
1100#define IDirect3DDevice2_End(p,a) (p)->lpVtbl->End(p,a)
1101#define IDirect3DDevice2_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1102#define IDirect3DDevice2_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1103#define IDirect3DDevice2_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b)
1104#define IDirect3DDevice2_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b)
1105#define IDirect3DDevice2_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1106#define IDirect3DDevice2_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1107#define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1108#define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e)
1109#define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g)
1110#define IDirect3DDevice2_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1111#define IDirect3DDevice2_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1112#else
1113/*** IUnknown methods ***/
1114#define IDirect3DDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1115#define IDirect3DDevice2_AddRef(p) (p)->AddRef()
1116#define IDirect3DDevice2_Release(p) (p)->Release()
1117/*** IDirect3DDevice2 methods ***/
1118#define IDirect3DDevice2_GetCaps(p,a,b) (p)->GetCaps(a,b)
1119#define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b)
1120#define IDirect3DDevice2_GetStats(p,a) (p)->GetStats(a)
1121#define IDirect3DDevice2_AddViewport(p,a) (p)->AddViewport(a)
1122#define IDirect3DDevice2_DeleteViewport(p,a) (p)->DeleteViewport(a)
1123#define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c)
1124#define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
1125#define IDirect3DDevice2_BeginScene(p) (p)->BeginScene()
1126#define IDirect3DDevice2_EndScene(p) (p)->EndScene()
1127#define IDirect3DDevice2_GetDirect3D(p,a) (p)->GetDirect3D(a)
1128#define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a)
1129#define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a)
1130#define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
1131#define IDirect3DDevice2_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
1132#define IDirect3DDevice2_Begin(p,a,b,c) (p)->Begin(a,b,c)
1133#define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e)
1134#define IDirect3DDevice2_Vertex(p,a) (p)->Vertex(a)
1135#define IDirect3DDevice2_Index(p,a) (p)->Index(a)
1136#define IDirect3DDevice2_End(p,a) (p)->End(a)
1137#define IDirect3DDevice2_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
1138#define IDirect3DDevice2_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
1139#define IDirect3DDevice2_GetLightState(p,a,b) (p)->GetLightState(a,b)
1140#define IDirect3DDevice2_SetLightState(p,a,b) (p)->SetLightState(a,b)
1141#define IDirect3DDevice2_SetTransform(p,a,b) (p)->SetTransform(a,b)
1142#define IDirect3DDevice2_GetTransform(p,a,b) (p)->GetTransform(a,b)
1143#define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
1144#define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e)
1145#define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g)
1146#define IDirect3DDevice2_SetClipStatus(p,a) (p)->SetClipStatus(a)
1147#define IDirect3DDevice2_GetClipStatus(p,a) (p)->GetClipStatus(a)
1148#endif
1149
1150/*****************************************************************************
1151 * IDirect3DDevice3 interface
1152 */
1153#define INTERFACE IDirect3DDevice3
1154DECLARE_INTERFACE_(IDirect3DDevice3,IUnknown)
1155{
1156 /*** IUnknown methods ***/
1157 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1158 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1159 STDMETHOD_(ULONG,Release)(THIS) PURE;
1160 /*** IDirect3DDevice3 methods ***/
1161 STDMETHOD(GetCaps)(THIS_ D3DDEVICEDESC *hal_desc, D3DDEVICEDESC *hel_desc) PURE;
1162 STDMETHOD(GetStats)(THIS_ D3DSTATS *stats) PURE;
1163 STDMETHOD(AddViewport)(THIS_ IDirect3DViewport3 *viewport) PURE;
1164 STDMETHOD(DeleteViewport)(THIS_ IDirect3DViewport3 *viewport) PURE;
1165 STDMETHOD(NextViewport)(THIS_ IDirect3DViewport3 *ref,
1166 IDirect3DViewport3 **viewport, DWORD flags) PURE;
1167 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK cb, void *ctx) PURE;
1168 STDMETHOD(BeginScene)(THIS) PURE;
1169 STDMETHOD(EndScene)(THIS) PURE;
1170 STDMETHOD(GetDirect3D)(THIS_ IDirect3D3 **d3d) PURE;
1171 /*** DrawPrimitive API ***/
1172 STDMETHOD(SetCurrentViewport)(THIS_ IDirect3DViewport3 *viewport) PURE;
1173 STDMETHOD(GetCurrentViewport)(THIS_ IDirect3DViewport3 **viewport) PURE;
1174 STDMETHOD(SetRenderTarget)(THIS_ IDirectDrawSurface4 *surface, DWORD flags) PURE;
1175 STDMETHOD(GetRenderTarget)(THIS_ IDirectDrawSurface4 **surface) PURE;
1176 STDMETHOD(Begin)(THIS_ D3DPRIMITIVETYPE d3dptPrimitiveType,DWORD dwVertexTypeDesc, DWORD dwFlags) PURE;
1177 STDMETHOD(BeginIndexed)(THIS_ D3DPRIMITIVETYPE primitive_type, DWORD fvf,
1178 void *vertices, DWORD vertex_count, DWORD flags) PURE;
1179 STDMETHOD(Vertex)(THIS_ void *vertex) PURE;
1180 STDMETHOD(Index)(THIS_ WORD wVertexIndex) PURE;
1181 STDMETHOD(End)(THIS_ DWORD dwFlags) PURE;
1182 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE dwRenderStateType, LPDWORD lpdwRenderState) PURE;
1183 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE dwRenderStateType, DWORD dwRenderState) PURE;
1184 STDMETHOD(GetLightState)(THIS_ D3DLIGHTSTATETYPE dwLightStateType, LPDWORD lpdwLightState) PURE;
1185 STDMETHOD(SetLightState)(THIS_ D3DLIGHTSTATETYPE dwLightStateType, DWORD dwLightState) PURE;
1186 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix) PURE;
1187 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix) PURE;
1188 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix) PURE;
1189 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE primitive_type, DWORD vertex_type,
1190 void *vertices, DWORD vertex_count, DWORD flags) PURE;
1191 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE primitive_type, DWORD fvf,
1192 void *vertices, DWORD vertex_count, WORD *indices, DWORD index_count, DWORD flags) PURE;
1193 STDMETHOD(SetClipStatus)(THIS_ D3DCLIPSTATUS *clip_status) PURE;
1194 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS *clip_status) PURE;
1195 STDMETHOD(DrawPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE primitive_type, DWORD fvf,
1196 D3DDRAWPRIMITIVESTRIDEDDATA *strided_data, DWORD vertex_count, DWORD flags) PURE;
1197 STDMETHOD(DrawIndexedPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE primitive_type, DWORD fvf,
1198 D3DDRAWPRIMITIVESTRIDEDDATA *strided_data, DWORD vertex_count, WORD *indices, DWORD index_count,
1199 DWORD flags) PURE;
1200 STDMETHOD(DrawPrimitiveVB)(THIS_ D3DPRIMITIVETYPE primitive_type, struct IDirect3DVertexBuffer *vb,
1201 DWORD start_vertex, DWORD vertex_count, DWORD flags) PURE;
1202 STDMETHOD(DrawIndexedPrimitiveVB)(THIS_ D3DPRIMITIVETYPE primitive_type, struct IDirect3DVertexBuffer *vb,
1203 WORD *indices, DWORD index_count, DWORD flags) PURE;
1204 STDMETHOD(ComputeSphereVisibility)(THIS_ D3DVECTOR *centers, D3DVALUE *radii, DWORD sphere_count,
1205 DWORD flags, DWORD *ret) PURE;
1206 STDMETHOD(GetTexture)(THIS_ DWORD stage, IDirect3DTexture2 **texture) PURE;
1207 STDMETHOD(SetTexture)(THIS_ DWORD stage, IDirect3DTexture2 *texture) PURE;
1208 STDMETHOD(GetTextureStageState)(THIS_ DWORD dwStage,D3DTEXTURESTAGESTATETYPE d3dTexStageStateType,LPDWORD lpdwState) PURE;
1209 STDMETHOD(SetTextureStageState)(THIS_ DWORD dwStage,D3DTEXTURESTAGESTATETYPE d3dTexStageStateType,DWORD dwState) PURE;
1210 STDMETHOD(ValidateDevice)(THIS_ LPDWORD lpdwPasses) PURE;
1211};
1212#undef INTERFACE
1213
1214#if !defined(__cplusplus) || defined(CINTERFACE)
1215/*** IUnknown methods ***/
1216#define IDirect3DDevice3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1217#define IDirect3DDevice3_AddRef(p) (p)->lpVtbl->AddRef(p)
1218#define IDirect3DDevice3_Release(p) (p)->lpVtbl->Release(p)
1219/*** IDirect3DDevice3 methods ***/
1220#define IDirect3DDevice3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
1221#define IDirect3DDevice3_GetStats(p,a) (p)->lpVtbl->GetStats(p,a)
1222#define IDirect3DDevice3_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a)
1223#define IDirect3DDevice3_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a)
1224#define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c)
1225#define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
1226#define IDirect3DDevice3_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1227#define IDirect3DDevice3_EndScene(p) (p)->lpVtbl->EndScene(p)
1228#define IDirect3DDevice3_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1229#define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a)
1230#define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a)
1231#define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1232#define IDirect3DDevice3_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
1233#define IDirect3DDevice3_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c)
1234#define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e)
1235#define IDirect3DDevice3_Vertex(p,a) (p)->lpVtbl->Vertex(p,a)
1236#define IDirect3DDevice3_Index(p,a) (p)->lpVtbl->Index(p,a)
1237#define IDirect3DDevice3_End(p,a) (p)->lpVtbl->End(p,a)
1238#define IDirect3DDevice3_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1239#define IDirect3DDevice3_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1240#define IDirect3DDevice3_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b)
1241#define IDirect3DDevice3_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b)
1242#define IDirect3DDevice3_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1243#define IDirect3DDevice3_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1244#define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1245#define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e)
1246#define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g)
1247#define IDirect3DDevice3_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1248#define IDirect3DDevice3_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1249#define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e)
1250#define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g)
1251#define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e)
1252#define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e)
1253#define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e)
1254#define IDirect3DDevice3_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
1255#define IDirect3DDevice3_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
1256#define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
1257#define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
1258#define IDirect3DDevice3_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
1259#else
1260/*** IUnknown methods ***/
1261#define IDirect3DDevice3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1262#define IDirect3DDevice3_AddRef(p) (p)->AddRef()
1263#define IDirect3DDevice3_Release(p) (p)->Release()
1264/*** IDirect3DDevice3 methods ***/
1265#define IDirect3DDevice3_GetCaps(p,a,b) (p)->GetCaps(a,b)
1266#define IDirect3DDevice3_GetStats(p,a) (p)->GetStats(a)
1267#define IDirect3DDevice3_AddViewport(p,a) (p)->AddViewport(a)
1268#define IDirect3DDevice3_DeleteViewport(p,a) (p)->DeleteViewport(a)
1269#define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c)
1270#define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
1271#define IDirect3DDevice3_BeginScene(p) (p)->BeginScene()
1272#define IDirect3DDevice3_EndScene(p) (p)->EndScene()
1273#define IDirect3DDevice3_GetDirect3D(p,a) (p)->GetDirect3D(a)
1274#define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a)
1275#define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a)
1276#define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
1277#define IDirect3DDevice3_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
1278#define IDirect3DDevice3_Begin(p,a,b,c) (p)->Begin(a,b,c)
1279#define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e)
1280#define IDirect3DDevice3_Vertex(p,a) (p)->Vertex(a)
1281#define IDirect3DDevice3_Index(p,a) (p)->Index(a)
1282#define IDirect3DDevice3_End(p,a) (p)->End(a)
1283#define IDirect3DDevice3_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
1284#define IDirect3DDevice3_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
1285#define IDirect3DDevice3_GetLightState(p,a,b) (p)->GetLightState(a,b)
1286#define IDirect3DDevice3_SetLightState(p,a,b) (p)->SetLightState(a,b)
1287#define IDirect3DDevice3_SetTransform(p,a,b) (p)->SetTransform(a,b)
1288#define IDirect3DDevice3_GetTransform(p,a,b) (p)->GetTransform(a,b)
1289#define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
1290#define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e)
1291#define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g)
1292#define IDirect3DDevice3_SetClipStatus(p,a) (p)->SetClipStatus(a)
1293#define IDirect3DDevice3_GetClipStatus(p,a) (p)->GetClipStatus(a)
1294#define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e)
1295#define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g)
1296#define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e)
1297#define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e)
1298#define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e)
1299#define IDirect3DDevice3_GetTexture(p,a,b) (p)->GetTexture(a,b)
1300#define IDirect3DDevice3_SetTexture(p,a,b) (p)->SetTexture(a,b)
1301#define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
1302#define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
1303#define IDirect3DDevice3_ValidateDevice(p,a) (p)->ValidateDevice(a)
1304#endif
1305
1306/*****************************************************************************
1307 * IDirect3DDevice7 interface
1308 */
1309#define INTERFACE IDirect3DDevice7
1310DECLARE_INTERFACE_(IDirect3DDevice7,IUnknown)
1311{
1312 /*** IUnknown methods ***/
1313 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1314 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1315 STDMETHOD_(ULONG,Release)(THIS) PURE;
1316 /*** IDirect3DDevice7 methods ***/
1317 STDMETHOD(GetCaps)(THIS_ D3DDEVICEDESC7 *desc) PURE;
1318 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK cb, void *ctx) PURE;
1319 STDMETHOD(BeginScene)(THIS) PURE;
1320 STDMETHOD(EndScene)(THIS) PURE;
1321 STDMETHOD(GetDirect3D)(THIS_ IDirect3D7 **d3d) PURE;
1322 STDMETHOD(SetRenderTarget)(THIS_ IDirectDrawSurface7 *surface, DWORD flags) PURE;
1323 STDMETHOD(GetRenderTarget)(THIS_ IDirectDrawSurface7 **surface) PURE;
1324 STDMETHOD(Clear)(THIS_ DWORD count, D3DRECT *rects, DWORD flags, D3DCOLOR color, D3DVALUE z, DWORD stencil) PURE;
1325 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix) PURE;
1326 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix) PURE;
1327 STDMETHOD(SetViewport)(THIS_ D3DVIEWPORT7 *data) PURE;
1328 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix) PURE;
1329 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT7 *data) PURE;
1330 STDMETHOD(SetMaterial)(THIS_ D3DMATERIAL7 *data) PURE;
1331 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL7 *data) PURE;
1332 STDMETHOD(SetLight)(THIS_ DWORD idx, D3DLIGHT7 *data) PURE;
1333 STDMETHOD(GetLight)(THIS_ DWORD idx, D3DLIGHT7 *data) PURE;
1334 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE dwRenderStateType, DWORD dwRenderState) PURE;
1335 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE dwRenderStateType, LPDWORD lpdwRenderState) PURE;
1336 STDMETHOD(BeginStateBlock)(THIS) PURE;
1337 STDMETHOD(EndStateBlock)(THIS_ LPDWORD lpdwBlockHandle) PURE;
1338 STDMETHOD(PreLoad)(THIS_ IDirectDrawSurface7 *surface) PURE;
1339 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE primitive_type, DWORD fvf,
1340 void *vertices, DWORD vertex_count, DWORD flags) PURE;
1341 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE primitive_type, DWORD fvf,
1342 void *vertices, DWORD vertex_count, WORD *indices, DWORD index_count, DWORD flags) PURE;
1343 STDMETHOD(SetClipStatus)(THIS_ D3DCLIPSTATUS *clip_status) PURE;
1344 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS *clip_status) PURE;
1345 STDMETHOD(DrawPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE primitive_type, DWORD fvf,
1346 D3DDRAWPRIMITIVESTRIDEDDATA *strided_data, DWORD vertex_count, DWORD flags) PURE;
1347 STDMETHOD(DrawIndexedPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE primitive_type, DWORD fvf,
1348 D3DDRAWPRIMITIVESTRIDEDDATA *strided_data, DWORD vertex_count, WORD *indices, DWORD index_count,
1349 DWORD flags) PURE;
1350 STDMETHOD(DrawPrimitiveVB)(THIS_ D3DPRIMITIVETYPE primitive_type, struct IDirect3DVertexBuffer7 *vb,
1351 DWORD start_vertex, DWORD vertex_count, DWORD flags) PURE;
1352 STDMETHOD(DrawIndexedPrimitiveVB)(THIS_ D3DPRIMITIVETYPE primitive_type, struct IDirect3DVertexBuffer7 *vb,
1353 DWORD start_vertex, DWORD vertex_count, WORD *indices, DWORD index_count, DWORD flags) PURE;
1354 STDMETHOD(ComputeSphereVisibility)(THIS_ D3DVECTOR *centers, D3DVALUE *radii, DWORD sphere_count,
1355 DWORD flags, DWORD *ret) PURE;
1356 STDMETHOD(GetTexture)(THIS_ DWORD stage, IDirectDrawSurface7 **surface) PURE;
1357 STDMETHOD(SetTexture)(THIS_ DWORD stage, IDirectDrawSurface7 *surface) PURE;
1358 STDMETHOD(GetTextureStageState)(THIS_ DWORD dwStage,D3DTEXTURESTAGESTATETYPE d3dTexStageStateType,LPDWORD lpdwState) PURE;
1359 STDMETHOD(SetTextureStageState)(THIS_ DWORD dwStage,D3DTEXTURESTAGESTATETYPE d3dTexStageStateType,DWORD dwState) PURE;
1360 STDMETHOD(ValidateDevice)(THIS_ LPDWORD lpdwPasses) PURE;
1361 STDMETHOD(ApplyStateBlock)(THIS_ DWORD dwBlockHandle) PURE;
1362 STDMETHOD(CaptureStateBlock)(THIS_ DWORD dwBlockHandle) PURE;
1363 STDMETHOD(DeleteStateBlock)(THIS_ DWORD dwBlockHandle) PURE;
1364 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE d3dsbType,LPDWORD lpdwBlockHandle) PURE;
1365 STDMETHOD(Load)(THIS_ IDirectDrawSurface7 *dst_surface, POINT *dst_point,
1366 IDirectDrawSurface7 *src_surface, RECT *src_rect, DWORD flags) PURE;
1367 STDMETHOD(LightEnable)(THIS_ DWORD dwLightIndex,BOOL bEnable) PURE;
1368 STDMETHOD(GetLightEnable)(THIS_ DWORD dwLightIndex,BOOL *pbEnable) PURE;
1369 STDMETHOD(SetClipPlane)(THIS_ DWORD dwIndex,D3DVALUE *pPlaneEquation) PURE;
1370 STDMETHOD(GetClipPlane)(THIS_ DWORD dwIndex,D3DVALUE *pPlaneEquation) PURE;
1371 STDMETHOD(GetInfo)(THIS_ DWORD info_id, void *info, DWORD info_size) PURE;
1372};
1373#undef INTERFACE
1374
1375#if !defined(__cplusplus) || defined(CINTERFACE)
1376/*** IUnknown methods ***/
1377#define IDirect3DDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1378#define IDirect3DDevice7_AddRef(p) (p)->lpVtbl->AddRef(p)
1379#define IDirect3DDevice7_Release(p) (p)->lpVtbl->Release(p)
1380/*** IDirect3DDevice7 methods ***/
1381#define IDirect3DDevice7_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
1382#define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
1383#define IDirect3DDevice7_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1384#define IDirect3DDevice7_EndScene(p) (p)->lpVtbl->EndScene(p)
1385#define IDirect3DDevice7_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1386#define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1387#define IDirect3DDevice7_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
1388#define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
1389#define IDirect3DDevice7_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1390#define IDirect3DDevice7_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1391#define IDirect3DDevice7_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
1392#define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1393#define IDirect3DDevice7_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
1394#define IDirect3DDevice7_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
1395#define IDirect3DDevice7_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
1396#define IDirect3DDevice7_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
1397#define IDirect3DDevice7_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
1398#define IDirect3DDevice7_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1399#define IDirect3DDevice7_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1400#define IDirect3DDevice7_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
1401#define IDirect3DDevice7_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
1402#define IDirect3DDevice7_PreLoad(p,a) (p)->lpVtbl->PreLoad(p,a)
1403#define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e)
1404#define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g)
1405#define IDirect3DDevice7_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1406#define IDirect3DDevice7_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1407#define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e)
1408#define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g)
1409#define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e)
1410#define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g)
1411#define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e)
1412#define IDirect3DDevice7_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
1413#define IDirect3DDevice7_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
1414#define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
1415#define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
1416#define IDirect3DDevice7_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
1417#define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a)
1418#define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a)
1419#define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a)
1420#define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
1421#define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->lpVtbl->Load(p,a,b,c,d,e)
1422#define IDirect3DDevice7_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
1423#define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
1424#define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
1425#define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
1426#define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)
1427#else
1428/*** IUnknown methods ***/
1429#define IDirect3DDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1430#define IDirect3DDevice7_AddRef(p) (p)->AddRef()
1431#define IDirect3DDevice7_Release(p) (p)->Release()
1432/*** IDirect3DDevice7 methods ***/
1433#define IDirect3DDevice7_GetCaps(p,a) (p)->GetCaps(a)
1434#define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
1435#define IDirect3DDevice7_BeginScene(p) (p)->BeginScene()
1436#define IDirect3DDevice7_EndScene(p) (p)->EndScene()
1437#define IDirect3DDevice7_GetDirect3D(p,a) (p)->GetDirect3D(a)
1438#define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
1439#define IDirect3DDevice7_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
1440#define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
1441#define IDirect3DDevice7_SetTransform(p,a,b) (p)->SetTransform(a,b)
1442#define IDirect3DDevice7_GetTransform(p,a,b) (p)->GetTransform(a,b)
1443#define IDirect3DDevice7_SetViewport(p,a) (p)->SetViewport(a)
1444#define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
1445#define IDirect3DDevice7_GetViewport(p,a) (p)->GetViewport(a)
1446#define IDirect3DDevice7_SetMaterial(p,a) (p)->SetMaterial(a)
1447#define IDirect3DDevice7_GetMaterial(p,a) (p)->GetMaterial(a)
1448#define IDirect3DDevice7_SetLight(p,a,b) (p)->SetLight(a,b)
1449#define IDirect3DDevice7_GetLight(p,a,b) (p)->GetLight(a,b)
1450#define IDirect3DDevice7_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
1451#define IDirect3DDevice7_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
1452#define IDirect3DDevice7_BeginStateBlock(p) (p)->BeginStateBlock()
1453#define IDirect3DDevice7_EndStateBlock(p,a) (p)->EndStateBlock(a)
1454#define IDirect3DDevice7_PreLoad(p,a) (p)->PreLoad(a)
1455#define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e)
1456#define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g)
1457#define IDirect3DDevice7_SetClipStatus(p,a) (p)->SetClipStatus(a)
1458#define IDirect3DDevice7_GetClipStatus(p,a) (p)->GetClipStatus(a)
1459#define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e)
1460#define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g)
1461#define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e)
1462#define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e,f,g)
1463#define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e)
1464#define IDirect3DDevice7_GetTexture(p,a,b) (p)->GetTexture(a,b)
1465#define IDirect3DDevice7_SetTexture(p,a,b) (p)->SetTexture(a,b)
1466#define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
1467#define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
1468#define IDirect3DDevice7_ValidateDevice(p,a) (p)->ValidateDevice(a)
1469#define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a)
1470#define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a)
1471#define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a)
1472#define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
1473#define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->Load(a,b,c,d,e)
1474#define IDirect3DDevice7_LightEnable(p,a,b) (p)->LightEnable(a,b)
1475#define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
1476#define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
1477#define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
1478#define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c)
1479#endif
1480
1481
1482
1483/*****************************************************************************
1484 * IDirect3DVertexBuffer interface
1485 */
1486#define INTERFACE IDirect3DVertexBuffer
1487DECLARE_INTERFACE_(IDirect3DVertexBuffer,IUnknown)
1488{
1489 /*** IUnknown methods ***/
1490 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1491 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1492 STDMETHOD_(ULONG,Release)(THIS) PURE;
1493 /*** IDirect3DVertexBuffer methods ***/
1494 STDMETHOD(Lock)(THIS_ DWORD flags, void **data, DWORD *data_size) PURE;
1495 STDMETHOD(Unlock)(THIS) PURE;
1496 STDMETHOD(ProcessVertices)(THIS_ DWORD vertex_op, DWORD dst_idx, DWORD count,
1497 IDirect3DVertexBuffer *src_buffer, DWORD src_idx,
1498 IDirect3DDevice3 *device, DWORD flags) PURE;
1499 STDMETHOD(GetVertexBufferDesc)(THIS_ D3DVERTEXBUFFERDESC *desc) PURE;
1500 STDMETHOD(Optimize)(THIS_ IDirect3DDevice3 *device, DWORD flags) PURE;
1501};
1502#undef INTERFACE
1503
1504#if !defined(__cplusplus) || defined(CINTERFACE)
1505/*** IUnknown methods ***/
1506#define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1507#define IDirect3DVertexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
1508#define IDirect3DVertexBuffer_Release(p) (p)->lpVtbl->Release(p)
1509/*** IDirect3DVertexBuffer methods ***/
1510#define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c)
1511#define IDirect3DVertexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
1512#define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g)
1513#define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a)
1514#define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b)
1515#else
1516/*** IUnknown methods ***/
1517#define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1518#define IDirect3DVertexBuffer_AddRef(p) (p)->AddRef()
1519#define IDirect3DVertexBuffer_Release(p) (p)->Release()
1520/*** IDirect3DVertexBuffer methods ***/
1521#define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->Lock(a,b,c)
1522#define IDirect3DVertexBuffer_Unlock(p) (p)->Unlock()
1523#define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g)
1524#define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a)
1525#define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->Optimize(a,b)
1526#endif
1527
1528/*****************************************************************************
1529 * IDirect3DVertexBuffer7 interface
1530 */
1531#define INTERFACE IDirect3DVertexBuffer7
1532DECLARE_INTERFACE_(IDirect3DVertexBuffer7,IUnknown)
1533{
1534 /*** IUnknown methods ***/
1535 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1536 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1537 STDMETHOD_(ULONG,Release)(THIS) PURE;
1538 /*** IDirect3DVertexBuffer7 methods ***/
1539 STDMETHOD(Lock)(THIS_ DWORD flags, void **data, DWORD *data_size) PURE;
1540 STDMETHOD(Unlock)(THIS) PURE;
1541 STDMETHOD(ProcessVertices)(THIS_ DWORD vertex_op, DWORD dst_idx, DWORD count,
1542 IDirect3DVertexBuffer7 *src_buffer, DWORD src_idx,
1543 IDirect3DDevice7 *device, DWORD flags) PURE;
1544 STDMETHOD(GetVertexBufferDesc)(THIS_ D3DVERTEXBUFFERDESC *desc) PURE;
1545 STDMETHOD(Optimize)(THIS_ IDirect3DDevice7 *device, DWORD flags) PURE;
1546 STDMETHOD(ProcessVerticesStrided)(THIS_ DWORD vertex_op, DWORD dst_idx, DWORD count,
1547 D3DDRAWPRIMITIVESTRIDEDDATA *data, DWORD fvf, IDirect3DDevice7 *device, DWORD flags) PURE;
1548};
1549#undef INTERFACE
1550
1551#if !defined(__cplusplus) || defined(CINTERFACE)
1552/*** IUnknown methods ***/
1553#define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1554#define IDirect3DVertexBuffer7_AddRef(p) (p)->lpVtbl->AddRef(p)
1555#define IDirect3DVertexBuffer7_Release(p) (p)->lpVtbl->Release(p)
1556/*** IDirect3DVertexBuffer7 methods ***/
1557#define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c)
1558#define IDirect3DVertexBuffer7_Unlock(p) (p)->lpVtbl->Unlock(p)
1559#define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g)
1560#define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a)
1561#define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b)
1562#define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVerticesStrided(p,a,b,c,d,e,f,g)
1563#else
1564/*** IUnknown methods ***/
1565#define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1566#define IDirect3DVertexBuffer7_AddRef(p) (p)->AddRef()
1567#define IDirect3DVertexBuffer7_Release(p) (p)->Release()
1568/*** IDirect3DVertexBuffer7 methods ***/
1569#define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->Lock(a,b,c)
1570#define IDirect3DVertexBuffer7_Unlock(p) (p)->Unlock()
1571#define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g)
1572#define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a)
1573#define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->Optimize(a,b)
1574#define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->ProcessVerticesStrided(a,b,c,d,e,f,g)
1575#endif
1576
1577#endif /* __WINE_D3D_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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