-
Notifications
You must be signed in to change notification settings - Fork 46
/
proxyIDirect3D9.h
61 lines (52 loc) · 2.84 KB
/
proxyIDirect3D9.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
PROJECT: mod_sa
LICENSE: See LICENSE in the top level directory
COPYRIGHT: Copyright we_sux, BlastHack
mod_sa is available from https://github.com/BlastHackNet/mod_s0beit_sa/
mod_sa is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
mod_sa is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with mod_sa. If not, see <http://www.gnu.org/licenses/>.
*/
class proxyIDirect3D9 : public IDirect3D9
{
public:
proxyIDirect3D9 ( IDirect3D9 *pOriginal );
virtual ~proxyIDirect3D9 ( void );
HRESULT __stdcall QueryInterface ( REFIID riid, void **ppvObj );
ULONG __stdcall AddRef ( void );
ULONG __stdcall Release ( void );
HRESULT __stdcall RegisterSoftwareDevice ( void *pInitializeFunction );
UINT __stdcall GetAdapterCount ( void );
HRESULT __stdcall GetAdapterIdentifier ( UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER9 *pIdentifier );
UINT __stdcall GetAdapterModeCount ( UINT Adapter, D3DFORMAT Format );
HRESULT __stdcall EnumAdapterModes ( UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE *pMode );
HRESULT __stdcall GetAdapterDisplayMode ( UINT Adapter, D3DDISPLAYMODE *pMode );
HRESULT __stdcall CheckDeviceType ( UINT iAdapter, D3DDEVTYPE DevType, D3DFORMAT DisplayFormat,
D3DFORMAT BackBufferFormat, BOOL bWindowed );
HRESULT __stdcall CheckDeviceFormat ( UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage,
D3DRESOURCETYPE RType, D3DFORMAT CheckFormat );
HRESULT __stdcall CheckDeviceMultiSampleType ( UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat,
BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType,
DWORD *pQualityLevels );
HRESULT __stdcall CheckDepthStencilMatch ( UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat,
D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat );
HRESULT __stdcall CheckDeviceFormatConversion ( UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat,
D3DFORMAT TargetFormat );
HRESULT __stdcall GetDeviceCaps ( UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS9 *pCaps );
HMONITOR __stdcall GetAdapterMonitor ( UINT Adapter );
HRESULT __stdcall CreateDevice ( UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags,
D3DPRESENT_PARAMETERS *pPresentationParameters,
IDirect3DDevice9 **ppReturnedDeviceInterface );
private:
IDirect3D9 *origIDirect3D9;
};
// externals
extern proxyIDirect3D9 *pDirect3D9;
// externals