~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/include/d3d.h

Version: ~ [ wine-1.0-rc1 ] ~ [ wine-0.9.61 ] ~ [ wine-0.9.60 ] ~ [ wine-0.9.59 ] ~ [ wine-0.9.58 ] ~ [ wine-0.9.57 ] ~ [ wine-0.9.56 ] ~ [ wine-0.9.55 ] ~ [ wine-0.9.54 ] ~ [ wine-0.9.53 ] ~ [ wine-0.9.52 ] ~ [ wine-0.9.51 ] ~ [ wine-0.9.50 ] ~ [ wine-0.9.49 ] ~ [ wine-0.9.48 ] ~ [ wine-0.9.47 ] ~ [ wine-0.9.46 ] ~ [ wine-0.9.45 ] ~ [ wine-0.9.44 ] ~ [ wine-0.9.43 ] ~ [ wine-0.9.42 ] ~ [ wine-0.9.41 ] ~ [ wine-0.9.40 ] ~ [ wine-0.9.39 ] ~ [ wine-0.9.38 ] ~ [ wine-0.9.37 ] ~ [ wine-0.9.36 ] ~ [ wine-0.9.35 ] ~ [ wine-0.9.34 ] ~ [ wine-0.9.33 ] ~ [ wine-0.9.32 ] ~ [ wine-0.9.31 ] ~ [ wine-0.9.30 ] ~ [ wine-0.9.29 ] ~ [ wine-0.9.28 ] ~ [ wine-0.9.27 ] ~ [ wine-0.9.26 ] ~ [ wine-0.9.25 ] ~ [ wine-0.9.24 ] ~ [ wine-0.9.23 ] ~ [ wine-0.9.22 ] ~ [ wine-0.9.21 ] ~ [ wine-0.9.20 ] ~ [ wine-0.9.19 ] ~ [ wine-0.9.18 ] ~ [ wine-0.9.17 ] ~ [ wine-0.9.16 ] ~ [ wine-0.9.15 ] ~ [ wine-0.9.14 ] ~ [ wine-0.9.13 ] ~ [ wine-0.9.12 ] ~ [ wine-0.9.11 ] ~ [ wine-0.9.10 ] ~ [ wine-0.9.9 ] ~ [ wine-0.9.8 ] ~ [ wine-0.9.7 ] ~ [ wine-0.9.6 ] ~ [ wine-0.9.5 ] ~ [ wine-0.9.4 ] ~ [ wine-0.9.3 ] ~ [ wine-0.9.2 ] ~ [ wine-0.9.1 ] ~ [ wine-0.9 ] ~ [ wine20050930 ] ~ [ wine20050830 ] ~ [ wine20050725 ] ~ [ wine20050628 ] ~ [ wine20050524 ] ~ [ wine20050419 ] ~ [ wine20050310 ] ~ [ wine20050211 ] ~ [ wine20050111 ] ~ [ wine20041201 ] ~ [ wine20041019 ] ~ [ wine20040914 ] ~ [ wine20040813 ] ~ [ wine20040716 ] ~ [ wine20040615 ] ~ [ wine20040505 ] ~ [ wine20040408 ] ~ [ wine20040309 ] ~ [ wine20040213 ] ~ [ wine20040121 ] ~ [ wine20031212 ] ~ [ wine20031118 ] ~ [ wine20031016 ] ~ [ wine20030911 ] ~ [ wine20030813 ] ~ [ wine20030709 ] ~ [ wine20030618 ] ~ [ wine20030508 ] ~ [ wine20030408 ] ~ [ wine20030318 ] ~ [ wine20030219 ] ~ [ wine20030115 ] ~ [ wine20021219 ] ~ [ wine20021125 ] ~ [ wine20021031 ] ~ [ wine20021007 ] ~ [ wine20020904 ] ~ [ wine20020804 ] ~ [ wine20020710 ] ~ [ wine20020605 ] ~ [ wine20020509 ] ~ [ wine20020411 ] ~ [ wine20020310 ] ~ [ wine20020228 ] ~ [ wine20011226 ] ~ [ wine20011108 ] ~ [ wine20011004 ] ~ [ wine20010824 ] ~ [ wine20010731 ] ~ [ wine20010629 ] ~ [ wine20010510 ] ~ [ wine20010418 ] ~ [ wine20010326 ] ~ [ wine20010305 ] ~ [ wine20010216 ] ~ [ wine20010112 ] ~ [ wine20001222 ] ~ [ wine20001202 ] ~ [ wine20001026 ] ~ [ wine20001002 ] ~ [ wine20000909 ] ~ [ wine20000821 ] ~ [ wine20000801 ] ~ [ wine20000716 ] ~ [ wine20000326 ] ~ [ wine20000227 ] ~ [ wine20000130 ] ~ [ wine20000109 ] ~

  1 /*
  2  * Copyright (C) the Wine project
  3  *
  4  * This library is free software; you can redistribute it and/or
  5  * modify it under the terms of the GNU Lesser General Public
  6  * License as published by the Free Software Foundation; either
  7  * version 2.1 of the License, or (at your option) any later version.
  8  *
  9  * This library is distributed in the hope that it will be useful,
 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 12  * Lesser General Public License for more details.
 13  *
 14  * You should have received a copy of the GNU Lesser General Public
 15  * License along with this library; if not, write to the Free Software
 16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 17  */
 18 
 19 #ifndef __WINE_D3D_H
 20 #define __WINE_D3D_H
 21 
 22 #include <stdlib.h>
 23 
 24 #define COM_NO_WINDOWS_H
 25 #include <objbase.h>
 26 #include <d3dtypes.h> /* must precede d3dcaps.h */
 27 #include <d3dcaps.h>
 28 
 29 /*****************************************************************************
 30  * Predeclare the interfaces
 31  */
 32 DEFINE_GUID(IID_IDirect3D,              0x3BBA0080,0x2421,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
 33 DEFINE_GUID(IID_IDirect3D2,             0x6aae1ec1,0x662a,0x11d0,0x88,0x9d,0x00,0xaa,0x00,0xbb,0xb7,0x6a);
 34 DEFINE_GUID(IID_IDirect3D3,             0xbb223240,0xe72b,0x11d0,0xa9,0xb4,0x00,0xaa,0x00,0xc0,0x99,0x3e);
 35 DEFINE_GUID(IID_IDirect3D7,             0xf5049e77,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
 36 
 37 DEFINE_GUID(IID_IDirect3DRampDevice,    0xF2086B20,0x259F,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
 38 DEFINE_GUID(IID_IDirect3DRGBDevice,     0xA4665C60,0x2673,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
 39 DEFINE_GUID(IID_IDirect3DHALDevice,     0x84E63dE0,0x46AA,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
 40 DEFINE_GUID(IID_IDirect3DMMXDevice,     0x881949a1,0xd6f3,0x11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29);
 41 DEFINE_GUID(IID_IDirect3DRefDevice,     0x50936643,0x13e9,0x11d1,0x89,0xaa,0x00,0xa0,0xc9,0x05,0x41,0x29);
 42 DEFINE_GUID(IID_IDirect3DTnLHalDevice,  0xf5049e78,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
 43 DEFINE_GUID(IID_IDirect3DNullDevice,    0x8767df22,0xbacc,0x11d1,0x89,0x69,0x00,0xa0,0xc9,0x06,0x29,0xa8);
 44 
 45 DEFINE_GUID(IID_IDirect3DDevice,        0x64108800,0x957d,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
 46 DEFINE_GUID(IID_IDirect3DDevice2,       0x93281501,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
 47 DEFINE_GUID(IID_IDirect3DDevice3,       0xb0ab3b60,0x33d7,0x11d1,0xa9,0x81,0x00,0xc0,0x4f,0xd7,0xb1,0x74);
 48 DEFINE_GUID(IID_IDirect3DDevice7,       0xf5049e79,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
 49 
 50 DEFINE_GUID(IID_IDirect3DTexture,       0x2CDCD9E0,0x25A0,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
 51 DEFINE_GUID(IID_IDirect3DTexture2,      0x93281502,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
 52 
 53 DEFINE_GUID(IID_IDirect3DLight,         0x4417C142,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
 54 
 55 DEFINE_GUID(IID_IDirect3DMaterial,      0x4417C144,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
 56 DEFINE_GUID(IID_IDirect3DMaterial2,     0x93281503,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
 57 DEFINE_GUID(IID_IDirect3DMaterial3,     0xca9c46f4,0xd3c5,0x11d1,0xb7,0x5a,0x00,0x60,0x08,0x52,0xb3,0x12);
 58 
 59 DEFINE_GUID(IID_IDirect3DExecuteBuffer, 0x4417C145,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
 60 
 61 DEFINE_GUID(IID_IDirect3DViewport,      0x4417C146,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
 62 DEFINE_GUID(IID_IDirect3DViewport2,     0x93281500,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
 63 DEFINE_GUID(IID_IDirect3DViewport3,     0xb0ab3b61,0x33d7,0x11d1,0xa9,0x81,0x00,0xc0,0x4f,0xd7,0xb1,0x74);
 64 
 65 DEFINE_GUID(IID_IDirect3DVertexBuffer,  0x7a503555,0x4a83,0x11d1,0xa5,0xdb,0x00,0xa0,0xc9,0x03,0x67,0xf8);
 66 DEFINE_GUID(IID_IDirect3DVertexBuffer7, 0xf5049e7d,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
 67 
 68 
 69 typedef struct IDirect3D *LPDIRECT3D;
 70 typedef struct IDirect3D2 *LPDIRECT3D2;
 71 typedef struct IDirect3D3 *LPDIRECT3D3;
 72 typedef struct IDirect3D7 *LPDIRECT3D7;
 73 
 74 typedef struct IDirect3DLight *LPDIRECT3DLIGHT;
 75 
 76 typedef struct IDirect3DDevice *LPDIRECT3DDEVICE;
 77 typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2;
 78 typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3;
 79 typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7;
 80 
 81 typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT;
 82 typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2;
 83 typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3;
 84 
 85 typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL;
 86 typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2;
 87 typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3;
 88 
 89 typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE;
 90 typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2;
 91 
 92 typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER;
 93 
 94 typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER;
 95 typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7;
 96 
 97 /* ********************************************************************
 98    Error Codes
 99    ******************************************************************** */
100 #define D3D_OK                          DD_OK
101 #define D3DERR_BADMAJORVERSION          MAKE_DDHRESULT(700)
102 #define D3DERR_BADMINORVERSION          MAKE_DDHRESULT(701)
103 #define D3DERR_INVALID_DEVICE           MAKE_DDHRESULT(705)
104 #define D3DERR_INITFAILED               MAKE_DDHRESULT(706)
105 #define D3DERR_DEVICEAGGREGATED         MAKE_DDHRESULT(707)
106 #define D3DERR_EXECUTE_CREATE_FAILED    MAKE_DDHRESULT(710)
107 #define D3DERR_EXECUTE_DESTROY_FAILED   MAKE_DDHRESULT(711)
108 #define D3DERR_EXECUTE_LOCK_FAILED      MAKE_DDHRESULT(712)
109 #define D3DERR_EXECUTE_UNLOCK_FAILED    MAKE_DDHRESULT(713)
110 #define D3DERR_EXECUTE_LOCKED           MAKE_DDHRESULT(714)
111 #define D3DERR_EXECUTE_NOT_LOCKED       MAKE_DDHRESULT(715)
112 #define D3DERR_EXECUTE_FAILED           MAKE_DDHRESULT(716)
113 #define D3DERR_EXECUTE_CLIPPED_FAILED   MAKE_DDHRESULT(717)
114 #define D3DERR_TEXTURE_NO_SUPPORT       MAKE_DDHRESULT(720)
115 #define D3DERR_TEXTURE_CREATE_FAILED    MAKE_DDHRESULT(721)
116 #define D3DERR_TEXTURE_DESTROY_FAILED   MAKE_DDHRESULT(722)
117 #define D3DERR_TEXTURE_LOCK_FAILED      MAKE_DDHRESULT(723)
118 #define D3DERR_TEXTURE_UNLOCK_FAILED    MAKE_DDHRESULT(724)
119 #define D3DERR_TEXTURE_LOAD_FAILED      MAKE_DDHRESULT(725)
120 #define D3DERR_TEXTURE_SWAP_FAILED      MAKE_DDHRESULT(726)
121 #define D3DERR_TEXTURE_LOCKED           MAKE_DDHRESULT(727)
122 #define D3DERR_TEXTURE_NOT_LOCKED       MAKE_DDHRESULT(728)
123 #define D3DERR_TEXTURE_GETSURF_FAILED   MAKE_DDHRESULT(729)
124 #define D3DERR_MATRIX_CREATE_FAILED     MAKE_DDHRESULT(730)
125 #define D3DERR_MATRIX_DESTROY_FAILED    MAKE_DDHRESULT(731)
126 #define D3DERR_MATRIX_SETDATA_FAILED    MAKE_DDHRESULT(732)
127 #define D3DERR_MATRIX_GETDATA_FAILED    MAKE_DDHRESULT(733)
128 #define D3DERR_SETVIEWPORTDATA_FAILED   MAKE_DDHRESULT(734)
129 #define D3DERR_INVALIDCURRENTVIEWPORT   MAKE_DDHRESULT(735)
130 #define D3DERR_INVALIDPRIMITIVETYPE     MAKE_DDHRESULT(736)
131 #define D3DERR_INVALIDVERTEXTYPE        MAKE_DDHRESULT(737)
132 #define D3DERR_TEXTURE_BADSIZE          MAKE_DDHRESULT(738)
133 #define D3DERR_INVALIDRAMPTEXTURE       MAKE_DDHRESULT(739)
134 #define D3DERR_MATERIAL_CREATE_FAILED   MAKE_DDHRESULT(740)
135 #define D3DERR_MATERIAL_DESTROY_FAILED  MAKE_DDHRESULT(741)
136 #define D3DERR_MATERIAL_SETDATA_FAILED  MAKE_DDHRESULT(742)
137 #define D3DERR_MATERIAL_GETDATA_FAILED  MAKE_DDHRESULT(743)
138 #define D3DERR_INVALIDPALETTE           MAKE_DDHRESULT(744)
139 #define D3DERR_ZBUFF_NEEDS_SYSTEMMEMORY MAKE_DDHRESULT(745)
140 #define D3DERR_ZBUFF_NEEDS_VIDEOMEMORY  MAKE_DDHRESULT(746)
141 #define D3DERR_SURFACENOTINVIDMEM       MAKE_DDHRESULT(747)
142 #define D3DERR_LIGHT_SET_FAILED         MAKE_DDHRESULT(750)
143 #define D3DERR_LIGHTHASVIEWPORT         MAKE_DDHRESULT(751)
144 #define D3DERR_LIGHTNOTINTHISVIEWPORT   MAKE_DDHRESULT(752)
145 #define D3DERR_SCENE_IN_SCENE           MAKE_DDHRESULT(760)
146 #define D3DERR_SCENE_NOT_IN_SCENE       MAKE_DDHRESULT(761)
147 #define D3DERR_SCENE_BEGIN_FAILED       MAKE_DDHRESULT(762)
148 #define D3DERR_SCENE_END_FAILED         MAKE_DDHRESULT(763)
149 #define D3DERR_INBEGIN                  MAKE_DDHRESULT(770)
150 #define D3DERR_NOTINBEGIN               MAKE_DDHRESULT(771)
151 #define D3DERR_NOVIEWPORTS              MAKE_DDHRESULT(772)
152 #define D3DERR_VIEWPORTDATANOTSET       MAKE_DDHRESULT(773)
153 #define D3DERR_VIEWPORTHASNODEVICE      MAKE_DDHRESULT(774)
154 #define D3DERR_NOCURRENTVIEWPORT        MAKE_DDHRESULT(775)
155 #define D3DERR_INVALIDVERTEXFORMAT      MAKE_DDHRESULT(2048)
156 #define D3DERR_COLORKEYATTACHED         MAKE_DDHRESULT(2050)
157 #define D3DERR_VERTEXBUFFEROPTIMIZED    MAKE_DDHRESULT(2060)
158 #define D3DERR_VBUF_CREATE_FAILED       MAKE_DDHRESULT(2061)
159 #define D3DERR_VERTEXBUFFERLOCKED       MAKE_DDHRESULT(2062)
160 #define D3DERR_VERTEXBUFFERUNLOCKFAILED MAKE_DDHRESULT(2063)
161 #define D3DERR_ZBUFFER_NOTPRESENT       MAKE_DDHRESULT(2070)
162 #define D3DERR_STENCILBUFFER_NOTPRESENT MAKE_DDHRESULT(2071)
163 
164 #define D3DERR_WRONGTEXTUREFORMAT               MAKE_DDHRESULT(2072)
165 #define D3DERR_UNSUPPORTEDCOLOROPERATION        MAKE_DDHRESULT(2073)
166 #define D3DERR_UNSUPPORTEDCOLORARG              MAKE_DDHRESULT(2074)
167 #define D3DERR_UNSUPPORTEDALPHAOPERATION        MAKE_DDHRESULT(2075)
168 #define D3DERR_UNSUPPORTEDALPHAARG              MAKE_DDHRESULT(2076)
169 #define D3DERR_TOOMANYOPERATIONS                MAKE_DDHRESULT(2077)
170 #define D3DERR_CONFLICTINGTEXTUREFILTER         MAKE_DDHRESULT(2078)
171 #define D3DERR_UNSUPPORTEDFACTORVALUE           MAKE_DDHRESULT(2079)
172 #define D3DERR_CONFLICTINGRENDERSTATE           MAKE_DDHRESULT(2081)
173 #define D3DERR_UNSUPPORTEDTEXTUREFILTER         MAKE_DDHRESULT(2082)
174 #define D3DERR_TOOMANYPRIMITIVES                MAKE_DDHRESULT(2083)
175 #define D3DERR_INVALIDMATRIX                    MAKE_DDHRESULT(2084)
176 #define D3DERR_TOOMANYVERTICES                  MAKE_DDHRESULT(2085)
177 #define D3DERR_CONFLICTINGTEXTUREPALETTE        MAKE_DDHRESULT(2086)
178 
179 #define D3DERR_INVALIDSTATEBLOCK        MAKE_DDHRESULT(2100)
180 #define D3DERR_INBEGINSTATEBLOCK        MAKE_DDHRESULT(2101)
181 #define D3DERR_NOTINBEGINSTATEBLOCK     MAKE_DDHRESULT(2102)
182 
183 /* ********************************************************************
184    Enums
185    ******************************************************************** */
186 #define D3DNEXT_NEXT 0x01l
187 #define D3DNEXT_HEAD 0x02l
188 #define D3DNEXT_TAIL 0x04l
189 
190 #define D3DDP_WAIT               0x00000001l
191 #define D3DDP_OUTOFORDER         0x00000002l
192 #define D3DDP_DONOTCLIP          0x00000004l
193 #define D3DDP_DONOTUPDATEEXTENTS 0x00000008l
194 #define D3DDP_DONOTLIGHT         0x00000010l
195 
196 /* ********************************************************************
197    Types and structures
198    ******************************************************************** */
199 typedef DWORD D3DVIEWPORTHANDLE, *LPD3DVIEWPORTHANDLE;
200 
201 
202 /*****************************************************************************
203  * IDirect3D interface
204  */
205 #define INTERFACE IDirect3D
206 DECLARE_INTERFACE_(IDirect3D,IUnknown)
207 {
208     /*** IUnknown methods ***/
209     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
210     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
211     STDMETHOD_(ULONG,Release)(THIS) PURE;
212     /*** IDirect3D methods ***/
213     STDMETHOD(Initialize)(THIS_ REFIID riid) PURE;
214     STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK lpEnumDevicesCallback, LPVOID lpUserArg) PURE;
215     STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT *lplpDirect3DLight, IUnknown *pUnkOuter) PURE;
216     STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL *lplpDirect3DMaterial, IUnknown *pUnkOuter) PURE;
217     STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT *lplpD3DViewport, IUnknown *pUnkOuter) PURE;
218     STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH lpD3DDFS, LPD3DFINDDEVICERESULT lplpD3DDevice) PURE;
219 };
220 #undef INTERFACE
221 
222 #if !defined(__cplusplus) || defined(CINTERFACE)
223 /*** IUnknown methods ***/
224 #define IDirect3D_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
225 #define IDirect3D_AddRef(p)             (p)->lpVtbl->AddRef(p)
226 #define IDirect3D_Release(p)            (p)->lpVtbl->Release(p)
227 /*** IDirect3D methods ***/
228 #define IDirect3D_Initialize(p,a)       (p)->lpVtbl->Initialize(p,a)
229 #define IDirect3D_EnumDevices(p,a,b)    (p)->lpVtbl->EnumDevices(p,a,b)
230 #define IDirect3D_CreateLight(p,a,b)    (p)->lpVtbl->CreateLight(p,a,b)
231 #define IDirect3D_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
232 #define IDirect3D_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
233 #define IDirect3D_FindDevice(p,a,b)     (p)->lpVtbl->FindDevice(p,a,b)
234 #else
235 /*** IUnknown methods ***/
236 #define IDirect3D_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
237 #define IDirect3D_AddRef(p)             (p)->AddRef()
238 #define IDirect3D_Release(p)            (p)->Release()
239 /*** IDirect3D methods ***/
240 #define IDirect3D_Initialize(p,a)       (p)->Initialize(a)
241 #define IDirect3D_EnumDevices(p,a,b)    (p)->EnumDevices(a,b)
242 #define IDirect3D_CreateLight(p,a,b)    (p)->CreateLight(a,b)
243 #define IDirect3D_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
244 #define IDirect3D_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
245 #define IDirect3D_FindDevice(p,a,b)     (p)->FindDevice(a,b)
246 #endif
247 
248 
249 /*****************************************************************************
250  * IDirect3D2 interface
251  */
252 #define INTERFACE IDirect3D2
253 DECLARE_INTERFACE_(IDirect3D2,IUnknown)
254 {
255     /*** IUnknown methods ***/
256     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
257     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
258     STDMETHOD_(ULONG,Release)(THIS) PURE;
259     /*** IDirect3D2 methods ***/
260     STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK lpEnumDevicesCallback, LPVOID lpUserArg) PURE;
261     STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT *lplpDirect3DLight, IUnknown *pUnkOuter) PURE;
262     STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL2 *lplpDirect3DMaterial2, IUnknown *pUnkOuter) PURE;
263     STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT2 *lplpD3DViewport2, IUnknown *pUnkOuter) PURE;
264     STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH lpD3DDFS, LPD3DFINDDEVICERESULT lpD3DFDR) PURE;
265     STDMETHOD(CreateDevice)(THIS_ REFCLSID rclsid, LPDIRECTDRAWSURFACE lpDDS, LPDIRECT3DDEVICE2 *lplpD3DDevice2) PURE;
266 };
267 #undef INTERFACE
268 
269 #if !defined(__cplusplus) || defined(CINTERFACE)
270 /*** IUnknown methods ***/
271 #define IDirect3D2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
272 #define IDirect3D2_AddRef(p)             (p)->lpVtbl->AddRef(p)
273 #define IDirect3D2_Release(p)            (p)->lpVtbl->Release(p)
274 /*** IDirect3D2 methods ***/
275 #define IDirect3D2_EnumDevices(p,a,b)    (p)->lpVtbl->EnumDevices(p,a,b)
276 #define IDirect3D2_CreateLight(p,a,b)    (p)->lpVtbl->CreateLight(p,a,b)
277 #define IDirect3D2_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
278 #define IDirect3D2_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
279 #define IDirect3D2_FindDevice(p,a,b)     (p)->lpVtbl->FindDevice(p,a,b)
280 #define IDirect3D2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
281 #else
282 /*** IUnknown methods ***/
283 #define IDirect3D2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
284 #define IDirect3D2_AddRef(p)             (p)->AddRef()
285 #define IDirect3D2_Release(p)            (p)->Release()
286 /*** IDirect3D2 methods ***/
287 #define IDirect3D2_EnumDevices(p,a,b)    (p)->EnumDevices(a,b)
288 #define IDirect3D2_CreateLight(p,a,b)    (p)->CreateLight(a,b)
289 #define IDirect3D2_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
290 #define IDirect3D2_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
291 #define IDirect3D2_FindDevice(p,a,b)     (p)->FindDevice(a,b)
292 #define IDirect3D2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
293 #endif
294 
295 
296 /*****************************************************************************
297  * IDirect3D3 interface
298  */
299 #define INTERFACE IDirect3D3
300 DECLARE_INTERFACE_(IDirect3D3,IUnknown)
301 {
302     /*** IUnknown methods ***/
303     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
304     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
305     STDMETHOD_(ULONG,Release)(THIS) PURE;
306     /*** IDirect3D3 methods ***/
307     STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK lpEnumDevicesCallback, LPVOID lpUserArg) PURE;
308     STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT *lplpDirect3DLight, IUnknown *pUnkOuter) PURE;
309     STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL3 *lplpDirect3DMaterial3, IUnknown *pUnkOuter) PURE;
310     STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT3 *lplpD3DViewport3, IUnknown *pUnkOuter) PURE;
311     STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH lpD3DDFS, LPD3DFINDDEVICERESULT lpD3DFDR) PURE;
312     STDMETHOD(CreateDevice)(THIS_ REFCLSID rclsid,LPDIRECTDRAWSURFACE4 lpDDS, LPDIRECT3DDEVICE3 *lplpD3DDevice3,LPUNKNOWN lpUnk) PURE;
313     STDMETHOD(CreateVertexBuffer)(THIS_ LPD3DVERTEXBUFFERDESC lpD3DVertBufDesc,LPDIRECT3DVERTEXBUFFER *lplpD3DVertBuf,DWORD dwFlags,LPUNKNOWN lpUnk) PURE;
314     STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID riidDevice,LPD3DENUMPIXELFORMATSCALLBACK lpEnumCallback,LPVOID lpContext) PURE;
315     STDMETHOD(EvictManagedTextures)(THIS) PURE;
316 };
317 #undef INTERFACE
318 
319 #if !defined(__cplusplus) || defined(CINTERFACE)
320 /*** IUnknown methods ***/
321 #define IDirect3D3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
322 #define IDirect3D3_AddRef(p)             (p)->lpVtbl->AddRef(p)
323 #define IDirect3D3_Release(p)            (p)->lpVtbl->Release(p)
324 /*** IDirect3D3 methods ***/
325 #define IDirect3D3_EnumDevices(p,a,b)            (p)->lpVtbl->EnumDevices(p,a,b)
326 #define IDirect3D3_CreateLight(p,a,b)            (p)->lpVtbl->CreateLight(p,a,b)
327 #define IDirect3D3_CreateMaterial(p,a,b)         (p)->lpVtbl->CreateMaterial(p,a,b)
328 #define IDirect3D3_CreateViewport(p,a,b)         (p)->lpVtbl->CreateViewport(p,a,b)
329 #define IDirect3D3_FindDevice(p,a,b)             (p)->lpVtbl->FindDevice(p,a,b)
330 #define IDirect3D3_CreateDevice(p,a,b,c,d)       (p)->lpVtbl->CreateDevice(p,a,b,c,d)
331 #define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d)
332 #define IDirect3D3_EnumZBufferFormats(p,a,b,c)   (p)->lpVtbl->EnumZBufferFormats(p,a,b,c)
333 #define IDirect3D3_EvictManagedTextures(p)       (p)->lpVtbl->EvictManagedTextures(p)
334 #else
335 /*** IUnknown methods ***/
336 #define IDirect3D3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
337 #define IDirect3D3_AddRef(p)             (p)->AddRef()
338 #define IDirect3D3_Release(p)            (p)->Release()
339 /*** IDirect3D3 methods ***/
340 #define IDirect3D3_EnumDevices(p,a,b)            (p)->EnumDevices(a,b)
341 #define IDirect3D3_CreateLight(p,a,b)            (p)->CreateLight(a,b)
342 #define IDirect3D3_CreateMaterial(p,a,b)         (p)->CreateMaterial(a,b)
343 #define IDirect3D3_CreateViewport(p,a,b)         (p)->CreateViewport(a,b)
344 #define IDirect3D3_FindDevice(p,a,b)             (p)->FindDevice(a,b)
345 #define IDirect3D3_CreateDevice(p,a,b,c,d)       (p)->CreateDevice(a,b,c,d)
346 #define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->CreateVertexBuffer(a,b,c,d)
347 #define IDirect3D3_EnumZBufferFormats(p,a,b,c)   (p)->EnumZBufferFormats(a,b,c)
348 #define IDirect3D3_EvictManagedTextures(p)       (p)->EvictManagedTextures()
349 #endif
350 
351 /*****************************************************************************
352  * IDirect3D7 interface
353  */
354 #define INTERFACE IDirect3D7
355 DECLARE_INTERFACE_(IDirect3D7,IUnknown)
356 {
357     /*** IUnknown methods ***/
358     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
359     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
360     STDMETHOD_(ULONG,Release)(THIS) PURE;
361     /*** IDirect3D7 methods ***/
362     STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK7 lpEnumDevicesCallback, LPVOID lpUserArg) PURE;
363     STDMETHOD(CreateDevice)(THIS_ REFCLSID rclsid,LPDIRECTDRAWSURFACE7 lpDDS, LPDIRECT3DDEVICE7 *lplpD3DDevice) PURE;
364     STDMETHOD(CreateVertexBuffer)(THIS_ LPD3DVERTEXBUFFERDESC lpD3DVertBufDesc,LPDIRECT3DVERTEXBUFFER7 *lplpD3DVertBuf,DWORD dwFlags) PURE;
365     STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID riidDevice,LPD3DENUMPIXELFORMATSCALLBACK lpEnumCallback,LPVOID lpContext) PURE;
366     STDMETHOD(EvictManagedTextures)(THIS) PURE;
367 };
368 #undef INTERFACE
369 
370 #if !defined(__cplusplus) || defined(CINTERFACE)
371 /*** IUnknown methods ***/
372 #define IDirect3D7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
373 #define IDirect3D7_AddRef(p)             (p)->lpVtbl->AddRef(p)
374 #define IDirect3D7_Release(p)            (p)->lpVtbl->Release(p)
375 /*** IDirect3D3 methods ***/
376 #define IDirect3D7_EnumDevices(p,a,b)            (p)->lpVtbl->EnumDevices(p,a,b)
377 #define IDirect3D7_CreateDevice(p,a,b,c)         (p)->lpVtbl->CreateDevice(p,a,b,c)
378 #define IDirect3D7_CreateVertexBuffer(p,a,b,c)   (p)->lpVtbl->CreateVertexBuffer(p,a,b,c)
379 #define IDirect3D7_EnumZBufferFormats(p,a,b,c)   (p)->lpVtbl->EnumZBufferFormats(p,a,b,c)
380 #define IDirect3D7_EvictManagedTextures(p)       (p)->lpVtbl->EvictManagedTextures(p)
381 #else
382 /*** IUnknown methods ***/
383 #define IDirect3D7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
384 #define IDirect3D7_AddRef(p)             (p)->AddRef()
385 #define IDirect3D7_Release(p)            (p)->Release()
386 /*** IDirect3D3 methods ***/
387 #define IDirect3D7_EnumDevices(p,a,b)            (p)->EnumDevices(a,b)
388 #define IDirect3D7_CreateDevice(p,a,b,c)         (p)->CreateDevice(a,b,c)
389 #define IDirect3D7_CreateVertexBuffer(p,a,b,c)   (p)->CreateVertexBuffer(a,b,c)
390 #define IDirect3D7_EnumZBufferFormats(p,a,b,c)   (p)->EnumZBufferFormats(a,b,c)
391 #define IDirect3D7_EvictManagedTextures(p)       (p)->EvictManagedTextures()
392 #endif
393 
394 
395 /*****************************************************************************
396  * IDirect3DLight interface
397  */
398 #define INTERFACE IDirect3DLight
399 DECLARE_INTERFACE_(IDirect3DLight,IUnknown)
400 {
401     /*** IUnknown methods ***/
402     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
403     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
404     STDMETHOD_(ULONG,Release)(THIS) PURE;
405     /*** IDirect3DLight methods ***/
406     STDMETHOD(Initialize)(THIS_ LPDIRECT3D lpDirect3D) PURE;
407     STDMETHOD(SetLight)(THIS_ LPD3DLIGHT lpLight) PURE;
408     STDMETHOD(GetLight)(THIS_ LPD3DLIGHT lpLight) PURE;
409 };
410 #undef INTERFACE
411 
412 #if !defined(__cplusplus) || defined(CINTERFACE)
413 /*** IUnknown methods ***/
414 #define IDirect3DLight_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
415 #define IDirect3DLight_AddRef(p)             (p)->lpVtbl->AddRef(p)
416 #define IDirect3DLight_Release(p)            (p)->lpVtbl->Release(p)
417 /*** IDirect3DLight methods ***/
418 #define IDirect3DLight_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
419 #define IDirect3DLight_SetLight(p,a)   (p)->lpVtbl->SetLight(p,a)
420 #define IDirect3DLight_GetLight(p,a)   (p)->lpVtbl->GetLight(p,a)
421 #else
422 /*** IUnknown methods ***/
423 #define IDirect3DLight_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
424 #define IDirect3DLight_AddRef(p)             (p)->AddRef()
425 #define IDirect3DLight_Release(p)            (p)->Release()
426 /*** IDirect3DLight methods ***/
427 #define IDirect3DLight_Initialize(p,a) (p)->Initialize(a)
428 #define IDirect3DLight_SetLight(p,a)   (p)->SetLight(a)
429 #define IDirect3DLight_GetLight(p,a)   (p)->GetLight(a)
430 #endif
431 
432 
433 /*****************************************************************************
434  * IDirect3DMaterial interface
435  */
436 #define INTERFACE IDirect3DMaterial
437 DECLARE_INTERFACE_(IDirect3DMaterial,IUnknown)
438 {
439     /*** IUnknown methods ***/
440     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
441     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
442     STDMETHOD_(ULONG,Release)(THIS) PURE;
443     /*** IDirect3DMaterial methods ***/
444     STDMETHOD(Initialize)(THIS_ LPDIRECT3D lpDirect3D) PURE;
445     STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL lpMat) PURE;
446     STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL lpMat) PURE;
447     STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE lpDirect3DDevice, LPD3DMATERIALHANDLE lpHandle) PURE;
448     STDMETHOD(Reserve)(THIS) PURE;
449     STDMETHOD(Unreserve)(THIS) PURE;
450 };
451 #undef INTERFACE
452 
453 #if !defined(__cplusplus) || defined(CINTERFACE)
454 /*** IUnknown methods ***/
455 #define IDirect3DMaterial_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
456 #define IDirect3DMaterial_AddRef(p)             (p)->lpVtbl->AddRef(p)
457 #define IDirect3DMaterial_Release(p)            (p)->lpVtbl->Release(p)
458 /*** IDirect3DMaterial methods ***/
459 #define IDirect3DMaterial_Initialize(p,a)  (p)->lpVtbl->Initialize(p,a)
460 #define IDirect3DMaterial_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
461 #define IDirect3DMaterial_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
462 #define IDirect3DMaterial_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
463 #define IDirect3DMaterial_Reserve(p)       (p)->lpVtbl->Reserve(p)
464 #define IDirect3DMaterial_Unreserve(p)     (p)->lpVtbl->Unreserve(p)
465 #else
466 /*** IUnknown methods ***/
467 #define IDirect3DMaterial_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
468 #define IDirect3DMaterial_AddRef(p)             (p)->AddRef()
469 #define IDirect3DMaterial_Release(p)            (p)->Release()
470 /*** IDirect3DMaterial methods ***/
471 #define IDirect3DMaterial_Initialize(p,a)  (p)->Initialize(a)
472 #define IDirect3DMaterial_SetMaterial(p,a) (p)->SetMaterial(a)
473 #define IDirect3DMaterial_GetMaterial(p,a) (p)->GetMaterial(a)
474 #define IDirect3DMaterial_GetHandle(p,a,b) (p)->GetHandle(a,b)
475 #define IDirect3DMaterial_Reserve(p)       (p)->Reserve()
476 #define IDirect3DMaterial_Unreserve(p)     (p)->Unreserve()
477 #endif
478 
479 
480 /*****************************************************************************
481  * IDirect3DMaterial2 interface
482  */
483 #define INTERFACE IDirect3DMaterial2
484 DECLARE_INTERFACE_(IDirect3DMaterial2,IUnknown)
485 {
486     /*** IUnknown methods ***/
487     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
488     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
489     STDMETHOD_(ULONG,Release)(THIS) PURE;
490     /*** IDirect3DMaterial2 methods ***/
491     STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL lpMat) PURE;
492     STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL lpMat) PURE;
493     STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE2 lpDirect3DDevice2, LPD3DMATERIALHANDLE lpHandle) PURE;
494 };
495 #undef INTERFACE
496 
497 #if !defined(__cplusplus) || defined(CINTERFACE)
498 /*** IUnknown methods ***/
499 #define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
500 #define IDirect3DMaterial2_AddRef(p)             (p)->lpVtbl->AddRef(p)
501 #define IDirect3DMaterial2_Release(p)            (p)->lpVtbl->Release(p)
502 /*** IDirect3DMaterial2 methods ***/
503 #define IDirect3DMaterial2_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
504 #define IDirect3DMaterial2_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
505 #define IDirect3DMaterial2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
506 #else
507 /*** IUnknown methods ***/
508 #define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
509 #define IDirect3DMaterial2_AddRef(p)             (p)->AddRef()
510 #define IDirect3DMaterial2_Release(p)            (p)->Release()
511 /*** IDirect3DMaterial2 methods ***/
512 #define IDirect3DMaterial2_SetMaterial(p,a) (p)->SetMaterial(a)
513 #define IDirect3DMaterial2_GetMaterial(p,a) (p)->GetMaterial(a)
514 #define IDirect3DMaterial2_GetHandle(p,a,b) (p)->GetHandle(a,b)
515 #endif
516 
517 
518 /*****************************************************************************
519  * IDirect3DMaterial3 interface
520  */
521 #define INTERFACE IDirect3DMaterial3
522 DECLARE_INTERFACE_(IDirect3DMaterial3,IUnknown)
523 {
524     /*** IUnknown methods ***/
525     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
526     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
527     STDMETHOD_(ULONG,Release)(THIS) PURE;
528     /*** IDirect3DMaterial3 methods ***/
529     STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL lpMat) PURE;
530     STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL lpMat) PURE;
531     STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE3 lpDirect3DDevice3, LPD3DMATERIALHANDLE lpHandle) PURE;
532 };
533 #undef INTERFACE
534 
535 #if !defined(__cplusplus) || defined(CINTERFACE)
536 /*** IUnknown methods ***/
537 #define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
538 #define IDirect3DMaterial3_AddRef(p)             (p)->lpVtbl->AddRef(p)
539 #define IDirect3DMaterial3_Release(p)            (p)->lpVtbl->Release(p)
540 /*** IDirect3DMaterial3 methods ***/
541 #define IDirect3DMaterial3_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
542 #define IDirect3DMaterial3_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
543 #define IDirect3DMaterial3_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
544 #else
545 /*** IUnknown methods ***/
546 #define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
547 #define IDirect3DMaterial3_AddRef(p)             (p)->AddRef()
548 #define IDirect3DMaterial3_Release(p)            (p)->Release()
549 /*** IDirect3DMaterial3 methods ***/
550 #define IDirect3DMaterial3_SetMaterial(p,a) (p)->SetMaterial(a)
551 #define IDirect3DMaterial3_GetMaterial(p,a) (p)->GetMaterial(a)
552 #define IDirect3DMaterial3_GetHandle(p,a,b) (p)->GetHandle(a,b)
553 #endif
554 
555 
556 /*****************************************************************************
557  * IDirect3DTexture interface
558  */
559 #define INTERFACE IDirect3DTexture
560 DECLARE_INTERFACE_(IDirect3DTexture,IUnknown)
561 {
562     /*** IUnknown methods ***/
563     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
564     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
565     STDMETHOD_(ULONG,Release)(THIS) PURE;
566     /*** IDirect3DTexture methods ***/
567     STDMETHOD(Initialize)(THIS_ LPDIRECT3DDEVICE lpDirect3DDevice, LPDIRECTDRAWSURFACE lpDDSurface) PURE;
568     STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE lpDirect3DDevice, LPD3DTEXTUREHANDLE  lpHandle) PURE;
569     STDMETHOD(PaletteChanged)(THIS_ DWORD dwStart, DWORD dwCount) PURE;
570     STDMETHOD(Load)(THIS_ LPDIRECT3DTEXTURE lpD3DTexture) PURE;
571     STDMETHOD(Unload)(THIS) PURE;
572 };
573 #undef INTERFACE
574 
575 #if !defined(__cplusplus) || defined(CINTERFACE)
576 /*** IUnknown methods ***/
577 #define IDirect3DTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
578 #define IDirect3DTexture_AddRef(p)             (p)->lpVtbl->AddRef(p)
579 #define IDirect3DTexture_Release(p)            (p)->lpVtbl->Release(p)
580 /*** IDirect3DTexture methods ***/
581 #define IDirect3DTexture_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
582 #define IDirect3DTexture_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
583 #define IDirect3DTexture_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b)
584 #define IDirect3DTexture_Load(p,a) (p)->lpVtbl->Load(p,a)
585 #define IDirect3DTexture_Unload(p) (p)->lpVtbl->Unload(p)
586 #else
587 /*** IUnknown methods ***/
588 #define IDirect3DTexture_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
589 #define IDirect3DTexture_AddRef(p)             (p)->AddRef()
590 #define IDirect3DTexture_Release(p)            (p)->Release()
591 /*** IDirect3DTexture methods ***/
592 #define IDirect3DTexture_Initialize(p,a,b) (p)->Initialize(a,b)
593 #define IDirect3DTexture_GetHandle(p,a,b) (p)->GetHandle(a,b)
594 #define IDirect3DTexture_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b)
595 #define IDirect3DTexture_Load(p,a) (p)->Load(a)
596 #define IDirect3DTexture_Unload(p) (p)->Unload()
597 #endif
598 
599 
600 /*****************************************************************************
601  * IDirect3DTexture2 interface
602  */
603 #define INTERFACE IDirect3DTexture2
604 DECLARE_INTERFACE_(IDirect3DTexture2,IUnknown)
605 {
606     /*** IUnknown methods ***/
607     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
608     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
609     STDMETHOD_(ULONG,Release)(THIS) PURE;
610     /*** IDirect3DTexture2 methods ***/
611     STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE2 lpDirect3DDevice2, LPD3DTEXTUREHANDLE lpHandle) PURE;
612     STDMETHOD(PaletteChanged)(THIS_ DWORD dwStart, DWORD dwCount) PURE;
613     STDMETHOD(Load)(THIS_ LPDIRECT3DTEXTURE2 lpD3DTexture2) PURE;
614 };
615 #undef INTERFACE
616 
617 #if !defined(__cplusplus) || defined(CINTERFACE)
618 /*** IUnknown methods ***/
619 #define IDirect3DTexture2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
620 #define IDirect3DTexture2_AddRef(p)             (p)->lpVtbl->AddRef(p)
621 #define IDirect3DTexture2_Release(p)            (p)->lpVtbl->Release(p)
622 /*** IDirect3DTexture2 methods ***/
623 #define IDirect3DTexture2_GetHandle(p,a,b)      (p)->lpVtbl->GetHandle(p,a,b)
624 #define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b)
625 #define IDirect3DTexture2_Load(p,a)             (p)->lpVtbl->Load(p,a)
626 #else
627 /*** IUnknown methods ***/
628 #define IDirect3DTexture2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
629 #define IDirect3DTexture2_AddRef(p)             (p)->AddRef()
630 #define IDirect3DTexture2_Release(p)            (p)->Release()
631 /*** IDirect3DTexture2 methods ***/
632 #define IDirect3DTexture2_GetHandle(p,a,b)      (p)->GetHandle(a,b)
633 #define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b)
634 #define IDirect3DTexture2_Load(p,a)             (p)->Load(a)
635 #endif
636 
637 
638 /*****************************************************************************
639  * IDirect3DViewport interface
640  */
641 #define INTERFACE IDirect3DViewport
642 DECLARE_INTERFACE_(IDirect3DViewport,IUnknown)
643 {
644     /*** IUnknown methods ***/
645     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
646     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
647     STDMETHOD_(ULONG,Release)(THIS) PURE;
648     /*** IDirect3DViewport methods ***/
649     STDMETHOD(Initialize)(THIS_ LPDIRECT3D lpDirect3D) PURE;
650     STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT lpData) PURE;
651     STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT lpData) PURE;
652     STDMETHOD(TransformVertices)(THIS_ DWORD dwVertexCount, LPD3DTRANSFORMDATA lpData, DWORD dwFlags, LPDWORD lpOffScreen) PURE;
653     STDMETHOD(LightElements)(THIS_ DWORD dwElementCount, LPD3DLIGHTDATA lpData) PURE;
654     STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE hMat) PURE;
655     STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE lphMat, LPBOOL lpValid) PURE;
656     STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE lpDDSurface) PURE;
657     STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *lplpDDSurface, LPBOOL lpValid) PURE;
658     STDMETHOD(Clear)(THIS_ DWORD dwCount, LPD3DRECT lpRects, DWORD dwFlags) PURE;
659     STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT lpDirect3DLight) PURE;
660     STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT lpDirect3DLight) PURE;
661     STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT lpDirect3DLight, LPDIRECT3DLIGHT *lplpDirect3DLight, DWORD dwFlags) PURE;
662 };
663 #undef INTERFACE
664 
665 #if !defined(__cplusplus) || defined(CINTERFACE)
666 /*** IUnknown methods ***/
667 #define IDirect3DViewport_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
668 #define IDirect3DViewport_AddRef(p)             (p)->lpVtbl->AddRef(p)
669 #define IDirect3DViewport_Release(p)            (p)->lpVtbl->Release(p)
670 /*** IDirect3DViewport methods ***/
671 #define IDirect3DViewport_Initialize(p,a)              (p)->lpVtbl->Initialize(p,a)
672 #define IDirect3DViewport_GetViewport(p,a)             (p)->lpVtbl->GetViewport(p,a)
673 #define IDirect3DViewport_SetViewport(p,a)             (p)->lpVtbl->SetViewport(p,a)
674 #define IDirect