af062818b47340eef15700d2f0211576ba3506eevboxsync * Direct3D 9
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2002-2003 Jason Edmeades
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2002-2003 Raphael Junqueira
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2005 Oliver Stieber
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * a choice of LGPL license versions is made available with the language indicating
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * of the LGPL is applied is otherwise unspecified.
af062818b47340eef15700d2f0211576ba3506eevboxsync /* nothing to do */
5112e32d7072e280613921c982a6672f2c859cf3vboxsyncIDirect3D9* WINAPI DECLSPEC_HOTPATCH Direct3DCreate9(UINT SDKVersion) {
af062818b47340eef15700d2f0211576ba3506eevboxsync IDirect3D9Impl* object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3D9Impl));
af062818b47340eef15700d2f0211576ba3506eevboxsync object->WineD3D = WineDirect3DCreate(9, (IUnknown *)object);
af062818b47340eef15700d2f0211576ba3506eevboxsync TRACE("SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p\n", SDKVersion, object, object->WineD3D);
5112e32d7072e280613921c982a6672f2c859cf3vboxsyncHRESULT WINAPI DECLSPEC_HOTPATCH Direct3DCreate9Ex(UINT SDKVersion, IDirect3D9Ex **direct3d9ex) {
8f8ffe206a365b40271386ea73fadea66b51729dvboxsync /* real D3D lib does not allow 9Ex creation if no WDDM driver is installed,
8f8ffe206a365b40271386ea73fadea66b51729dvboxsync * the Direct3DCreate9Ex should return D3DERR_NOTAVAILABLE in that case.
8f8ffe206a365b40271386ea73fadea66b51729dvboxsync * do it that way for our XPWM case */
af062818b47340eef15700d2f0211576ba3506eevboxsync object->extended = TRUE; /* Enables QI for extended interfaces */
af062818b47340eef15700d2f0211576ba3506eevboxsync/*******************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * Direct3DShaderValidatorCreate9 (D3D9.@)
af062818b47340eef15700d2f0211576ba3506eevboxsync * No documentation available for this function.
af062818b47340eef15700d2f0211576ba3506eevboxsync * SDK only says it is internal and shouldn't be used.
af062818b47340eef15700d2f0211576ba3506eevboxsync/*******************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
af062818b47340eef15700d2f0211576ba3506eevboxsync /* At process attach */
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * D3DPERF_BeginEvent (D3D9.@)
af062818b47340eef15700d2f0211576ba3506eevboxsyncint WINAPI D3DPERF_BeginEvent(D3DCOLOR color, LPCWSTR name) {
5112e32d7072e280613921c982a6672f2c859cf3vboxsync TRACE("(color %#x, name %s) : stub\n", color, debugstr_w(name));
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * D3DPERF_EndEvent (D3D9.@)
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * D3DPERF_GetStatus (D3D9.@)
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * D3DPERF_SetOptions (D3D9.@)
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * D3DPERF_QueryRepeatFrame (D3D9.@)
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * D3DPERF_SetMarker (D3D9.@)
af062818b47340eef15700d2f0211576ba3506eevboxsyncvoid WINAPI D3DPERF_SetMarker(D3DCOLOR color, LPCWSTR name) {
af062818b47340eef15700d2f0211576ba3506eevboxsync FIXME("(color %#x, name %s) : stub\n", color, debugstr_w(name));
af062818b47340eef15700d2f0211576ba3506eevboxsync/***********************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * D3DPERF_SetRegion (D3D9.@)
af062818b47340eef15700d2f0211576ba3506eevboxsyncvoid WINAPI D3DPERF_SetRegion(D3DCOLOR color, LPCWSTR name) {
af062818b47340eef15700d2f0211576ba3506eevboxsync FIXME("(color %#x, name %s) : stub\n", color, debugstr_w(name));