wined3d: Add a method to change the front and back buffers.
This commit is contained in:
parent
ffc8e46e76
commit
076fa811af
|
@ -5963,6 +5963,11 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetRenderTarget(IWineD3DDevice* iface,DWORD
|
|||
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_Vtbl =
|
|||
IWineD3DDeviceImpl_GetRenderState,
|
||||
IWineD3DDeviceImpl_SetRenderTarget,
|
||||
IWineD3DDeviceImpl_GetRenderTarget,
|
||||
IWineD3DDeviceImpl_SetFrontBackBuffers,
|
||||
IWineD3DDeviceImpl_SetSamplerState,
|
||||
IWineD3DDeviceImpl_GetSamplerState,
|
||||
IWineD3DDeviceImpl_SetScissorRect,
|
||||
|
|
|
@ -425,6 +425,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
|
|||
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,IWineD3DBase)
|
|||
#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)
|
||||
|
|
Loading…
Reference in New Issue