Stefan Dösinger : wined3d: Add a method to change the front and back buffers.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Apr 17 05:55:05 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 076fa811af7b3b188de52fbf6a998db15ce0b3ed
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=076fa811af7b3b188de52fbf6a998db15ce0b3ed
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Sat Apr 15 22:40:14 2006 +0200
wined3d: Add a method to change the front and back buffers.
---
dlls/wined3d/device.c | 6 ++++++
include/wine/wined3d_interface.h | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index ba2cceb..d5561cc 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5963,6 +5963,11 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetR
return WINED3D_OK;
}
+HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *iface, IWineD3DSurface *Front, IWineD3DSurface *Back) {
+ FIXME("This call is a d3d7 merge stub. It will be implemented later\n");
+ return WINED3DERR_INVALIDCALL;
+}
+
HRESULT WINAPI IWineD3DDeviceImpl_GetDepthStencilSurface(IWineD3DDevice* iface, IWineD3DSurface **ppZStencilSurface) {
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
*ppZStencilSurface = This->depthStencilBuffer;
@@ -6875,6 +6880,7 @@ const IWineD3DDeviceVtbl IWineD3DDevice_
IWineD3DDeviceImpl_GetRenderState,
IWineD3DDeviceImpl_SetRenderTarget,
IWineD3DDeviceImpl_GetRenderTarget,
+ IWineD3DDeviceImpl_SetFrontBackBuffers,
IWineD3DDeviceImpl_SetSamplerState,
IWineD3DDeviceImpl_GetSamplerState,
IWineD3DDeviceImpl_SetScissorRect,
diff --git a/include/wine/wined3d_interface.h b/include/wine/wined3d_interface.h
index b7a79f2..5c2b4d8 100644
--- a/include/wine/wined3d_interface.h
+++ b/include/wine/wined3d_interface.h
@@ -425,6 +425,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD
STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD * pValue) PURE;
STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex, struct IWineD3DSurface* pRenderTarget) PURE;
STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex, struct IWineD3DSurface** ppRenderTarget) PURE;
+ STDMETHOD(SetFrontBackBuffers)(THIS_ struct IWineD3DSurface *Front, struct IWineD3DSurface *Back) PURE;
STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, WINED3DSAMPLERSTATETYPE Type, DWORD Value) PURE;
STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler, WINED3DSAMPLERSTATETYPE Type, DWORD* Value) PURE;
STDMETHOD(SetScissorRect)(THIS_ CONST RECT* pRect) PURE;
@@ -566,6 +567,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD
#define IWineD3DDevice_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
#define IWineD3DDevice_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
#define IWineD3DDevice_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
+#define IWineD3DDevice_SetFrontBackBuffers(p, a, b) (p)->lpVtbl->SetFrontBackBuffers(p,a,b);
#define IWineD3DDevice_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
#define IWineD3DDevice_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
#define IWineD3DDevice_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
More information about the wine-cvs
mailing list