d3d9_main.c revision 7be8d76da2c10d927dc85d0076a40cda027f15e6
/* $Id$ */
/** @file
* VBox D3D8 dll switcher
*/
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#include "d3d9.h"
#include "switcher.h"
typedef void (WINAPI *DebugSetMuteProc)(void);
typedef void* (WINAPI *Direct3DShaderValidatorCreate9Proc)(void);
typedef int (WINAPI *D3DPERF_EndEventProc)(void);
typedef struct _D3D9ExTag
{
int initialized;
const char *vboxName;
const char *msName;
} D3D9Export;
{
}
void WINAPI DebugSetMute(void)
{
}
{
}
{
}
void* WINAPI Direct3DShaderValidatorCreate9(void)
{
return g_swd3d9.pDirect3DShaderValidatorCreate9();
}
{
}
int WINAPI D3DPERF_EndEvent(void)
{
return g_swd3d9.pD3DPERF_EndEvent();
}
{
return g_swd3d9.pD3DPERF_GetStatus();
}
{
}
{
return g_swd3d9.pD3DPERF_QueryRepeatFrame();
}
{
}
{
}