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