wininet: Use a blank password if none is provided in FTP_Connect.
[wine] / dlls / d3d8 / d3d8_private.h
1 /*
2  * Direct3D 8 private include file
3  *
4  * Copyright 2002-2004 Jason Edmeades
5  * Copyright 2003-2004 Raphael Junqueira
6  * Copyright 2004 Christian Costa
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21  */
22
23 #ifndef __WINE_D3D8_PRIVATE_H
24 #define __WINE_D3D8_PRIVATE_H
25
26 #include <stdarg.h>
27
28 #define NONAMELESSUNION
29 #define NONAMELESSSTRUCT
30 #define COBJMACROS
31 #include "windef.h"
32 #include "winbase.h"
33 #include "wingdi.h"
34 #include "wine/debug.h"
35 #include "d3d8.h"
36 #include "ddraw.h"
37 #include "wine/wined3d_interface.h"
38
39 /* Device caps */
40 #define MAX_SHADERS        64
41
42 /* CreateVertexShader can return > 0xFFFF */
43 #define VS_HIGHESTFIXEDFXF 0xF0000000
44
45 /* ===========================================================================
46     Macros
47    =========================================================================== */
48 /* Not nice, but it lets wined3d support different versions of directx */
49 #define D3D8CAPSTOWINECAPS(_pD3D8Caps, _pWineCaps) \
50     _pWineCaps->DeviceType                        = (WINED3DDEVTYPE *) &_pD3D8Caps->DeviceType; \
51     _pWineCaps->AdapterOrdinal                    = &_pD3D8Caps->AdapterOrdinal; \
52     _pWineCaps->Caps                              = &_pD3D8Caps->Caps; \
53     _pWineCaps->Caps2                             = &_pD3D8Caps->Caps2; \
54     _pWineCaps->Caps3                             = &_pD3D8Caps->Caps3; \
55     _pWineCaps->PresentationIntervals             = &_pD3D8Caps->PresentationIntervals; \
56     _pWineCaps->CursorCaps                        = &_pD3D8Caps->CursorCaps; \
57     _pWineCaps->DevCaps                           = &_pD3D8Caps->DevCaps; \
58     _pWineCaps->PrimitiveMiscCaps                 = &_pD3D8Caps->PrimitiveMiscCaps; \
59     _pWineCaps->RasterCaps                        = &_pD3D8Caps->RasterCaps; \
60     _pWineCaps->ZCmpCaps                          = &_pD3D8Caps->ZCmpCaps; \
61     _pWineCaps->SrcBlendCaps                      = &_pD3D8Caps->SrcBlendCaps; \
62     _pWineCaps->DestBlendCaps                     = &_pD3D8Caps->DestBlendCaps; \
63     _pWineCaps->AlphaCmpCaps                      = &_pD3D8Caps->AlphaCmpCaps; \
64     _pWineCaps->ShadeCaps                         = &_pD3D8Caps->ShadeCaps; \
65     _pWineCaps->TextureCaps                       = &_pD3D8Caps->TextureCaps; \
66     _pWineCaps->TextureFilterCaps                 = &_pD3D8Caps->TextureFilterCaps; \
67     _pWineCaps->CubeTextureFilterCaps             = &_pD3D8Caps->CubeTextureFilterCaps; \
68     _pWineCaps->VolumeTextureFilterCaps           = &_pD3D8Caps->VolumeTextureFilterCaps; \
69     _pWineCaps->TextureAddressCaps                = &_pD3D8Caps->TextureAddressCaps; \
70     _pWineCaps->VolumeTextureAddressCaps          = &_pD3D8Caps->VolumeTextureAddressCaps; \
71     _pWineCaps->LineCaps                          = &_pD3D8Caps->LineCaps; \
72     _pWineCaps->MaxTextureWidth                   = &_pD3D8Caps->MaxTextureWidth; \
73     _pWineCaps->MaxTextureHeight                  = &_pD3D8Caps->MaxTextureHeight; \
74     _pWineCaps->MaxVolumeExtent                   = &_pD3D8Caps->MaxVolumeExtent; \
75     _pWineCaps->MaxTextureRepeat                  = &_pD3D8Caps->MaxTextureRepeat; \
76     _pWineCaps->MaxTextureAspectRatio             = &_pD3D8Caps->MaxTextureAspectRatio; \
77     _pWineCaps->MaxAnisotropy                     = &_pD3D8Caps->MaxAnisotropy; \
78     _pWineCaps->MaxVertexW                        = &_pD3D8Caps->MaxVertexW; \
79     _pWineCaps->GuardBandLeft                     = &_pD3D8Caps->GuardBandLeft; \
80     _pWineCaps->GuardBandTop                      = &_pD3D8Caps->GuardBandTop; \
81     _pWineCaps->GuardBandRight                    = &_pD3D8Caps->GuardBandRight; \
82     _pWineCaps->GuardBandBottom                   = &_pD3D8Caps->GuardBandBottom; \
83     _pWineCaps->ExtentsAdjust                     = &_pD3D8Caps->ExtentsAdjust; \
84     _pWineCaps->StencilCaps                       = &_pD3D8Caps->StencilCaps; \
85     _pWineCaps->FVFCaps                           = &_pD3D8Caps->FVFCaps; \
86     _pWineCaps->TextureOpCaps                     = &_pD3D8Caps->TextureOpCaps; \
87     _pWineCaps->MaxTextureBlendStages             = &_pD3D8Caps->MaxTextureBlendStages; \
88     _pWineCaps->MaxSimultaneousTextures           = &_pD3D8Caps->MaxSimultaneousTextures; \
89     _pWineCaps->VertexProcessingCaps              = &_pD3D8Caps->VertexProcessingCaps; \
90     _pWineCaps->MaxActiveLights                   = &_pD3D8Caps->MaxActiveLights; \
91     _pWineCaps->MaxUserClipPlanes                 = &_pD3D8Caps->MaxUserClipPlanes; \
92     _pWineCaps->MaxVertexBlendMatrices            = &_pD3D8Caps->MaxVertexBlendMatrices; \
93     _pWineCaps->MaxVertexBlendMatrixIndex         = &_pD3D8Caps->MaxVertexBlendMatrixIndex; \
94     _pWineCaps->MaxPointSize                      = &_pD3D8Caps->MaxPointSize; \
95     _pWineCaps->MaxPrimitiveCount                 = &_pD3D8Caps->MaxPrimitiveCount; \
96     _pWineCaps->MaxVertexIndex                    = &_pD3D8Caps->MaxVertexIndex; \
97     _pWineCaps->MaxStreams                        = &_pD3D8Caps->MaxStreams; \
98     _pWineCaps->MaxStreamStride                   = &_pD3D8Caps->MaxStreamStride; \
99     _pWineCaps->VertexShaderVersion               = &_pD3D8Caps->VertexShaderVersion; \
100     _pWineCaps->MaxVertexShaderConst              = &_pD3D8Caps->MaxVertexShaderConst; \
101     _pWineCaps->PixelShaderVersion                = &_pD3D8Caps->PixelShaderVersion; \
102     _pWineCaps->PixelShader1xMaxValue             = &_pD3D8Caps->MaxPixelShaderValue;
103
104 /* Direct3D8 Interfaces: */
105 typedef struct IDirect3DBaseTexture8Impl IDirect3DBaseTexture8Impl;
106 typedef struct IDirect3DVolumeTexture8Impl IDirect3DVolumeTexture8Impl;
107 typedef struct IDirect3D8Impl IDirect3D8Impl;
108 typedef struct IDirect3DDevice8Impl IDirect3DDevice8Impl;
109 typedef struct IDirect3DTexture8Impl IDirect3DTexture8Impl;
110 typedef struct IDirect3DCubeTexture8Impl IDirect3DCubeTexture8Impl;
111 typedef struct IDirect3DIndexBuffer8Impl IDirect3DIndexBuffer8Impl;
112 typedef struct IDirect3DSurface8Impl IDirect3DSurface8Impl;
113 typedef struct IDirect3DSwapChain8Impl IDirect3DSwapChain8Impl;
114 typedef struct IDirect3DResource8Impl IDirect3DResource8Impl;
115 typedef struct IDirect3DVolume8Impl IDirect3DVolume8Impl;
116 typedef struct IDirect3DVertexBuffer8Impl IDirect3DVertexBuffer8Impl;
117
118 /** Private Interfaces: */
119 typedef struct IDirect3DStateBlockImpl IDirect3DStateBlockImpl;
120 typedef struct IDirect3DVertexShaderImpl IDirect3DVertexShaderImpl;
121 typedef struct IDirect3DPixelShaderImpl IDirect3DPixelShaderImpl;
122 typedef struct IDirect3DVertexShaderDeclarationImpl IDirect3DVertexShaderDeclarationImpl;
123
124 /* Advance declaration of structures to satisfy compiler */
125 typedef struct IDirect3DVertexShader8Impl IDirect3DVertexShader8Impl;
126
127 /* ===========================================================================
128     The interfactes themselves
129    =========================================================================== */
130
131 /* ---------- */
132 /* IDirect3D8 */
133 /* ---------- */
134
135 /*****************************************************************************
136  * Predeclare the interface implementation structures
137  */
138 extern const IDirect3D8Vtbl Direct3D8_Vtbl;
139
140 /*****************************************************************************
141  * IDirect3D implementation structure
142  */
143 struct IDirect3D8Impl
144 {
145     /* IUnknown fields */
146     const IDirect3D8Vtbl   *lpVtbl;
147     LONG                    ref;
148
149     /* The WineD3D device */
150     IWineD3D               *WineD3D;
151 };
152
153 /* ---------------- */
154 /* IDirect3DDevice8 */
155 /* ---------------- */
156
157 /*****************************************************************************
158  * Predeclare the interface implementation structures
159  */
160 extern const IDirect3DDevice8Vtbl Direct3DDevice8_Vtbl;
161
162 /*****************************************************************************
163  * IDirect3DDevice8 implementation structure
164  */
165 struct IDirect3DDevice8Impl
166 {
167     /* IUnknown fields */
168     const IDirect3DDevice8Vtbl   *lpVtbl;
169     LONG                         ref;
170 /* But what about baseVertexIndex in state blocks? hmm... it may be a better idea to pass this to wined3d */
171     IWineD3DDevice               *WineD3DDevice;
172     IDirect3DVertexShader8Impl   *vShaders[MAX_SHADERS];
173 /* FIXME: Move *baseVertexIndex somewhere sensible like wined3d */
174     UINT                          baseVertexIndex;
175 };
176
177 /* ---------------- */
178 /* IDirect3DVolume8 */
179 /* ---------------- */
180
181 /*****************************************************************************
182  * IDirect3DVolume8 implementation structure
183  */
184 struct IDirect3DVolume8Impl
185 {
186     /* IUnknown fields */
187     const IDirect3DVolume8Vtbl *lpVtbl;
188     LONG                        ref;
189
190     /* IDirect3DVolume8 fields */
191     IWineD3DVolume             *wineD3DVolume;
192 };
193
194 /* ------------------- */
195 /* IDirect3DSwapChain8 */
196 /* ------------------- */
197
198 /*****************************************************************************
199  * Predeclare the interface implementation structures
200  */
201 extern const IDirect3DSwapChain8Vtbl Direct3DSwapChain8_Vtbl;
202
203 /*****************************************************************************
204  * IDirect3DSwapChain8 implementation structure
205  */
206 struct IDirect3DSwapChain8Impl
207 {
208     /* IUnknown fields */
209     const IDirect3DSwapChain8Vtbl *lpVtbl;
210     LONG                           ref;
211
212     /* IDirect3DSwapChain8 fields */
213     IWineD3DSwapChain             *wineD3DSwapChain;
214
215     /* Parent reference */
216     LPDIRECT3DDEVICE8              parentDevice;
217 };
218
219 /* ----------------- */
220 /* IDirect3DSurface8 */
221 /* ----------------- */
222
223 /*****************************************************************************
224  * Predeclare the interface implementation structures
225  */
226 extern const IDirect3DSurface8Vtbl Direct3DSurface8_Vtbl;
227
228 /*****************************************************************************
229  * IDirect3DSurface8 implementation structure
230  */
231 struct IDirect3DSurface8Impl
232 {
233     /* IUnknown fields */
234     const IDirect3DSurface8Vtbl *lpVtbl;
235     LONG                         ref;
236
237     /* IDirect3DSurface8 fields */
238     IWineD3DSurface             *wineD3DSurface;
239 };
240
241 /* ------------------ */
242 /* IDirect3DResource8 */
243 /* ------------------ */
244
245 /*****************************************************************************
246  * Predeclare the interface implementation structures
247  */
248 extern const IDirect3DResource8Vtbl Direct3DResource8_Vtbl;
249
250 /*****************************************************************************
251  * IDirect3DResource8 implementation structure
252  */
253 struct IDirect3DResource8Impl
254 {
255     /* IUnknown fields */
256     const IDirect3DResource8Vtbl *lpVtbl;
257     LONG                          ref;
258
259     /* IDirect3DResource8 fields */
260     IWineD3DResource             *wineD3DResource;
261 };
262 extern HRESULT WINAPI IDirect3DResource8Impl_GetDevice(LPDIRECT3DRESOURCE8 iface, IDirect3DDevice8** ppDevice);
263
264 /* ---------------------- */
265 /* IDirect3DVertexBuffer8 */
266 /* ---------------------- */
267
268 /*****************************************************************************
269  * Predeclare the interface implementation structures
270  */
271 extern const IDirect3DVertexBuffer8Vtbl Direct3DVertexBuffer8_Vtbl;
272
273 /*****************************************************************************
274  * IDirect3DVertexBuffer8 implementation structure
275  */
276 struct IDirect3DVertexBuffer8Impl
277 {
278     /* IUnknown fields */
279     const IDirect3DVertexBuffer8Vtbl *lpVtbl;
280     LONG                              ref;
281
282     /* IDirect3DResource8 fields */
283     IWineD3DVertexBuffer             *wineD3DVertexBuffer;
284
285     /* Parent reference */
286     LPDIRECT3DDEVICE8                 parentDevice;
287 };
288
289 /* --------------------- */
290 /* IDirect3DIndexBuffer8 */
291 /* --------------------- */
292
293 /*****************************************************************************
294  * Predeclare the interface implementation structures
295  */
296 extern const IDirect3DIndexBuffer8Vtbl Direct3DIndexBuffer8_Vtbl;
297
298 /*****************************************************************************
299  * IDirect3DIndexBuffer8 implementation structure
300  */
301 struct IDirect3DIndexBuffer8Impl
302 {
303     /* IUnknown fields */
304     const IDirect3DIndexBuffer8Vtbl *lpVtbl;
305     LONG                             ref;
306
307     /* IDirect3DResource8 fields */
308     IWineD3DIndexBuffer             *wineD3DIndexBuffer;
309
310     /* Parent reference */
311     LPDIRECT3DDEVICE8                parentDevice;
312 };
313
314 /* --------------------- */
315 /* IDirect3DBaseTexture8 */
316 /* --------------------- */
317
318 /*****************************************************************************
319  * IDirect3DBaseTexture8 implementation structure
320  */
321 struct IDirect3DBaseTexture8Impl
322 {
323     /* IUnknown fields */
324     const IDirect3DBaseTexture8Vtbl *lpVtbl;
325     LONG                   ref;
326
327     /* IDirect3DResource8 fields */
328     IWineD3DBaseTexture             *wineD3DBaseTexture;
329 };
330
331 /* --------------------- */
332 /* IDirect3DCubeTexture8 */
333 /* --------------------- */
334
335 /*****************************************************************************
336  * Predeclare the interface implementation structures
337  */
338 extern const IDirect3DCubeTexture8Vtbl Direct3DCubeTexture8_Vtbl;
339
340 /*****************************************************************************
341  * IDirect3DCubeTexture8 implementation structure
342  */
343 struct IDirect3DCubeTexture8Impl
344 {
345     /* IUnknown fields */
346     const IDirect3DCubeTexture8Vtbl *lpVtbl;
347     LONG                   ref;
348
349     /* IDirect3DResource8 fields */
350     IWineD3DCubeTexture             *wineD3DCubeTexture;
351
352     /* Parent reference */
353     LPDIRECT3DDEVICE8                parentDevice;
354 };
355
356 /* ----------------- */
357 /* IDirect3DTexture8 */
358 /* ----------------- */
359
360 /*****************************************************************************
361  * Predeclare the interface implementation structures
362  */
363 extern const IDirect3DTexture8Vtbl Direct3DTexture8_Vtbl;
364
365 /*****************************************************************************
366  * IDirect3DTexture8 implementation structure
367  */
368 struct IDirect3DTexture8Impl
369 {
370     /* IUnknown fields */
371     const IDirect3DTexture8Vtbl *lpVtbl;
372     LONG                   ref;
373
374     /* IDirect3DResourc8 fields */
375     IWineD3DTexture             *wineD3DTexture;
376
377     /* Parent reference */
378     LPDIRECT3DDEVICE8            parentDevice;
379 };
380
381 /* ----------------------- */
382 /* IDirect3DVolumeTexture8 */
383 /* ----------------------- */
384
385 /*****************************************************************************
386  * Predeclare the interface implementation structures
387  */
388 extern const IDirect3DVolumeTexture8Vtbl Direct3DVolumeTexture8_Vtbl;
389
390 /*****************************************************************************
391  * IDirect3DVolumeTexture8 implementation structure
392  */
393 struct IDirect3DVolumeTexture8Impl
394 {
395     /* IUnknown fields */
396     const IDirect3DVolumeTexture8Vtbl *lpVtbl;
397     LONG                   ref;
398
399     /* IDirect3DResource8 fields */
400     IWineD3DVolumeTexture             *wineD3DVolumeTexture;
401
402     /* Parent reference */
403     LPDIRECT3DDEVICE8                  parentDevice;
404 };
405
406 /* ----------------------- */
407 /* IDirect3DStateBlockImpl */
408 /* ----------------------- */
409
410 /* TODO: Generate a valid GUIDs */
411 /* {83B073CE-6F30-11d9-C687-00046142C14F} */
412 DEFINE_GUID(IID_IDirect3DStateBlock8, 
413 0x83b073ce, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
414
415 DEFINE_GUID(IID_IDirect3DVertexShader8,
416 0xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36);
417
418 DEFINE_GUID(IID_IDirect3DPixelShader8,
419 0x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89);
420
421
422 /*****************************************************************************
423  * IDirect3DStateBlock8 interface
424  */
425 #define INTERFACE IDirect3DStateBlock8
426 DECLARE_INTERFACE_(IDirect3DStateBlock8, IUnknown)
427 {
428     /*** IUnknown methods ***/
429     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
430     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
431     STDMETHOD_(ULONG,Release)(THIS) PURE;
432     /*** IDirect3DStateBlock9 methods ***/
433     STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8** ppDevice) PURE;
434     STDMETHOD(Capture)(THIS) PURE;
435     STDMETHOD(Apply)(THIS) PURE;
436 };
437 #undef INTERFACE
438
439 /*** IUnknown methods ***/
440 #define IDirect3DStateBlock8_QueryInterface(p,a,b)  (p)->lpVtbl->QueryInterface(p,a,b)
441 #define IDirect3DStateBlock8_AddRef(p)              (p)->lpVtbl->AddRef(p)
442 #define IDirect3DStateBlock8_Release(p)             (p)->lpVtbl->Release(p)
443 /*** IDirect3DStateBlock9 methods ***/
444 #define IDirect3DStateBlock8_GetDevice(p,a)         (p)->lpVtbl->GetDevice(p,a)
445 #define IDirect3DStateBlock8_Capture(p)             (p)->lpVtbl->Capture(p)
446 #define IDirect3DStateBlock8_Apply(p)               (p)->lpVtbl->Apply(p)
447
448 /*****************************************************************************
449  * Predeclare the interface implementation structures
450  */
451 extern const IDirect3DStateBlock8Vtbl Direct3DStateBlock8_Vtbl;
452
453 /*****************************************************************************
454  * IDirect3DStateBlock implementation structure
455  */
456 typedef struct  IDirect3DStateBlock8Impl {
457     /* IUnknown fields */
458     const IDirect3DStateBlock8Vtbl *lpVtbl;
459     LONG                   ref;
460
461     /* IDirect3DResource8 fields */
462     IWineD3DStateBlock             *wineD3DStateBlock;
463 } IDirect3DStateBlock8Impl;
464
465 /*****************************************************************************
466  * IDirect3DVertexShader9 interface
467  */
468 #define INTERFACE IDirect3DVertexShader8
469 DECLARE_INTERFACE_(IDirect3DVertexShader8, IUnknown)
470 {
471     /*** IUnknown methods ***/
472     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
473     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
474     STDMETHOD_(ULONG,Release)(THIS) PURE;
475     /*** IDirect3DVertexShader9 methods ***/
476     STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8** ppDevice) PURE;
477     STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE;
478 };
479 #undef INTERFACE
480
481 /*** IUnknown methods ***/
482 #define IDirect3DVertexShader8_QueryInterface(p,a,b)  (p)->lpVtbl->QueryInterface(p,a,b)
483 #define IDirect3DVertexShader8_AddRef(p)              (p)->lpVtbl->AddRef(p)
484 #define IDirect3DVertexShader8_Release(p)             (p)->lpVtbl->Release(p)
485 /*** IDirect3DVertexShader8 methods ***/
486 #define IDirect3DVertexShader8_GetDevice(p,a)         (p)->lpVtbl->GetDevice(p,a)
487 #define IDirect3DVertexShader8_GetFunction(p,a,b)     (p)->lpVtbl->GetFunction(p,a,b)
488
489 /* ------------------------- */
490 /* IDirect3DVertexShader8Impl */
491 /* ------------------------- */
492
493 /*****************************************************************************
494  * IDirect3DPixelShader9 interface
495  */
496 #define INTERFACE IDirect3DPixelShader8
497 DECLARE_INTERFACE_(IDirect3DPixelShader8,IUnknown)
498 {
499     /*** IUnknown methods ***/
500     STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
501     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
502     STDMETHOD_(ULONG,Release)(THIS) PURE;
503     /*** IDirect3DPixelShader8 methods ***/
504     STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8** ppDevice) PURE;
505     STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE;
506 };
507 #undef INTERFACE
508
509 /*** IUnknown methods ***/
510 #define IDirect3DPixelShader8_QueryInterface(p,a,b)  (p)->lpVtbl->QueryInterface(p,a,b)
511 #define IDirect3DPixelShader8_AddRef(p)              (p)->lpVtbl->AddRef(p)
512 #define IDirect3DPixelShader8_Release(p)             (p)->lpVtbl->Release(p)
513 /*** IDirect3DPixelShader8 methods ***/
514 #define IDirect3DPixelShader8_GetDevice(p,a)         (p)->lpVtbl->GetDevice(p,a)
515 #define IDirect3DPixelShader8_GetFunction(p,a,b)     (p)->lpVtbl->GetFunction(p,a,b)
516
517
518 /*****************************************************************************
519  * Predeclare the interface implementation structures
520  */
521 extern const IDirect3DVertexShader8Vtbl Direct3DVertexShader8_Vtbl;
522
523 /*****************************************************************************
524  * IDirect3DVertexShader implementation structure
525  */
526
527 struct IDirect3DVertexShader8Impl {
528   const IDirect3DVertexShader8Vtbl *lpVtbl;
529   LONG ref;
530
531   IWineD3DVertexShader             *wineD3DVertexShader;
532 };
533
534
535 /* ------------------------ */
536 /* IDirect3DPixelShaderImpl */
537 /* ------------------------ */
538
539
540 /*****************************************************************************
541  * Predeclare the interface implementation structures
542  */
543 extern const IDirect3DPixelShader8Vtbl Direct3DPixelShader8_Vtbl;
544
545 /*****************************************************************************
546  * IDirect3DPixelShader implementation structure
547  */
548 typedef struct IDirect3DPixelShader8Impl {
549     const IDirect3DPixelShader8Vtbl *lpVtbl;
550     LONG                             ref;
551
552     /* The device, to be replaced by an IDirect3DDeviceImpl */
553     IWineD3DPixelShader             *wineD3DPixelShader;
554 } IDirect3DPixelShader8Impl;
555
556 /**
557  * Internals functions
558  *
559  * to see how not defined it here
560  */ 
561  
562 /* Callbacks */
563 extern HRESULT WINAPI D3D8CB_CreateSurface(IUnknown *device, UINT Width, UINT Height, 
564                                          WINED3DFORMAT Format, DWORD Usage, WINED3DPOOL Pool, UINT Level,
565                                          IWineD3DSurface** ppSurface, HANDLE* pSharedHandle);
566
567 extern HRESULT WINAPI D3D8CB_CreateVolume(IUnknown  *pDevice, UINT Width, UINT Height, UINT Depth, 
568                                           WINED3DFORMAT  Format, WINED3DPOOL Pool, DWORD Usage,
569                                           IWineD3DVolume **ppVolume, 
570                                           HANDLE   * pSharedHandle);
571
572 extern HRESULT WINAPI D3D8CB_CreateDepthStencilSurface(IUnknown *device, UINT Width, UINT Height,
573                                          WINED3DFORMAT Format, WINED3DMULTISAMPLE_TYPE MultiSample,
574                                          DWORD MultisampleQuality, BOOL Discard,
575                                          IWineD3DSurface** ppSurface, HANDLE* pSharedHandle);
576
577 extern HRESULT WINAPI D3D8CB_CreateRenderTarget(IUnknown *device, UINT Width, UINT Height,
578                                          WINED3DFORMAT Format, WINED3DMULTISAMPLE_TYPE MultiSample,
579                                          DWORD MultisampleQuality, BOOL Lockable, 
580                                          IWineD3DSurface** ppSurface, HANDLE* pSharedHandle);
581
582 #endif /* __WINE_D3DX8_PRIVATE_H */