Set the dll search path to the location specified in configure
[wine/multimedia.git] / dlls / d3d9 / d3d9_main.c
bloba99160a1e44d888ead0cb5a7faf03b7c0ba1ab8c
1 /*
2 * Direct3D 9
4 * Copyright 2002-2003 Jason Edmeades
5 * Raphael Junqueira
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #include "config.h"
25 #include <stdarg.h>
27 #define NONAMELESSUNION
28 #define NONAMELESSSTRUCT
29 #include "windef.h"
30 #include "winbase.h"
31 #include "wingdi.h"
32 #include "winuser.h"
33 #include "wine/debug.h"
35 #include "d3d9.h"
36 #include "d3d9_private.h"
38 WINE_DEFAULT_DEBUG_CHANNEL(d3d);
41 void (*wine_tsx11_lock_ptr)(void) = NULL;
42 void (*wine_tsx11_unlock_ptr)(void) = NULL;
45 HRESULT WINAPI D3D9GetSWInfo(void) {
46 FIXME("(void): stub\n");
47 return 0;
50 void WINAPI DebugSetMute(void) {
51 /* nothing to do */
54 IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion) {
55 IDirect3D9Impl* object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3D9Impl));
57 object->lpVtbl = &Direct3D9_Vtbl;
58 object->ref = 1;
60 TRACE("SDKVersion = %x, Created Direct3D object at %p\n", SDKVersion, object);
62 return (IDirect3D9*) object;
65 /* At process attach */
66 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) {
67 TRACE("fdwReason=%ld\n", fdwReason);
68 if (fdwReason == DLL_PROCESS_ATTACH) {
69 HMODULE mod;
71 DisableThreadLibraryCalls(hInstDLL);
73 mod = GetModuleHandleA( "x11drv.dll" );
74 if (mod)
76 wine_tsx11_lock_ptr = (void*) GetProcAddress(mod, "wine_tsx11_lock");
77 wine_tsx11_unlock_ptr = (void*) GetProcAddress(mod, "wine_tsx11_unlock");
80 return TRUE;
83 /***********************************************************************
84 * ValidateVertexShader (D3D9.@)
86 BOOL WINAPI ValidateVertexShader(LPVOID what, LPVOID toto) {
87 FIXME("(void): stub: %p %p\n", what, toto);
88 return TRUE;
91 /***********************************************************************
92 * ValidatePixelShader (D3D9.@)
94 BOOL WINAPI ValidatePixelShader(LPVOID what, LPVOID toto) {
95 FIXME("(void): stub: %p %p\n", what, toto);
96 return TRUE;