swapchain.c revision 058c0c53c37f5cb271aeb3c385c10766f84f4aef
/*
* IDirect3DSwapChain9 implementation
*
* Copyright 2002-2003 Jason Edmeades
* Raphael Junqueira
* Copyright 2005 Oliver Stieber
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "d3d9_private.h"
{
}
static HRESULT WINAPI d3d9_swapchain_QueryInterface(IDirect3DSwapChain9 *iface, REFIID riid, void **out)
{
{
return S_OK;
}
return E_NOINTERFACE;
}
{
if (refcount == 1)
{
if (swapchain->parent_device)
}
return refcount;
}
{
if (!refcount)
{
/* Release the device last, as it may cause the device to be destroyed. */
if (parent_device)
}
return refcount;
}
{
TRACE("iface %p, src_rect %s, dst_rect %s, dst_window_override %p, dirty_region %p, flags %#x.\n",
return hr;
}
static HRESULT WINAPI d3d9_swapchain_GetFrontBufferData(IDirect3DSwapChain9 *iface, IDirect3DSurface9 *surface)
{
return hr;
}
{
struct d3d9_surface *surface_impl;
TRACE("iface %p, backbuffer_idx %u, backbuffer_type %#x, backbuffer %p.\n",
{
}
else
{
}
return hr;
}
static HRESULT WINAPI d3d9_swapchain_GetRasterStatus(IDirect3DSwapChain9 *iface, D3DRASTER_STATUS *raster_status)
{
(struct wined3d_raster_status *)raster_status);
return hr;
}
static HRESULT WINAPI d3d9_swapchain_GetDisplayMode(IDirect3DSwapChain9 *iface, D3DDISPLAYMODE *mode)
{
struct wined3d_display_mode wined3d_mode;
{
}
return hr;
}
static HRESULT WINAPI d3d9_swapchain_GetDevice(IDirect3DSwapChain9 *iface, IDirect3DDevice9 **device)
{
return D3D_OK;
}
{
struct wined3d_swapchain_desc desc;
return D3D_OK;
}
static const struct IDirect3DSwapChain9Vtbl d3d9_swapchain_vtbl =
{
};
{
}
static const struct wined3d_parent_ops d3d9_swapchain_wined3d_parent_ops =
{
};
struct wined3d_swapchain_desc *desc)
{
{
return hr;
}
return D3D_OK;
}
struct d3d9_swapchain **swapchain)
{
struct d3d9_swapchain *object;
return E_OUTOFMEMORY;
{
return hr;
}
return D3D_OK;
}
#ifdef VBOX_WITH_WDDM
{
return hr;
}
#endif