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

Wine Cross Reference
wine/dlls/ddrawex/ddrawex_private.h

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /*
  2  * Copyright 2006 Ulrich Czekalla
  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_DLLS_DDRAWEX_DDRAWEX_PRIVATE_H
 20 #define __WINE_DLLS_DDRAWEX_DDRAWEX_PRIVATE_H
 21 
 22 DEFINE_GUID(CLSID_DirectDrawFactory, 0x4fd2a832, 0x86c8, 0x11d0, 0x8f, 0xca, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
 23 DEFINE_GUID(IID_IDirectDrawFactory, 0x4fd2a833, 0x86c8, 0x11d0, 0x8f, 0xca, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
 24 
 25 #define INTERFACE IDirectDrawFactory
 26 DECLARE_INTERFACE_(IDirectDrawFactory, IUnknown)
 27 {
 28     STDMETHOD_(HRESULT, QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
 29     STDMETHOD_(ULONG, AddRef)(THIS) PURE;
 30     STDMETHOD_(ULONG, Release)(THIS) PURE;
 31     STDMETHOD(CreateDirectDraw)(THIS_ GUID * pGUID, HWND hWnd, DWORD dwCoopLevelFlags,
 32         DWORD dwReserved, IUnknown *pUnkOuter, IDirectDraw **ppDirectDraw) PURE;
 33     STDMETHOD(_DirectDrawEnumerate)(THIS_ LPDDENUMCALLBACKW lpCallback, LPVOID lpContext) PURE;
 34 };
 35 #undef INTERFACE
 36 
 37 #if !defined(__cplusplus) || defined(CINTERFACE)
 38 /*** IUnknown methods ***/
 39 #define IDirectDrawFactory_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
 40 #define IDirectDrawFactory_AddRef(p)             (p)->lpVtbl->AddRef(p)
 41 #define IDirectDrawFactory_Release(p)            (p)->lpVtbl->Release(p)
 42 #define IDirectDrawFactory_CreateDirectDraw(p,a,b,c,d,e,f)  (p)->lpVtbl->CreateDirectDraw(p,a,b,c,d,e,f)
 43 #define IDirectDrawFactory_DirectDrawEnumerate(p,a,b)  (p)->lpVtbl->_DirectDrawEnumerate(p,a,b)
 44 #endif
 45 
 46 /******************************************************************************
 47  * DirectDraw ClassFactory implementation - incomplete
 48  ******************************************************************************/
 49 typedef struct
 50 {
 51     const IClassFactoryVtbl *lpVtbl;
 52     LONG ref;
 53     HRESULT (*pfnCreateInstance)(IUnknown *pUnkOuter, REFIID iid, LPVOID *ppObj);
 54 } IClassFactoryImpl;
 55 
 56 
 57 /******************************************************************************
 58  * DirectDrawFactory implementation
 59  ******************************************************************************/
 60 typedef struct
 61 {
 62     const IDirectDrawFactoryVtbl *lpVtbl;
 63     LONG ref;
 64 } IDirectDrawFactoryImpl;
 65 
 66 HRESULT WINAPI IDirectDrawFactoryImpl_CreateDirectDraw(IDirectDrawFactory* iface,
 67     GUID * pGUID, HWND hWnd, DWORD dwCoopLevelFlags, DWORD dwReserved, IUnknown *pUnkOuter,
 68     IDirectDraw **ppDirectDraw);
 69 
 70 void DDSD_to_DDSD2(const DDSURFACEDESC *in, DDSURFACEDESC2 *out);
 71 void DDSD2_to_DDSD(const DDSURFACEDESC2 *in, DDSURFACEDESC *out);
 72 
 73 /******************************************************************************
 74  * IDirectDraw wrapper implementation
 75  ******************************************************************************/
 76 typedef struct
 77 {
 78     const IDirectDrawVtbl *IDirectDraw_Vtbl;
 79     const IDirectDraw2Vtbl *IDirectDraw2_Vtbl;
 80     const IDirectDraw3Vtbl *IDirectDraw3_Vtbl;
 81     const IDirectDraw4Vtbl *IDirectDraw4_Vtbl;
 82     LONG ref;
 83 
 84     /* The interface we're forwarding to */
 85     IDirectDraw4 *parent;
 86 } IDirectDrawImpl;
 87 
 88 IDirectDraw4 *dd_get_outer(IDirectDraw4 *inner);
 89 IDirectDraw4 *dd_get_inner(IDirectDraw4 *outer);
 90 
 91 /******************************************************************************
 92  * IDirectDrawSurface implementation
 93  ******************************************************************************/
 94 typedef struct
 95 {
 96     const IDirectDrawSurface3Vtbl *IDirectDrawSurface3_Vtbl;
 97     const IDirectDrawSurface4Vtbl *IDirectDrawSurface4_Vtbl;
 98     LONG ref;
 99 
100     /* The interface we're forwarding to */
101     IDirectDrawSurface4 *parent;
102 
103     BOOL permanent_dc;
104     HDC hdc;
105 
106     /* An UUID we use to store the outer surface as private data in the inner surface */
107 #define IID_DDrawexPriv IID_IDirectDrawSurface4
108 
109 } IDirectDrawSurfaceImpl;
110 
111 IDirectDrawSurface4 *dds_get_outer(IDirectDrawSurface4 *inner);
112 IDirectDrawSurface4 *dds_get_inner(IDirectDrawSurface4 *outer);
113 HRESULT prepare_permanent_dc(IDirectDrawSurface4 *iface);
114 
115 #endif /* __WINE_DLLS_DDRAWEX_DDRAWEX_PRIVATE_H */
116 

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

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.