32-bit clipboard support.
[wine/multimedia.git] / include / d3d.h
blobbf10f3c2ffc3db41016c2f14455f21a5ee52a83c
1 #ifndef _WINE_D3D_H
2 #define _WINE_D3D_H
4 typedef LPVOID LPDIRECT3DMATERIAL,LPDIRECT3DVIEWPORT;
5 typedef LPVOID LPDIRECT3DMATERIAL2,LPDIRECT3DVIEWPORT2;
6 typedef LPVOID LPDIRECT3DDEVICE2;
8 DEFINE_GUID(IID_IDirect3D, 0x3BBA0080,0x2421,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 );
9 DEFINE_GUID(IID_IDirect3D2, 0x6aae1ec1,0x662a,0x11d0,0x88,0x9d,0x00,0xaa,0x00,0xbb,0xb7,0x6a);
11 DEFINE_GUID(IID_IDirect3DRampDevice, 0xF2086B20,0x259F,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 );
12 DEFINE_GUID(IID_IDirect3DRGBDevice, 0xA4665C60,0x2673,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 );
13 DEFINE_GUID(IID_IDirect3DHALDevice, 0x84E63dE0,0x46AA,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E );
14 DEFINE_GUID(IID_IDirect3DMMXDevice, 0x881949a1,0xd6f3,0x11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29 );
16 DEFINE_GUID(IID_IDirect3DDevice, 0x64108800,0x957d,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29 );
17 DEFINE_GUID(IID_IDirect3DDevice2, 0x93281501,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
18 DEFINE_GUID(IID_IDirect3DTexture, 0x2CDCD9E0,0x25A0,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
19 DEFINE_GUID(IID_IDirect3DTexture2, 0x93281502,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
20 DEFINE_GUID(IID_IDirect3DLight, 0x4417C142,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
21 DEFINE_GUID(IID_IDirect3DMaterial, 0x4417C144,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
22 DEFINE_GUID(IID_IDirect3DMaterial2, 0x93281503,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
23 DEFINE_GUID(IID_IDirect3DExecuteBuffer, 0x4417C145,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
24 DEFINE_GUID(IID_IDirect3DViewport, 0x4417C146,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
25 DEFINE_GUID(IID_IDirect3DViewport2, 0x93281500,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
27 typedef struct IDirect3D IDirect3D ,*LPDIRECT3D ;
28 typedef struct IDirect3D2 IDirect3D2,*LPDIRECT3D2;
29 typedef struct IDirect3DLight IDirect3DLight,*LPDIRECT3DLIGHT;
31 typedef struct {
32 DWORD dwSize;
33 DWORD dwCaps;
34 } D3DTRANSFORMCAPS,*LPD3DTRANSFORMCAPS;
36 #define D3DTRANSFORMCAPS_CLIP 0x00000001
38 typedef struct {
39 DWORD dwSize;
40 DWORD dwCaps;
41 DWORD dwLightingModel;
42 DWORD dwNumLights;
43 } D3DLIGHTINGCAPS, *LPD3DLIGHTINGCAPS;
45 #define D3DLIGHTINGMODEL_RGB 0x00000001
46 #define D3DLIGHTINGMODEL_MONO 0x00000002
48 #define D3DLIGHTCAPS_POINT 0x00000001
49 #define D3DLIGHTCAPS_SPOT 0x00000002
50 #define D3DLIGHTCAPS_DIRECTIONAL 0x00000004
51 #define D3DLIGHTCAPS_PARALLELPOINT 0x00000008
54 #define D3DCOLOR_MONO 1
55 #define D3DCOLOR_RGB 2
57 typedef DWORD D3DCOLORMODEL;
59 typedef struct {
60 DWORD dwSize;
61 DWORD dwMiscCaps; /* Capability flags */
62 DWORD dwRasterCaps;
63 DWORD dwZCmpCaps;
64 DWORD dwSrcBlendCaps;
65 DWORD dwDestBlendCaps;
66 DWORD dwAlphaCmpCaps;
67 DWORD dwShadeCaps;
68 DWORD dwTextureCaps;
69 DWORD dwTextureFilterCaps;
70 DWORD dwTextureBlendCaps;
71 DWORD dwTextureAddressCaps;
72 DWORD dwStippleWidth; /* maximum width and height of */
73 DWORD dwStippleHeight; /* of supported stipple (up to 32x32) */
74 } D3DPRIMCAPS, *LPD3DPRIMCAPS;
76 /* D3DPRIMCAPS.dwMiscCaps */
77 #define D3DPMISCCAPS_MASKPLANES 0x00000001
78 #define D3DPMISCCAPS_MASKZ 0x00000002
79 #define D3DPMISCCAPS_LINEPATTERNREP 0x00000004
80 #define D3DPMISCCAPS_CONFORMANT 0x00000008
81 #define D3DPMISCCAPS_CULLNONE 0x00000010
82 #define D3DPMISCCAPS_CULLCW 0x00000020
83 #define D3DPMISCCAPS_CULLCCW 0x00000040
85 /* D3DPRIMCAPS.dwRasterCaps */
86 #define D3DPRASTERCAPS_DITHER 0x00000001
87 #define D3DPRASTERCAPS_ROP2 0x00000002
88 #define D3DPRASTERCAPS_XOR 0x00000004
89 #define D3DPRASTERCAPS_PAT 0x00000008
90 #define D3DPRASTERCAPS_ZTEST 0x00000010
91 #define D3DPRASTERCAPS_SUBPIXEL 0x00000020
92 #define D3DPRASTERCAPS_SUBPIXELX 0x00000040
93 #define D3DPRASTERCAPS_FOGVERTEX 0x00000080
94 #define D3DPRASTERCAPS_FOGTABLE 0x00000100
95 #define D3DPRASTERCAPS_STIPPLE 0x00000200
96 #define D3DPRASTERCAPS_ANTIALIASSORTDEPENDENT 0x00000400
97 #define D3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT 0x00000800
98 #define D3DPRASTERCAPS_ANTIALIASEDGES 0x00001000
99 #define D3DPRASTERCAPS_MIPMAPLODBIAS 0x00002000
100 #define D3DPRASTERCAPS_ZBIAS 0x00004000
101 #define D3DPRASTERCAPS_ZBUFFERLESSHSR 0x00008000
102 #define D3DPRASTERCAPS_FOGRANGE 0x00010000
103 #define D3DPRASTERCAPS_ANISOTROPY 0x00020000
105 /* D3DPRIMCAPS.dwZCmpCaps and dwAlphaCmpCaps */
106 #define D3DPCMPCAPS_NEVER 0x00000001
107 #define D3DPCMPCAPS_LESS 0x00000002
108 #define D3DPCMPCAPS_EQUAL 0x00000004
109 #define D3DPCMPCAPS_LESSEQUAL 0x00000008
110 #define D3DPCMPCAPS_GREATER 0x00000010
111 #define D3DPCMPCAPS_NOTEQUAL 0x00000020
112 #define D3DPCMPCAPS_GREATEREQUAL 0x00000040
113 #define D3DPCMPCAPS_ALWAYS 0x00000080
115 /* D3DPRIMCAPS.dwSourceBlendCaps, dwDestBlendCaps */
116 #define D3DPBLENDCAPS_ZERO 0x00000001
117 #define D3DPBLENDCAPS_ONE 0x00000002
118 #define D3DPBLENDCAPS_SRCCOLOR 0x00000004
119 #define D3DPBLENDCAPS_INVSRCCOLOR 0x00000008
120 #define D3DPBLENDCAPS_SRCALPHA 0x00000010
121 #define D3DPBLENDCAPS_INVSRCALPHA 0x00000020
122 #define D3DPBLENDCAPS_DESTALPHA 0x00000040
123 #define D3DPBLENDCAPS_INVDESTALPHA 0x00000080
124 #define D3DPBLENDCAPS_DESTCOLOR 0x00000100
125 #define D3DPBLENDCAPS_INVDESTCOLOR 0x00000200
126 #define D3DPBLENDCAPS_SRCALPHASAT 0x00000400
127 #define D3DPBLENDCAPS_BOTHSRCALPHA 0x00000800
128 #define D3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000
130 /* D3DPRIMCAPS.dwShadeCaps */
131 #define D3DPSHADECAPS_COLORFLATMONO 0x00000001
132 #define D3DPSHADECAPS_COLORFLATRGB 0x00000002
133 #define D3DPSHADECAPS_COLORGOURAUDMONO 0x00000004
134 #define D3DPSHADECAPS_COLORGOURAUDRGB 0x00000008
135 #define D3DPSHADECAPS_COLORPHONGMONO 0x00000010
136 #define D3DPSHADECAPS_COLORPHONGRGB 0x00000020
138 #define D3DPSHADECAPS_SPECULARFLATMONO 0x00000040
139 #define D3DPSHADECAPS_SPECULARFLATRGB 0x00000080
140 #define D3DPSHADECAPS_SPECULARGOURAUDMONO 0x00000100
141 #define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200
142 #define D3DPSHADECAPS_SPECULARPHONGMONO 0x00000400
143 #define D3DPSHADECAPS_SPECULARPHONGRGB 0x00000800
145 #define D3DPSHADECAPS_ALPHAFLATBLEND 0x00001000
146 #define D3DPSHADECAPS_ALPHAFLATSTIPPLED 0x00002000
147 #define D3DPSHADECAPS_ALPHAGOURAUDBLEND 0x00004000
148 #define D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED 0x00008000
149 #define D3DPSHADECAPS_ALPHAPHONGBLEND 0x00010000
150 #define D3DPSHADECAPS_ALPHAPHONGSTIPPLED 0x00020000
152 #define D3DPSHADECAPS_FOGFLAT 0x00040000
153 #define D3DPSHADECAPS_FOGGOURAUD 0x00080000
154 #define D3DPSHADECAPS_FOGPHONG 0x00100000
156 /* D3DPRIMCAPS.dwTextureCaps */
157 #define D3DPTEXTURECAPS_PERSPECTIVE 0x00000001
158 #define D3DPTEXTURECAPS_POW2 0x00000002
159 #define D3DPTEXTURECAPS_ALPHA 0x00000004
160 #define D3DPTEXTURECAPS_TRANSPARENCY 0x00000008
161 #define D3DPTEXTURECAPS_BORDER 0x00000010
162 #define D3DPTEXTURECAPS_SQUAREONLY 0x00000020
164 /* D3DPRIMCAPS.dwTextureFilterCaps */
165 #define D3DPTFILTERCAPS_NEAREST 0x00000001
166 #define D3DPTFILTERCAPS_LINEAR 0x00000002
167 #define D3DPTFILTERCAPS_MIPNEAREST 0x00000004
168 #define D3DPTFILTERCAPS_MIPLINEAR 0x00000008
169 #define D3DPTFILTERCAPS_LINEARMIPNEAREST 0x00000010
170 #define D3DPTFILTERCAPS_LINEARMIPLINEAR 0x00000020
172 /* D3DPRIMCAPS.dwTextureBlendCaps */
173 #define D3DPTBLENDCAPS_DECAL 0x00000001
174 #define D3DPTBLENDCAPS_MODULATE 0x00000002
175 #define D3DPTBLENDCAPS_DECALALPHA 0x00000004
176 #define D3DPTBLENDCAPS_MODULATEALPHA 0x00000008
177 #define D3DPTBLENDCAPS_DECALMASK 0x00000010
178 #define D3DPTBLENDCAPS_MODULATEMASK 0x00000020
179 #define D3DPTBLENDCAPS_COPY 0x00000040
180 #define D3DPTBLENDCAPS_ADD 0x00000080
182 /* D3DPRIMCAPS.dwTextureAddressCaps */
183 #define D3DPTADDRESSCAPS_WRAP 0x00000001
184 #define D3DPTADDRESSCAPS_MIRROR 0x00000002
185 #define D3DPTADDRESSCAPS_CLAMP 0x00000004
186 #define D3DPTADDRESSCAPS_BORDER 0x00000008
187 #define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010
190 /* D3DDEVICEDESC.dwFlags */
191 #define D3DDD_COLORMODEL 0x00000001
192 #define D3DDD_DEVCAPS 0x00000002
193 #define D3DDD_TRANSFORMCAPS 0x00000004
194 #define D3DDD_LIGHTINGCAPS 0x00000008
195 #define D3DDD_BCLIPPING 0x00000010
196 #define D3DDD_LINECAPS 0x00000020
197 #define D3DDD_TRICAPS 0x00000040
198 #define D3DDD_DEVICERENDERBITDEPTH 0x00000080
199 #define D3DDD_DEVICEZBUFFERBITDEPTH 0x00000100
200 #define D3DDD_MAXBUFFERSIZE 0x00000200
201 #define D3DDD_MAXVERTEXCOUNT 0x00000400
203 /* D3DDEVICEDESC.dwDevCaps */
204 #define D3DDEVCAPS_SORTINCREASINGZ 0x00000002
205 #define D3DDEVCAPS_SORTDECREASINGZ 0X00000004
206 #define D3DDEVCAPS_SORTEXACT 0x00000008
207 #define D3DDEVCAPS_EXECUTESYSTEMMEMORY 0x00000010
208 #define D3DDEVCAPS_EXECUTEVIDEOMEMORY 0x00000020
209 #define D3DDEVCAPS_TLVERTEXSYSTEMMEMORY 0x00000040
210 #define D3DDEVCAPS_TLVERTEXVIDEOMEMORY 0x00000080
211 #define D3DDEVCAPS_TEXTURESYSTEMMEMORY 0x00000100
212 #define D3DDEVCAPS_TEXTUREVIDEOMEMORY 0x00000200
213 #define D3DDEVCAPS_DRAWPRIMTLVERTEX 0x00000400
214 #define D3DDEVCAPS_CANRENDERAFTERFLIP 0x00000800
215 #define D3DDEVCAPS_TEXTURENONLOCALVIDMEM 0x00001000
217 typedef struct _D3DDeviceDesc {
218 DWORD dwSize;
219 DWORD dwFlags;
220 D3DCOLORMODEL dcmColorModel;
221 DWORD dwDevCaps;
222 D3DTRANSFORMCAPS dtcTransformCaps;
223 BOOL32 bClipping;
224 D3DLIGHTINGCAPS dlcLightingCaps;
225 D3DPRIMCAPS dpcLineCaps;
226 D3DPRIMCAPS dpcTriCaps;
227 DWORD dwDeviceRenderBitDepth;
228 DWORD dwDeviceZBufferBitDepth;
229 DWORD dwMaxBufferSize;
230 DWORD dwMaxVertexCount;
231 /* *** New fields for DX5 *** */
232 DWORD dwMinTextureWidth,dwMinTextureHeight;
233 DWORD dwMaxTextureWidth,dwMaxTextureHeight;
234 DWORD dwMinStippleWidth,dwMaxStippleWidth;
235 DWORD dwMinStippleHeight,dwMaxStippleHeight;
236 } D3DDEVICEDESC,*LPD3DDEVICEDESC;
238 typedef HRESULT (CALLBACK * LPD3DENUMDEVICESCALLBACK)(LPGUID lpGuid,LPSTR lpDeviceDescription,LPSTR lpDeviceName,LPD3DDEVICEDESC,LPD3DDEVICEDESC,LPVOID);
240 /* dwflags for FindDevice */
241 #define D3DFDS_COLORMODEL 0x00000001
242 #define D3DFDS_GUID 0x00000002
243 #define D3DFDS_HARDWARE 0x00000004
244 #define D3DFDS_TRIANGLES 0x00000008
245 #define D3DFDS_LINES 0x00000010
246 #define D3DFDS_MISCCAPS 0x00000020
247 #define D3DFDS_RASTERCAPS 0x00000040
248 #define D3DFDS_ZCMPCAPS 0x00000080
249 #define D3DFDS_ALPHACMPCAPS 0x00000100
250 #define D3DFDS_DSTBLENDCAPS 0x00000400
251 #define D3DFDS_SHADECAPS 0x00000800
252 #define D3DFDS_TEXTURECAPS 0x00001000
253 #define D3DFDS_TEXTUREFILTERCAPS 0x00002000
254 #define D3DFDS_TEXTUREBLENDCAPS 0x00004000
255 #define D3DFDS_TEXTUREADDRESSCAPS 0x00008000
257 typedef struct {
258 DWORD dwSize;
259 DWORD dwFlags;
260 BOOL32 bHardware;
261 D3DCOLORMODEL dcmColorModel;
262 GUID guid;
263 DWORD dwCaps;
264 D3DPRIMCAPS dpcPrimCaps;
265 } D3DFINDDEVICESEARCH,*LPD3DFINDDEVICESEARCH;
267 typedef struct {
268 DWORD dwSize;
269 GUID guid;
270 D3DDEVICEDESC ddHwDesc;
271 D3DDEVICEDESC ddSwDesc;
272 } D3DFINDDEVICERESULT,*LPD3DFINDDEVICERESULT;
274 #define D3DVALP(val, prec) ((float)(val))
275 #define D3DVAL(val) ((float)(val))
276 typedef float D3DVALUE,*LPD3DVALUE;
277 #define D3DDivide(a, b) (float)((double) (a) / (double) (b))
278 #define D3DMultiply(a, b) ((a) * (b))
280 typedef struct {
281 union {
282 D3DVALUE x;
283 D3DVALUE dvX;
284 } x;
285 union {
286 D3DVALUE y;
287 D3DVALUE dvY;
288 } y;
289 union {
290 D3DVALUE z;
291 D3DVALUE dvZ;
292 } z;
293 /* the c++ variant has operator overloads etc. too */
294 } D3DVECTOR,*LPD3DVECTOR;
297 typedef enum {
298 D3DLIGHT_POINT = 1,
299 D3DLIGHT_SPOT = 2,
300 D3DLIGHT_DIRECTIONAL = 3,
301 D3DLIGHT_PARALLELPOINT = 4,
302 D3DLIGHT_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */
303 } D3DLIGHTTYPE;
305 typedef struct _D3DCOLORVALUE {
306 union {
307 D3DVALUE r;
308 D3DVALUE dvR;
309 } r;
310 union {
311 D3DVALUE g;
312 D3DVALUE dvG;
313 } g;
314 union {
315 D3DVALUE b;
316 D3DVALUE dvB;
317 } b;
318 union {
319 D3DVALUE a;
320 D3DVALUE dvA;
321 } a;
322 } D3DCOLORVALUE,*LPD3DCOLORVALUE;
324 typedef struct {
325 DWORD dwSize;
326 D3DLIGHTTYPE dltType;
327 D3DCOLORVALUE dcvColor;
328 D3DVECTOR dvPosition; /* Position in world space */
329 D3DVECTOR dvDirection; /* Direction in world space */
330 D3DVALUE dvRange; /* Cutoff range */
331 D3DVALUE dvFalloff; /* Falloff */
332 D3DVALUE dvAttenuation0; /* Constant attenuation */
333 D3DVALUE dvAttenuation1; /* Linear attenuation */
334 D3DVALUE dvAttenuation2; /* Quadratic attenuation */
335 D3DVALUE dvTheta; /* Inner angle of spotlight cone */
336 D3DVALUE dvPhi; /* Outer angle of spotlight cone */
337 } D3DLIGHT,*LPD3DLIGHT;
339 /* flags bits */
340 #define D3DLIGHT_ACTIVE 0x00000001
341 #define D3DLIGHT_NO_SPECULAR 0x00000002
344 #define STDMETHOD(xfn) HRESULT (CALLBACK *fn##xfn)
345 #define STDMETHOD_(ret,xfn) ret (CALLBACK *fn##xfn)
346 #define PURE
347 #define FAR
348 #define THIS_ THIS ,
350 #define THIS LPDIRECT3D this
351 typedef struct IDirect3D_VTable {
352 /*** IUnknown methods ***/
353 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE;
354 STDMETHOD_(ULONG, AddRef) (THIS) PURE;
355 STDMETHOD_(ULONG, Release) (THIS) PURE;
356 /*** IDirect3D methods ***/
357 STDMETHOD(Initialize) (THIS_ REFIID) PURE;
358 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK, LPVOID) PURE;
359 STDMETHOD(CreateLight) (THIS_ LPDIRECT3DLIGHT*, IUnknown*) PURE;
360 STDMETHOD(CreateMaterial) (THIS_ LPDIRECT3DMATERIAL*, IUnknown*) PURE;
361 STDMETHOD(CreateViewport) (THIS_ LPDIRECT3DVIEWPORT*, IUnknown*) PURE;
362 STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH, LPD3DFINDDEVICERESULT) PURE;
363 } *LPDIRECT3D_VTABLE,IDirect3D_VTable;
365 struct IDirect3D {
366 LPDIRECT3D_VTABLE lpvtbl;
367 DWORD ref;
368 LPDIRECTDRAW ddraw;
370 #undef THIS
372 #define THIS LPDIRECT3D2 this
373 typedef struct IDirect3D2_VTable {
374 /*** IUnknown methods ***/
375 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE;
376 STDMETHOD_(ULONG, AddRef) (THIS) PURE;
377 STDMETHOD_(ULONG, Release) (THIS) PURE;
378 /*** IDirect3D2 methods ***/
379 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK, LPVOID) PURE;
380 STDMETHOD(CreateLight) (THIS_ LPDIRECT3DLIGHT*, IUnknown*) PURE;
381 STDMETHOD(CreateMaterial) (THIS_ LPDIRECT3DMATERIAL2*, IUnknown*) PURE;
382 STDMETHOD(CreateViewport) (THIS_ LPDIRECT3DVIEWPORT2*, IUnknown*) PURE;
383 STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH, LPD3DFINDDEVICERESULT) PURE;
384 STDMETHOD(CreateDevice)(THIS_ REFCLSID, LPDIRECTDRAWSURFACE, LPDIRECT3DDEVICE2 *) PURE;
385 } *LPDIRECT3D2_VTABLE,IDirect3D2_VTable;
387 struct IDirect3D2 {
388 LPDIRECT3D2_VTABLE lpvtbl;
389 DWORD ref;
390 LPDIRECTDRAW ddraw;
392 #undef THIS
394 #define THIS LPDIRECT3DLIGHT this
395 typedef struct IDirect3DLight_VTable {
396 /*** IUnknown methods ***/
397 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE;
398 STDMETHOD_(ULONG, AddRef) (THIS) PURE;
399 STDMETHOD_(ULONG, Release) (THIS) PURE;
400 /*** IDirect3DLight methods ***/
401 STDMETHOD(Initialize) (THIS_ LPDIRECT3D) PURE;
402 STDMETHOD(SetLight) (THIS_ LPD3DLIGHT) PURE;
403 STDMETHOD(GetLight) (THIS_ LPD3DLIGHT) PURE;
404 } IDirect3DLight_VTable,*LPDIRECT3DLIGHT_VTABLE;
406 struct IDirect3DLight {
407 LPDIRECT3DLIGHT_VTABLE lpvtbl;
408 DWORD ref;
411 #undef THIS
413 #undef THIS_
414 #undef STDMETHOD
415 #undef STDMETHOD_
416 #undef PURE
417 #undef FAR
418 #endif