4 * Copyright 2002-2003 Jason Edmeades
5 * Copyright 2002-2003 Raphael Junqueira
6 * Copyright 2005 Oliver Stieber
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "d3d9_private.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(d3d9
);
30 void (*wine_tsx11_lock_ptr
)(void) = NULL
;
31 void (*wine_tsx11_unlock_ptr
)(void) = NULL
;
34 HRESULT WINAPI
D3D9GetSWInfo(void) {
35 FIXME("(void): stub\n");
39 void WINAPI
DebugSetMute(void) {
43 IDirect3D9
* WINAPI
Direct3DCreate9(UINT SDKVersion
) {
44 IDirect3D9Impl
* object
= HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY
, sizeof(IDirect3D9Impl
));
46 object
->lpVtbl
= &Direct3D9_Vtbl
;
48 object
->WineD3D
= WineDirect3DCreate(SDKVersion
, 9, (IUnknown
*)object
);
50 TRACE("SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p\n", SDKVersion
, object
, object
->WineD3D
);
52 return (IDirect3D9
*) object
;
55 /* At process attach */
56 BOOL WINAPI
DllMain(HINSTANCE hInstDLL
, DWORD fdwReason
, LPVOID lpv
) {
57 TRACE("fdwReason=%ld\n", fdwReason
);
58 if (fdwReason
== DLL_PROCESS_ATTACH
) {
61 DisableThreadLibraryCalls(hInstDLL
);
63 mod
= GetModuleHandleA( "winex11.drv" );
66 wine_tsx11_lock_ptr
= (void*) GetProcAddress(mod
, "wine_tsx11_lock");
67 wine_tsx11_unlock_ptr
= (void*) GetProcAddress(mod
, "wine_tsx11_unlock");
73 /***********************************************************************
74 * ValidateVertexShader (D3D9.@)
79 BOOL WINAPI
ValidateVertexShader(LPVOID pFunction
, int param1
, int param2
, LPVOID toto
)
81 FIXME("(%p %d %d %p): stub\n", pFunction
, param1
, param2
, toto
);
85 /***********************************************************************
86 * ValidatePixelShader (D3D9.@)
91 BOOL WINAPI
ValidatePixelShader(LPVOID pFunction
, int param1
, int param2
, LPVOID toto
)
93 FIXME("(%p %d %d %p): stub\n", pFunction
, param1
, param2
, toto
);