OSDN Git Service

Add an attach debugger dialog.
[android-x86/external-swiftshader.git] / src / D3D9 / Direct3D9Ex.hpp
1 // SwiftShader Software Renderer
2 //
3 // Copyright(c) 2005-2011 TransGaming Inc.
4 //
5 // All rights reserved. No part of this software may be copied, distributed, transmitted,
6 // transcribed, stored in a retrieval system, translated into any human or computer
7 // language by any means, or disclosed to third parties without the explicit written
8 // agreement of TransGaming Inc. Without such an agreement, no rights or licenses, express
9 // or implied, including but not limited to any patent rights, are granted to you.
10 //
11
12 #ifndef D3D9_Direct3D9Ex_hpp
13 #define D3D9_Direct3D9Ex_hpp
14
15 #include "Direct3D9.hpp"
16
17 //#include <stdio.h>
18 #include <d3d9.h>
19
20 namespace D3D9
21 {
22         class Direct3DDevice9;
23
24         class Direct3D9Ex : public IDirect3D9Ex, public Direct3D9
25         {
26         public:
27                 Direct3D9Ex(int version, const HINSTANCE instance);
28
29                 virtual ~Direct3D9Ex();
30
31                 // IUnknown methods
32                 long __stdcall QueryInterface(const IID &iid, void **object);
33                 unsigned long __stdcall AddRef();
34                 unsigned long __stdcall Release();
35
36                 // IDirect3D9 methods
37                 long __stdcall RegisterSoftwareDevice(void *initializeFunction);
38                 unsigned int __stdcall GetAdapterCount();
39                 long __stdcall GetAdapterIdentifier(unsigned int adapter, unsigned long flags, D3DADAPTER_IDENTIFIER9 *identifier);
40                 unsigned int __stdcall GetAdapterModeCount(unsigned int adapter, D3DFORMAT format);
41                 long __stdcall EnumAdapterModes(unsigned int adapter, D3DFORMAT format, unsigned int index, D3DDISPLAYMODE *mode);
42                 long __stdcall GetAdapterDisplayMode(unsigned int adapter, D3DDISPLAYMODE *mode);
43                 long __stdcall CheckDeviceType(unsigned int adapter, D3DDEVTYPE checkType, D3DFORMAT displayFormat, D3DFORMAT backBufferFormat, int windowed);
44                 long __stdcall CheckDeviceFormat(unsigned int adapter, D3DDEVTYPE deviceType, D3DFORMAT adapterFormat, unsigned long usage, D3DRESOURCETYPE type, D3DFORMAT checkFormat);
45                 long __stdcall CheckDeviceMultiSampleType(unsigned int adapter, D3DDEVTYPE deviceType, D3DFORMAT surfaceFormat, int windowed, D3DMULTISAMPLE_TYPE multiSampleType, unsigned long *qualityLevels);
46                 long __stdcall CheckDepthStencilMatch(unsigned int adapter, D3DDEVTYPE deviceType, D3DFORMAT adapterFormat, D3DFORMAT renderTargetFormat, D3DFORMAT depthStencilFormat);
47                 long __stdcall CheckDeviceFormatConversion(unsigned int adapter, D3DDEVTYPE deviceType, D3DFORMAT sourceFormat, D3DFORMAT targetFormat);
48                 long __stdcall GetDeviceCaps(unsigned int adapter, D3DDEVTYPE deviceType, D3DCAPS9 *caps);
49                 HMONITOR __stdcall GetAdapterMonitor(unsigned int adapter);
50                 long __stdcall CreateDevice(unsigned int adapter, D3DDEVTYPE deviceType, HWND focusWindow, unsigned long behaviorFlags, D3DPRESENT_PARAMETERS *presentParameters, IDirect3DDevice9 **returnedDeviceInterface);
51
52                 // IDirect3D9Ex methods
53                 unsigned int __stdcall GetAdapterModeCountEx(unsigned int adapter, const D3DDISPLAYMODEFILTER *filter);
54                 long __stdcall EnumAdapterModesEx(unsigned int adapter, const D3DDISPLAYMODEFILTER *filter, unsigned int index, D3DDISPLAYMODEEX *mode);
55                 long __stdcall GetAdapterDisplayModeEx(unsigned int adapter, D3DDISPLAYMODEEX *mode, D3DDISPLAYROTATION *rotation);
56                 long __stdcall CreateDeviceEx(unsigned int adapter, D3DDEVTYPE deviceType, HWND focusWindow, DWORD behaviorFlags, D3DPRESENT_PARAMETERS *presentParameters, D3DDISPLAYMODEEX *fullscreenDisplayMode, IDirect3DDevice9Ex **returnedDeviceInterface);
57                 long __stdcall GetAdapterLUID(unsigned int adapter, LUID *luid);
58
59         private:
60                 void loadSystemD3D9ex();
61
62                 // Real IDirect3D9Ex object
63                 IDirect3D9Ex *d3d9ex;
64         };
65 }
66
67 #endif   // D3D9_Direct3D9Ex_hpp