widl: Fixed syntax of DECL_LINK macro to look more like C code.
[wine/hacks.git] / dlls / d3d8 / d3d8_main.c
blobb7627ab95bad7fa810c57a39701ad762852564af
1 /*
2 * Direct3D 8
4 * Copyright 2005 Oliver Stieber
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "config.h"
23 #include "initguid.h"
24 #include "d3d8_private.h"
25 #include "wine/debug.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(d3d8);
29 void (*wine_tsx11_lock_ptr)(void) = NULL;
30 void (*wine_tsx11_unlock_ptr)(void) = NULL;
33 HRESULT WINAPI D3D8GetSWInfo(void) {
34 FIXME("(void): stub\n");
35 return 0;
38 void WINAPI DebugSetMute(void) {
39 /* nothing to do */
42 IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion) {
43 IDirect3D8Impl* object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3D8Impl));
45 object->lpVtbl = &Direct3D8_Vtbl;
46 object->ref = 1;
47 object->WineD3D = WineDirect3DCreate(SDKVersion, 8, (IUnknown *)object);
49 TRACE("SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p\n", SDKVersion, object, object->WineD3D);
51 return (IDirect3D8*) object;
54 /* At process attach */
55 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) {
56 TRACE("fdwReason=%ld\n", fdwReason);
57 if (fdwReason == DLL_PROCESS_ATTACH) {
58 HMODULE mod;
60 DisableThreadLibraryCalls(hInstDLL);
62 mod = GetModuleHandleA( "winex11.drv" );
63 if (mod)
65 wine_tsx11_lock_ptr = (void*) GetProcAddress(mod, "wine_tsx11_lock");
66 wine_tsx11_unlock_ptr = (void*) GetProcAddress(mod, "wine_tsx11_unlock");
69 return TRUE;
72 /***********************************************************************
73 * ValidateVertexShader (D3D8.@)
75 * PARAMS
76 * toto result?
78 BOOL WINAPI ValidateVertexShader(LPVOID pFunction, int param1, int param2, LPVOID toto)
80 FIXME("(%p %d %d %p): stub\n", pFunction, param1, param2, toto);
81 return TRUE;
84 /***********************************************************************
85 * ValidatePixelShader (D3D8.@)
87 * PARAMS
88 * toto result?
90 BOOL WINAPI ValidatePixelShader(LPVOID pFunction, int param1, int param2, LPVOID toto)
92 FIXME("(%p %d %d %p): stub\n", pFunction, param1, param2, toto);
93 return TRUE;