Added {ok,trace}_ macros to take explicit file and line number.
[wine/multimedia.git] / dlls / d3d8 / d3d8_main.c
blobcea38f1d5447308e18c9f91dccd9edd120dba2d0
1 /* Direct3D 8
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #include "windef.h"
20 #include "winbase.h"
21 #include "wingdi.h"
22 #include "winuser.h"
23 #include "wine/debug.h"
25 #include "d3d8_private.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(d3d);
29 void (*wine_tsx11_lock_ptr)(void) = NULL;
30 void (*wine_tsx11_unlock_ptr)(void) = NULL;
32 HRESULT WINAPI ValidatePixelShader(void)
34 FIXME("(void): stub\n");
35 return 0;
38 HRESULT WINAPI ValidateVertexShader(void)
40 FIXME("(void): stub\n");
41 return 0;
44 HRESULT WINAPI D3D8GetSWInfo(void)
46 FIXME("(void): stub\n");
47 return 0;
50 HRESULT WINAPI DebugSetMute(void)
52 FIXME("(void): stub\n");
53 return 0;
56 IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion)
59 IDirect3D8Impl *object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3D8Impl));
61 object->lpVtbl = &Direct3D8_Vtbl;
62 object->ref = 1;
64 TRACE("SDKVersion = %x, Created Direct3D object at %p\n", SDKVersion, object);
66 /* Dump out the gl supported features
67 TRACE("GL_Extensions reported: %s\n", glGetString(GL_EXTENSIONS)); */
69 return (IDirect3D8 *)object;
72 /* At process attach */
73 BOOL WINAPI D3D8_DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
75 TRACE("fdwReason=%ld\n", fdwReason);
76 if (fdwReason == DLL_PROCESS_ATTACH)
78 HMODULE mod = GetModuleHandleA( "x11drv.dll" );
79 if (mod)
81 wine_tsx11_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" );
82 wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" );
85 return TRUE;