1 /* Copyright 2000 TransGaming Technologies, Inc. */
2 #ifndef WINE_DDRAW_DDRAW_DGA2_H_INCLUDED
3 #define WINE_DDRAW_DDRAW_DGA2_H_INCLUDED
5 #include <X11/extensions/xf86dga.h>
7 #define XF86DGA2_DDRAW_PRIV(ddraw) \
8 ((XF86DGA2_DirectDrawImpl*)((ddraw)->private))
9 #define XF86DGA2_DDRAW_PRIV_VAR(name,ddraw) \
10 XF86DGA2_DirectDrawImpl* name = XF86DGA2_DDRAW_PRIV(ddraw)
14 XDGADevice* current_mode;
16 } XF86DGA2_DirectDrawImpl_Part;
20 User_DirectDrawImpl_Part user;
21 XF86DGA2_DirectDrawImpl_Part xf86dga2;
22 } XF86DGA2_DirectDrawImpl;
24 void XF86DGA2_DirectDraw_final_release(IDirectDrawImpl* This);
25 HRESULT XF86DGA2_DirectDraw_create_primary(IDirectDrawImpl* This,
26 const DDSURFACEDESC2* pDDSD,
27 LPDIRECTDRAWSURFACE7* ppSurf,
29 HRESULT XF86DGA2_DirectDraw_create_backbuffer(IDirectDrawImpl* This,
30 const DDSURFACEDESC2* pDDSD,
31 LPDIRECTDRAWSURFACE7* ppSurf,
33 IDirectDrawSurfaceImpl* primary);
34 HRESULT XF86DGA2_DirectDraw_Construct(IDirectDrawImpl *This, BOOL ex);
35 HRESULT XF86DGA2_DirectDraw_Create(const GUID* pGUID, LPDIRECTDRAW7* pIface,
36 IUnknown* pUnkOuter, BOOL ex);
38 XF86DGA2_DirectDraw_GetDeviceIdentifier(LPDIRECTDRAW7 iface,
39 LPDDDEVICEIDENTIFIER2 pDDDI,
42 XF86DGA2_DirectDraw_SetDisplayMode(LPDIRECTDRAW7 iface, DWORD dwWidth,
43 DWORD dwHeight, DWORD dwBPP,
44 DWORD dwRefreshRate, DWORD dwFlags);
46 XF86DGA2_DirectDraw_RestoreDisplayMode(LPDIRECTDRAW7 iface);