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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
26 #include "d3d9_private.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(d3d9
);
30 static int D3DPERF_event_level
= 0;
32 void (*wine_tsx11_lock_ptr
)(void) = NULL
;
33 void (*wine_tsx11_unlock_ptr
)(void) = NULL
;
36 HRESULT WINAPI
D3D9GetSWInfo(void) {
37 FIXME("(void): stub\n");
41 void WINAPI
DebugSetMute(void) {
45 IDirect3D9
* WINAPI
Direct3DCreate9(UINT SDKVersion
) {
46 IDirect3D9Impl
* object
= HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY
, sizeof(IDirect3D9Impl
));
48 object
->lpVtbl
= &Direct3D9_Vtbl
;
50 object
->WineD3D
= WineDirect3DCreate(SDKVersion
, 9, (IUnknown
*)object
);
52 TRACE("SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p\n", SDKVersion
, object
, object
->WineD3D
);
54 return (IDirect3D9
*) object
;
57 /* At process attach */
58 BOOL WINAPI
DllMain(HINSTANCE hInstDLL
, DWORD fdwReason
, LPVOID lpv
) {
59 TRACE("fdwReason=%ld\n", fdwReason
);
60 if (fdwReason
== DLL_PROCESS_ATTACH
) {
63 DisableThreadLibraryCalls(hInstDLL
);
65 mod
= GetModuleHandleA( "winex11.drv" );
68 wine_tsx11_lock_ptr
= (void*) GetProcAddress(mod
, "wine_tsx11_lock");
69 wine_tsx11_unlock_ptr
= (void*) GetProcAddress(mod
, "wine_tsx11_unlock");
75 /***********************************************************************
76 * D3DPERF_BeginEvent (D3D9.@)
78 int WINAPI
D3DPERF_BeginEvent(D3DCOLOR color
, LPCWSTR name
) {
79 FIXME("(color %#lx, name %s) : stub\n", color
, debugstr_w(name
));
81 return D3DPERF_event_level
++;
84 /***********************************************************************
85 * D3DPERF_EndEvent (D3D9.@)
87 int WINAPI
D3DPERF_EndEvent(void) {
88 FIXME("(void) : stub\n");
90 return --D3DPERF_event_level
;
93 /***********************************************************************
94 * D3DPERF_GetStatus (D3D9.@)
96 DWORD WINAPI
D3DPERF_GetStatus(void) {
97 FIXME("(void) : stub\n");
102 /***********************************************************************
103 * D3DPERF_SetOptions (D3D9.@)
106 void WINAPI
D3DPERF_SetOptions(DWORD options
)
108 FIXME("(%#lx) : stub\n", options
);
111 /***********************************************************************
112 * D3DPERF_QueryRepeatFrame (D3D9.@)
114 BOOL WINAPI
D3DPERF_QueryRepeatFrame(void) {
115 FIXME("(void) : stub\n");
120 /***********************************************************************
121 * D3DPERF_SetMarker (D3D9.@)
123 void WINAPI
D3DPERF_SetMarker(D3DCOLOR color
, LPCWSTR name
) {
124 FIXME("(color %#lx, name %s) : stub\n", color
, debugstr_w(name
));
127 /***********************************************************************
128 * D3DPERF_SetRegion (D3D9.@)
130 void WINAPI
D3DPERF_SetRegion(D3DCOLOR color
, LPCWSTR name
) {
131 FIXME("(color %#lx, name %s) : stub\n", color
, debugstr_w(name
));