Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2002-2003 Jason Edmeades |
| 3 | * Raphael Junqueira |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #ifndef __WINE_D3D9_H |
| 21 | #define __WINE_D3D9_H |
| 22 | |
Raphael Junqueira | d9df646 | 2003-06-24 19:26:51 +0000 | [diff] [blame] | 23 | #ifndef DIRECT3D_VERSION |
| 24 | #define DIRECT3D_VERSION 0x0900 |
| 25 | #endif |
| 26 | |
Francois Gouget | 56f7209 | 2006-11-09 11:29:20 +0100 | [diff] [blame] | 27 | #include <stdlib.h> |
| 28 | |
Francois Gouget | 6688acc | 2006-11-07 00:45:16 +0100 | [diff] [blame] | 29 | #define COM_NO_WINDOWS_H |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 30 | #include <objbase.h> |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 31 | |
Francois Gouget | 56f7209 | 2006-11-09 11:29:20 +0100 | [diff] [blame] | 32 | #ifndef __WINESRC__ |
| 33 | # include <windows.h> |
| 34 | #endif |
| 35 | |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 36 | #include <d3d9types.h> |
| 37 | #include <d3d9caps.h> |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 38 | |
| 39 | /***************************************************************************** |
| 40 | * Behavior Flags for IDirect3D8::CreateDevice |
| 41 | */ |
| 42 | #define D3DCREATE_FPU_PRESERVE 0x00000002L |
| 43 | #define D3DCREATE_MULTITHREADED 0x00000004L |
| 44 | #define D3DCREATE_PUREDEVICE 0x00000010L |
| 45 | #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L |
| 46 | #define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L |
| 47 | #define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L |
| 48 | #define D3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100L |
| 49 | #define D3DCREATE_ADAPTERGROUP_DEVICE 0x00000200L |
| 50 | |
| 51 | /***************************************************************************** |
| 52 | * Flags for SetPrivateData |
| 53 | */ |
| 54 | #define D3DSPD_IUNKNOWN 0x00000001L |
| 55 | |
| 56 | |
| 57 | /***************************************************************************** |
| 58 | * #defines and error codes |
| 59 | */ |
H. Verbeet | 51862d4 | 2005-12-08 11:58:11 +0100 | [diff] [blame] | 60 | #define D3D_SDK_VERSION 32 |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 61 | #define D3DADAPTER_DEFAULT 0 |
| 62 | #define D3DENUM_NO_WHQL_LEVEL 0x00000002L |
| 63 | #define D3DPRESENT_BACK_BUFFERS_MAX 3L |
| 64 | #define D3DSGR_NO_CALIBRATION 0x00000000L |
| 65 | #define D3DSGR_CALIBRATE 0x00000001L |
| 66 | |
| 67 | #define _FACD3D 0x876 |
| 68 | #define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code ) |
| 69 | #define MAKE_D3DSTATUS( code ) MAKE_HRESULT( 0, _FACD3D, code ) |
| 70 | |
| 71 | /***************************************************************************** |
| 72 | * Direct3D Errors |
| 73 | */ |
| 74 | #define D3D_OK S_OK |
| 75 | #define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072) |
| 76 | #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073) |
| 77 | #define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074) |
| 78 | #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075) |
| 79 | #define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076) |
| 80 | #define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077) |
| 81 | #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078) |
| 82 | #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079) |
| 83 | #define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081) |
| 84 | #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082) |
| 85 | #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086) |
| 86 | #define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087) |
| 87 | #define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150) |
| 88 | #define D3DERR_MOREDATA MAKE_D3DHRESULT(2151) |
| 89 | #define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152) |
| 90 | #define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153) |
| 91 | #define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154) |
| 92 | #define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380) |
| 93 | #define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155) |
| 94 | #define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156) |
| 95 | #define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157) |
| 96 | #define D3DERR_WASSTILLDRAWING MAKE_D3DHRESULT(540) |
| 97 | #define D3DOK_NOAUTOGEN MAKE_D3DSTATUS(2159) |
| 98 | |
| 99 | |
| 100 | /***************************************************************************** |
| 101 | * Predeclare the interfaces |
| 102 | */ |
| 103 | DEFINE_GUID(IID_IDirect3D9, 0x81BDCBCA, 0x64D4, 0x426D, 0xAE, 0x8D, 0xAD, 0x1, 0x47, 0xF4, 0x27, 0x5C); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 104 | typedef struct IDirect3D9 *LPDIRECT3D9, *PDIRECT3D9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 105 | |
Stefan Dösinger | 90a654a | 2008-02-23 17:57:53 +0100 | [diff] [blame] | 106 | DEFINE_GUID(IID_IDirect3D9Ex, 0x02177241, 0x69FC, 0x400C, 0x8F, 0xF1, 0x93, 0xA4, 0x4D, 0xF6, 0x86, 0x1D); |
| 107 | typedef struct IDirect3D9Ex *LPDIRECT3D9EX, *PDIRECT3D9EX; |
| 108 | |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 109 | DEFINE_GUID(IID_IDirect3DDevice9, 0xd0223b96, 0xbf7a, 0x43fd, 0x92, 0xbd, 0xa4, 0x3b, 0xd, 0x82, 0xb9, 0xeb); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 110 | typedef struct IDirect3DDevice9 *LPDIRECT3DDEVICE9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 111 | |
Stefan Dösinger | 90a654a | 2008-02-23 17:57:53 +0100 | [diff] [blame] | 112 | DEFINE_GUID(IID_IDirect3DDevice9Ex, 0xb18b10ce, 0x2649, 0x405a, 0x87, 0xf, 0x95, 0xf7, 0x77, 0xd4, 0x31, 0x3a); |
| 113 | typedef struct IDirect3DDevice9Ex *LPDIRECT3DDEVICE9EX, *PDIRECT3DDEVICE9EX; |
| 114 | |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 115 | DEFINE_GUID(IID_IDirect3DResource9, 0x5eec05d, 0x8f7d, 0x4362, 0xb9, 0x99, 0xd1, 0xba, 0xf3, 0x57, 0xc7, 0x4); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 116 | typedef struct IDirect3DResource9 *LPDIRECT3DRESOURCE9, *PDIRECT3DRESOURCE9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 117 | |
| 118 | DEFINE_GUID(IID_IDirect3DVertexBuffer9, 0xb64bb1b5, 0xfd70, 0x4df6, 0xbf, 0x91, 0x19, 0xd0, 0xa1, 0x24, 0x55, 0xe3); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 119 | typedef struct IDirect3DVertexBuffer9 *LPDIRECT3DVERTEXBUFFER9, *PDIRECT3DVERTEXBUFFER9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 120 | |
| 121 | DEFINE_GUID(IID_IDirect3DVolume9, 0x24f416e6, 0x1f67, 0x4aa7, 0xb8, 0x8e, 0xd3, 0x3f, 0x6f, 0x31, 0x28, 0xa1); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 122 | typedef struct IDirect3DVolume9 *LPDIRECT3DVOLUME9, *PDIRECT3DVOLUME9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 123 | |
| 124 | DEFINE_GUID(IID_IDirect3DSwapChain9, 0x794950f2, 0xadfc, 0x458a, 0x90, 0x5e, 0x10, 0xa1, 0xb, 0xb, 0x50, 0x3b); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 125 | typedef struct IDirect3DSwapChain9 *LPDIRECT3DSWAPCHAIN9, *PDIRECT3DSWAPCHAIN9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 126 | |
Stefan Dösinger | 90a654a | 2008-02-23 17:57:53 +0100 | [diff] [blame] | 127 | DEFINE_GUID(IID_IDirect3DSwapChain9Ex, 0x91886caf, 0x1c3d, 0x4d2e, 0xa0, 0xab, 0x3e, 0x4c, 0x7d, 0x8d, 0x33, 0x3); |
| 128 | typedef struct IDirect3DSwapChain9Ex *LPDIRECT3DSWAPCHAIN9EX, *PDIRECT3DSWAPCHAIN9EX; |
| 129 | |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 130 | DEFINE_GUID(IID_IDirect3DSurface9, 0xcfbaf3a, 0x9ff6, 0x429a, 0x99, 0xb3, 0xa2, 0x79, 0x6a, 0xf8, 0xb8, 0x9b); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 131 | typedef struct IDirect3DSurface9 *LPDIRECT3DSURFACE9, *PDIRECT3DSURFACE9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 132 | |
| 133 | DEFINE_GUID(IID_IDirect3DIndexBuffer9, 0x7c9dd65e, 0xd3f7, 0x4529, 0xac, 0xee, 0x78, 0x58, 0x30, 0xac, 0xde, 0x35); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 134 | typedef struct IDirect3DIndexBuffer9 *LPDIRECT3DINDEXBUFFER9, *PDIRECT3DINDEXBUFFER9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 135 | |
| 136 | DEFINE_GUID(IID_IDirect3DBaseTexture9, 0x580ca87e, 0x1d3c, 0x4d54, 0x99, 0x1d, 0xb7, 0xd3, 0xe3, 0xc2, 0x98, 0xce); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 137 | typedef struct IDirect3DBaseTexture9 *LPDIRECT3DBASETEXTURE9, *PDIRECT3DBASETEXTURE9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 138 | |
| 139 | DEFINE_GUID(IID_IDirect3DTexture9, 0x85c31227, 0x3de5, 0x4f00, 0x9b, 0x3a, 0xf1, 0x1a, 0xc3, 0x8c, 0x18, 0xb5); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 140 | typedef struct IDirect3DTexture9 *LPDIRECT3DTEXTURE9, *PDIRECT3DTEXTURE9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 141 | |
| 142 | DEFINE_GUID(IID_IDirect3DCubeTexture9, 0xfff32f81, 0xd953, 0x473a, 0x92, 0x23, 0x93, 0xd6, 0x52, 0xab, 0xa9, 0x3f); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 143 | typedef struct IDirect3DCubeTexture9 *LPDIRECT3DCUBETEXTURE9, *PDIRECT3DCUBETEXTURE9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 144 | |
| 145 | DEFINE_GUID(IID_IDirect3DVolumeTexture9, 0x2518526c, 0xe789, 0x4111, 0xa7, 0xb9, 0x47, 0xef, 0x32, 0x8d, 0x13, 0xe6); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 146 | typedef struct IDirect3DVolumeTexture9 *LPDIRECT3DVOLUMETEXTURE9, *PDIRECT3DVOLUMETEXTURE9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 147 | |
| 148 | DEFINE_GUID(IID_IDirect3DVertexDeclaration9, 0xdd13c59c, 0x36fa, 0x4098, 0xa8, 0xfb, 0xc7, 0xed, 0x39, 0xdc, 0x85, 0x46); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 149 | typedef struct IDirect3DVertexDeclaration9 *LPDIRECT3DVERTEXDECLARATION9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 150 | |
| 151 | DEFINE_GUID(IID_IDirect3DVertexShader9, 0xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 152 | typedef struct IDirect3DVertexShader9 *LPDIRECT3DVERTEXSHADER9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 153 | |
| 154 | DEFINE_GUID(IID_IDirect3DPixelShader9, 0x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 155 | typedef struct IDirect3DPixelShader9 *LPDIRECT3DPIXELSHADER9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 156 | |
| 157 | DEFINE_GUID(IID_IDirect3DStateBlock9, 0xb07c4fe5, 0x310d, 0x4ba8, 0xa2, 0x3c, 0x4f, 0xf, 0x20, 0x6f, 0x21, 0x8b); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 158 | typedef struct IDirect3DStateBlock9 *LPDIRECT3DSTATEBLOCK9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 159 | |
| 160 | DEFINE_GUID(IID_IDirect3DQuery9, 0xd9771460, 0xa695, 0x4f26, 0xbb, 0xd3, 0x27, 0xb8, 0x40, 0xb5, 0x41, 0xcc); |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 161 | typedef struct IDirect3DQuery9 *LPDIRECT3DQUERY9, *PDIRECT3DQUERY9; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 162 | |
| 163 | /***************************************************************************** |
| 164 | * IDirect3D9 interface |
| 165 | */ |
| 166 | #define INTERFACE IDirect3D9 |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 167 | DECLARE_INTERFACE_(IDirect3D9,IUnknown) |
| 168 | { |
| 169 | /*** IUnknown methods ***/ |
| 170 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 171 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 172 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 173 | /*** IDirect3D9 methods ***/ |
| 174 | STDMETHOD(RegisterSoftwareDevice)(THIS_ void* pInitializeFunction) PURE; |
| 175 | STDMETHOD_(UINT, GetAdapterCount)(THIS) PURE; |
| 176 | STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER9* pIdentifier) PURE; |
| 177 | STDMETHOD_(UINT, GetAdapterModeCount)(THIS_ UINT Adapter, D3DFORMAT Format) PURE; |
| 178 | STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE* pMode) PURE; |
| 179 | STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, D3DDISPLAYMODE* pMode) PURE; |
| 180 | STDMETHOD(CheckDeviceType)(THIS_ UINT iAdapter, D3DDEVTYPE DevType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL bWindowed) PURE; |
| 181 | STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) PURE; |
| 182 | STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType, DWORD* pQualityLevels) PURE; |
| 183 | STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) PURE; |
| 184 | STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat) PURE; |
| 185 | STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS9* pCaps) PURE; |
| 186 | STDMETHOD_(HMONITOR, GetAdapterMonitor)(THIS_ UINT Adapter) PURE; |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 187 | STDMETHOD(CreateDevice)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS* pPresentationParameters, struct IDirect3DDevice9** ppReturnedDeviceInterface) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 188 | }; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 189 | #undef INTERFACE |
| 190 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 191 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 192 | /*** IUnknown methods ***/ |
| 193 | #define IDirect3D9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 194 | #define IDirect3D9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 195 | #define IDirect3D9_Release(p) (p)->lpVtbl->Release(p) |
| 196 | /*** IDirect3D9 methods ***/ |
| 197 | #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a) |
| 198 | #define IDirect3D9_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p) |
| 199 | #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c) |
| 200 | #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b) |
| 201 | #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d) |
| 202 | #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b) |
| 203 | #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e) |
| 204 | #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f) |
| 205 | #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f) |
| 206 | #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e) |
| 207 | #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d) |
| 208 | #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c) |
| 209 | #define IDirect3D9_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a) |
| 210 | #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 211 | #else |
| 212 | /*** IUnknown methods ***/ |
| 213 | #define IDirect3D9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 214 | #define IDirect3D9_AddRef(p) (p)->AddRef() |
| 215 | #define IDirect3D9_Release(p) (p)->Release() |
| 216 | /*** IDirect3D9 methods ***/ |
| 217 | #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a) |
| 218 | #define IDirect3D9_GetAdapterCount(p) (p)->GetAdapterCount() |
| 219 | #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c) |
| 220 | #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->GetAdapterModeCount(a,b) |
| 221 | #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->EnumAdapterModes(a,b,c,d) |
| 222 | #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b) |
| 223 | #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e) |
| 224 | #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f) |
| 225 | #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->CheckDeviceMultiSampleType(a,b,c,d,e,f) |
| 226 | #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e) |
| 227 | #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->CheckDeviceFormatConversion(a,b,c,d) |
| 228 | #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c) |
| 229 | #define IDirect3D9_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a) |
| 230 | #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f) |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 231 | #endif |
| 232 | |
| 233 | /***************************************************************************** |
Stefan Dösinger | 90a654a | 2008-02-23 17:57:53 +0100 | [diff] [blame] | 234 | * IDirect3D9Ex interface |
| 235 | */ |
| 236 | #define INTERFACE IDirect3D9Ex |
| 237 | DECLARE_INTERFACE_(IDirect3D9Ex,IDirect3D9) |
| 238 | { |
| 239 | /*** IUnknown methods ***/ |
| 240 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 241 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 242 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 243 | /*** IDirect3D9 methods ***/ |
Stefan Dösinger | a1c460f | 2008-11-21 17:41:27 +0100 | [diff] [blame] | 244 | |
| 245 | /* Note: Microsoft's d3d9.h does not declare IDirect3D9Ex::RegisterSoftwareDevice . This would mean that |
| 246 | * the offsets of the other methods in the Vtable change too. This is wrong. In Microsoft's |
| 247 | * d3d9.dll, the offsets for the other functions are still compatible with IDirect3D9. |
| 248 | * This is probably because even in MS's header IDirect3D9Ex inherits from IDirect3D9, which makes the |
| 249 | * C++ inferface compatible, and nobody uses the C interface in Windows world. |
| 250 | */ |
Stefan Dösinger | 90a654a | 2008-02-23 17:57:53 +0100 | [diff] [blame] | 251 | STDMETHOD(RegisterSoftwareDevice)(THIS_ void* pInitializeFunction) PURE; |
Stefan Dösinger | a1c460f | 2008-11-21 17:41:27 +0100 | [diff] [blame] | 252 | |
Stefan Dösinger | 90a654a | 2008-02-23 17:57:53 +0100 | [diff] [blame] | 253 | STDMETHOD_(UINT, GetAdapterCount)(THIS) PURE; |
| 254 | STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER9* pIdentifier) PURE; |
| 255 | STDMETHOD_(UINT, GetAdapterModeCount)(THIS_ UINT Adapter, D3DFORMAT Format) PURE; |
| 256 | STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE* pMode) PURE; |
| 257 | STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, D3DDISPLAYMODE* pMode) PURE; |
| 258 | STDMETHOD(CheckDeviceType)(THIS_ UINT iAdapter, D3DDEVTYPE DevType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL bWindowed) PURE; |
| 259 | STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) PURE; |
| 260 | STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType, DWORD* pQualityLevels) PURE; |
| 261 | STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) PURE; |
| 262 | STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat) PURE; |
| 263 | STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS9* pCaps) PURE; |
| 264 | STDMETHOD_(HMONITOR, GetAdapterMonitor)(THIS_ UINT Adapter) PURE; |
| 265 | STDMETHOD(CreateDevice)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS* pPresentationParameters, struct IDirect3DDevice9** ppReturnedDeviceInterface) PURE; |
| 266 | /*** IDirect3D9Ex methods ***/ |
| 267 | STDMETHOD_(UINT, GetAdapterModeCountEx)(THIS_ UINT Adapter, CONST D3DDISPLAYMODEFILTER *pFilter) PURE; |
| 268 | STDMETHOD(EnumAdapterModesEx)(THIS_ UINT Adapter, CONST D3DDISPLAYMODEFILTER *pFilter, UINT Mode, D3DDISPLAYMODEEX* pMode) PURE; |
| 269 | STDMETHOD(GetAdapterDisplayModeEx)(THIS_ UINT Adapter, D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation); |
Rob Shearman | ce8d915 | 2008-03-03 21:48:25 +0000 | [diff] [blame] | 270 | STDMETHOD(CreateDeviceEx)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS* pPresentationParameters, D3DDISPLAYMODEEX* pFullscreenDisplayMode, struct IDirect3DDevice9Ex **ppReturnedDeviceInterface) PURE; |
Stefan Dösinger | 90a654a | 2008-02-23 17:57:53 +0100 | [diff] [blame] | 271 | STDMETHOD(GetAdapterLUID)(THIS_ UINT Adatper, LUID *pLUID) PURE; |
| 272 | }; |
| 273 | #undef INTERFACE |
| 274 | |
| 275 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 276 | /*** IUnknown methods ***/ |
| 277 | #define IDirect3D9Ex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 278 | #define IDirect3D9Ex_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 279 | #define IDirect3D9Ex_Release(p) (p)->lpVtbl->Release(p) |
| 280 | /*** IDirect3D9 methods ***/ |
| 281 | #define IDirect3D9Ex_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a) |
| 282 | #define IDirect3D9Ex_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p) |
| 283 | #define IDirect3D9Ex_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c) |
| 284 | #define IDirect3D9Ex_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b) |
| 285 | #define IDirect3D9Ex_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d) |
| 286 | #define IDirect3D9Ex_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b) |
| 287 | #define IDirect3D9Ex_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e) |
| 288 | #define IDirect3D9Ex_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f) |
| 289 | #define IDirect3D9Ex_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f) |
| 290 | #define IDirect3D9Ex_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e) |
| 291 | #define IDirect3D9Ex_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d) |
| 292 | #define IDirect3D9Ex_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c) |
| 293 | #define IDirect3D9Ex_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a) |
| 294 | #define IDirect3D9Ex_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f) |
| 295 | /*** IDirect3D9Ex methods ***/ |
| 296 | #define IDirect3D9Ex_GetAdapterModeCountEx(p,a,b) (p)->lpVtbl->GetAdapterModeCountEx(p,a,b) |
| 297 | #define IDirect3D9Ex_EnumAdapterModesEx(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModesEx(p,a,b,c,d) |
| 298 | #define IDirect3D9Ex_GetAdapterDisplayModeEx(p,a,b,c) (p)->lpVtbl->GetAdapterDisplayModeEx(p,a,b,c) |
| 299 | #define IDirect3D9Ex_CreateDeviceEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateDeviceEx(p,a,b,c,d,e,f,g) |
| 300 | #define IDirect3D9Ex_GetAdapterLUID(p,a,b) (p)->lpVtbl->GetAdapterLUID(p,a,b) |
| 301 | #else |
| 302 | /*** IUnknown methods ***/ |
| 303 | #define IDirect3D9Ex_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 304 | #define IDirect3D9Ex_AddRef(p) (p)->AddRef() |
| 305 | #define IDirect3D9Ex_Release(p) (p)->Release() |
| 306 | /*** IDirect3D9 methods ***/ |
| 307 | #define IDirect3D9Ex_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a) |
| 308 | #define IDirect3D9Ex_GetAdapterCount(p) (p)->GetAdapterCount() |
| 309 | #define IDirect3D9Ex_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c) |
| 310 | #define IDirect3D9Ex_GetAdapterModeCount(p,a,b) (p)->GetAdapterModeCount(a,b) |
| 311 | #define IDirect3D9Ex_EnumAdapterModes(p,a,b,c,d) (p)->EnumAdapterModes(a,b,c,d) |
| 312 | #define IDirect3D9Ex_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b) |
| 313 | #define IDirect3D9Ex_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e) |
| 314 | #define IDirect3D9Ex_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f) |
| 315 | #define IDirect3D9Ex_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->CheckDeviceMultiSampleType(a,b,c,d,e,f) |
| 316 | #define IDirect3D9Ex_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e) |
| 317 | #define IDirect3D9Ex_CheckDeviceFormatConversion(p,a,b,c,d) (p)->CheckDeviceFormatConversion(a,b,c,d) |
| 318 | #define IDirect3D9Ex_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c) |
| 319 | #define IDirect3D9Ex_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a) |
| 320 | #define IDirect3D9Ex_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f) |
| 321 | #endif |
| 322 | |
| 323 | /***************************************************************************** |
Alexandre Julliard | b8d3075 | 2005-07-26 18:32:53 +0000 | [diff] [blame] | 324 | * IDirect3DVolume9 interface |
| 325 | */ |
| 326 | #define INTERFACE IDirect3DVolume9 |
| 327 | DECLARE_INTERFACE_(IDirect3DVolume9,IUnknown) |
| 328 | { |
| 329 | /*** IUnknown methods ***/ |
| 330 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 331 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 332 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 333 | /*** IDirect3DVolume9 methods ***/ |
| 334 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 335 | STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE; |
| 336 | STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE; |
| 337 | STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; |
| 338 | STDMETHOD(GetContainer)(THIS_ REFIID riid, void** ppContainer) PURE; |
| 339 | STDMETHOD(GetDesc)(THIS_ D3DVOLUME_DESC* pDesc) PURE; |
| 340 | STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) PURE; |
| 341 | STDMETHOD(UnlockBox)(THIS) PURE; |
| 342 | }; |
| 343 | #undef INTERFACE |
| 344 | |
| 345 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 346 | /*** IUnknown methods ***/ |
| 347 | #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 348 | #define IDirect3DVolume9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 349 | #define IDirect3DVolume9_Release(p) (p)->lpVtbl->Release(p) |
| 350 | /*** IDirect3DVolume9 methods ***/ |
| 351 | #define IDirect3DVolume9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 352 | #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) |
| 353 | #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) |
| 354 | #define IDirect3DVolume9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) |
| 355 | #define IDirect3DVolume9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b) |
| 356 | #define IDirect3DVolume9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) |
| 357 | #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c) |
| 358 | #define IDirect3DVolume9_UnlockBox(p) (p)->lpVtbl->UnlockBox(p) |
| 359 | #else |
| 360 | /*** IUnknown methods ***/ |
| 361 | #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 362 | #define IDirect3DVolume9_AddRef(p) (p)->AddRef() |
| 363 | #define IDirect3DVolume9_Release(p) (p)->Release() |
| 364 | /*** IDirect3DVolume9 methods ***/ |
| 365 | #define IDirect3DVolume9_GetDevice(p,a) (p)->GetDevice(a) |
| 366 | #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) |
| 367 | #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) |
| 368 | #define IDirect3DVolume9_FreePrivateData(p,a) (p)->FreePrivateData(a) |
| 369 | #define IDirect3DVolume9_GetContainer(p,a,b) (p)->GetContainer(a,b) |
| 370 | #define IDirect3DVolume9_GetDesc(p,a) (p)->GetDesc(a) |
| 371 | #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->LockBox(a,b,c) |
| 372 | #define IDirect3DVolume9_UnlockBox(p) (p)->UnlockBox() |
| 373 | #endif |
| 374 | |
| 375 | /***************************************************************************** |
| 376 | * IDirect3DSwapChain9 interface |
| 377 | */ |
| 378 | #define INTERFACE IDirect3DSwapChain9 |
| 379 | DECLARE_INTERFACE_(IDirect3DSwapChain9,IUnknown) |
| 380 | { |
| 381 | /*** IUnknown methods ***/ |
| 382 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 383 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 384 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 385 | /*** IDirect3DSwapChain9 methods ***/ |
| 386 | STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect, CONST RECT* pDestRect, HWND hDestWindowOverride, CONST RGNDATA* pDirtyRegion, DWORD dwFlags) PURE; |
| 387 | STDMETHOD(GetFrontBufferData)(THIS_ struct IDirect3DSurface9* pDestSurface) PURE; |
| 388 | STDMETHOD(GetBackBuffer)(THIS_ UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, struct IDirect3DSurface9** ppBackBuffer) PURE; |
| 389 | STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS* pRasterStatus) PURE; |
| 390 | STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE* pMode) PURE; |
| 391 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 392 | STDMETHOD(GetPresentParameters)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE; |
| 393 | }; |
| 394 | #undef INTERFACE |
| 395 | |
| 396 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 397 | /*** IUnknown methods ***/ |
| 398 | #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 399 | #define IDirect3DSwapChain9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 400 | #define IDirect3DSwapChain9_Release(p) (p)->lpVtbl->Release(p) |
| 401 | /*** IDirect3DSwapChain9 methods ***/ |
| 402 | #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e) |
| 403 | #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a) |
| 404 | #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c) |
| 405 | #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a) |
| 406 | #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a) |
| 407 | #define IDirect3DSwapChain9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 408 | #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a) |
| 409 | #else |
| 410 | /*** IUnknown methods ***/ |
| 411 | #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 412 | #define IDirect3DSwapChain9_AddRef(p) (p)->AddRef() |
| 413 | #define IDirect3DSwapChain9_Release(p) (p)->Release() |
| 414 | /*** IDirect3DSwapChain9 methods ***/ |
| 415 | #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->Present(a,b,c,d,e) |
| 416 | #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->GetFrontBufferData(a) |
| 417 | #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c) |
| 418 | #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->GetRasterStatus(a) |
| 419 | #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->GetDisplayMode(a) |
| 420 | #define IDirect3DSwapChain9_GetDevice(p,a) (p)->GetDevice(a) |
| 421 | #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->GetPresentParameters(a) |
| 422 | #endif |
| 423 | |
| 424 | /***************************************************************************** |
| 425 | * IDirect3DResource9 interface |
| 426 | */ |
| 427 | #define INTERFACE IDirect3DResource9 |
| 428 | DECLARE_INTERFACE_(IDirect3DResource9,IUnknown) |
| 429 | { |
| 430 | /*** IUnknown methods ***/ |
| 431 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 432 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 433 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 434 | /*** IDirect3DResource9 methods ***/ |
| 435 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 436 | STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE; |
| 437 | STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE; |
| 438 | STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; |
| 439 | STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; |
| 440 | STDMETHOD_(DWORD, GetPriority)(THIS) PURE; |
| 441 | STDMETHOD_(void, PreLoad)(THIS) PURE; |
| 442 | STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; |
| 443 | }; |
| 444 | #undef INTERFACE |
| 445 | |
| 446 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 447 | /*** IUnknown methods ***/ |
| 448 | #define IDirect3DResource9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 449 | #define IDirect3DResource9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 450 | #define IDirect3DResource9_Release(p) (p)->lpVtbl->Release(p) |
| 451 | /*** IDirect3DResource9 methods ***/ |
| 452 | #define IDirect3DResource9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 453 | #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) |
| 454 | #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) |
| 455 | #define IDirect3DResource9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) |
| 456 | #define IDirect3DResource9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) |
| 457 | #define IDirect3DResource9_GetPriority(p) (p)->lpVtbl->GetPriority(p) |
| 458 | #define IDirect3DResource9_PreLoad(p) (p)->lpVtbl->PreLoad(p) |
| 459 | #define IDirect3DResource9_GetType(p) (p)->lpVtbl->GetType(p) |
| 460 | #else |
| 461 | /*** IUnknown methods ***/ |
| 462 | #define IDirect3DResource9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 463 | #define IDirect3DResource9_AddRef(p) (p)->AddRef() |
| 464 | #define IDirect3DResource9_Release(p) (p)->Release() |
| 465 | /*** IDirect3DResource9 methods ***/ |
| 466 | #define IDirect3DResource9_GetDevice(p,a) (p)->GetDevice(a) |
| 467 | #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) |
| 468 | #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) |
| 469 | #define IDirect3DResource9_FreePrivateData(p,a) (p)->FreePrivateData(a) |
| 470 | #define IDirect3DResource9_SetPriority(p,a) (p)->SetPriority(a) |
| 471 | #define IDirect3DResource9_GetPriority(p) (p)->GetPriority() |
| 472 | #define IDirect3DResource9_PreLoad(p) (p)->PreLoad() |
| 473 | #define IDirect3DResource9_GetType(p) (p)->GetType() |
| 474 | #endif |
| 475 | |
| 476 | /***************************************************************************** |
| 477 | * IDirect3DSurface9 interface |
| 478 | */ |
| 479 | #define INTERFACE IDirect3DSurface9 |
| 480 | DECLARE_INTERFACE_(IDirect3DSurface9,IDirect3DResource9) |
| 481 | { |
| 482 | /*** IUnknown methods ***/ |
| 483 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 484 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 485 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 486 | /*** IDirect3DResource9 methods ***/ |
| 487 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 488 | STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE; |
| 489 | STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE; |
| 490 | STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; |
| 491 | STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; |
| 492 | STDMETHOD_(DWORD, GetPriority)(THIS) PURE; |
| 493 | STDMETHOD_(void, PreLoad)(THIS) PURE; |
| 494 | STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; |
| 495 | /*** IDirect3DSurface9 methods ***/ |
| 496 | STDMETHOD(GetContainer)(THIS_ REFIID riid, void** ppContainer) PURE; |
| 497 | STDMETHOD(GetDesc)(THIS_ D3DSURFACE_DESC* pDesc) PURE; |
| 498 | STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE; |
| 499 | STDMETHOD(UnlockRect)(THIS) PURE; |
| 500 | STDMETHOD(GetDC)(THIS_ HDC* phdc) PURE; |
| 501 | STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE; |
| 502 | }; |
| 503 | #undef INTERFACE |
| 504 | |
| 505 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 506 | /*** IUnknown methods ***/ |
| 507 | #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 508 | #define IDirect3DSurface9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 509 | #define IDirect3DSurface9_Release(p) (p)->lpVtbl->Release(p) |
| 510 | /*** IDirect3DSurface9 methods: IDirect3DResource9 ***/ |
| 511 | #define IDirect3DSurface9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 512 | #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) |
| 513 | #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) |
| 514 | #define IDirect3DSurface9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) |
| 515 | #define IDirect3DSurface9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) |
| 516 | #define IDirect3DSurface9_GetPriority(p) (p)->lpVtbl->GetPriority(p) |
| 517 | #define IDirect3DSurface9_PreLoad(p) (p)->lpVtbl->PreLoad(p) |
| 518 | #define IDirect3DSurface9_GetType(p) (p)->lpVtbl->GetType(p) |
| 519 | /*** IDirect3DSurface9 methods ***/ |
| 520 | #define IDirect3DSurface9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b) |
| 521 | #define IDirect3DSurface9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) |
| 522 | #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c) |
| 523 | #define IDirect3DSurface9_UnlockRect(p) (p)->lpVtbl->UnlockRect(p) |
| 524 | #define IDirect3DSurface9_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) |
| 525 | #define IDirect3DSurface9_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) |
| 526 | #else |
| 527 | /*** IUnknown methods ***/ |
| 528 | #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 529 | #define IDirect3DSurface9_AddRef(p) (p)->AddRef() |
| 530 | #define IDirect3DSurface9_Release(p) (p)->Release() |
| 531 | /*** IDirect3DSurface9 methods: IDirect3DResource9 ***/ |
| 532 | #define IDirect3DSurface9_GetDevice(p,a) (p)->GetDevice(a) |
| 533 | #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) |
| 534 | #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) |
| 535 | #define IDirect3DSurface9_FreePrivateData(p,a) (p)->FreePrivateData(a) |
| 536 | #define IDirect3DSurface9_SetPriority(p,a) (p)->SetPriority(a) |
| 537 | #define IDirect3DSurface9_GetPriority(p) (p)->GetPriority() |
| 538 | #define IDirect3DSurface9_PreLoad(p) (p)->PreLoad() |
| 539 | #define IDirect3DSurface9_GetType(p) (p)->GetType() |
| 540 | /*** IDirect3DSurface9 methods ***/ |
| 541 | #define IDirect3DSurface9_GetContainer(p,a,b) (p)->GetContainer(a,b) |
| 542 | #define IDirect3DSurface9_GetDesc(p,a) (p)->GetDesc(a) |
| 543 | #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->LockRect(a,b,c) |
| 544 | #define IDirect3DSurface9_UnlockRect(p) (p)->UnlockRect() |
| 545 | #define IDirect3DSurface9_GetDC(p,a) (p)->GetDC(a) |
| 546 | #define IDirect3DSurface9_ReleaseDC(p,a) (p)->ReleaseDC(a) |
| 547 | #endif |
| 548 | |
| 549 | /***************************************************************************** |
| 550 | * IDirect3DVertexBuffer9 interface |
| 551 | */ |
| 552 | #define INTERFACE IDirect3DVertexBuffer9 |
| 553 | DECLARE_INTERFACE_(IDirect3DVertexBuffer9,IDirect3DResource9) |
| 554 | { |
| 555 | /*** IUnknown methods ***/ |
| 556 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 557 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 558 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 559 | /*** IDirect3DResource9 methods ***/ |
| 560 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 561 | STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE; |
| 562 | STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE; |
| 563 | STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; |
| 564 | STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; |
| 565 | STDMETHOD_(DWORD, GetPriority)(THIS) PURE; |
| 566 | STDMETHOD_(void, PreLoad)(THIS) PURE; |
| 567 | STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; |
| 568 | /*** IDirect3DVertexBuffer9 methods ***/ |
| 569 | STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, void** ppbData, DWORD Flags) PURE; |
| 570 | STDMETHOD(Unlock)(THIS) PURE; |
| 571 | STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC* pDesc) PURE; |
| 572 | }; |
| 573 | #undef INTERFACE |
| 574 | |
| 575 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 576 | /*** IUnknown methods ***/ |
| 577 | #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 578 | #define IDirect3DVertexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 579 | #define IDirect3DVertexBuffer9_Release(p) (p)->lpVtbl->Release(p) |
| 580 | /*** IDirect3DVertexBuffer9 methods: IDirect3DResource9 ***/ |
| 581 | #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 582 | #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) |
| 583 | #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) |
| 584 | #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) |
| 585 | #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) |
| 586 | #define IDirect3DVertexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p) |
| 587 | #define IDirect3DVertexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p) |
| 588 | #define IDirect3DVertexBuffer9_GetType(p) (p)->lpVtbl->GetType(p) |
| 589 | /*** IDirect3DVertexBuffer9 methods ***/ |
| 590 | #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) |
| 591 | #define IDirect3DVertexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p) |
| 592 | #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) |
| 593 | #else |
| 594 | /*** IUnknown methods ***/ |
| 595 | #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 596 | #define IDirect3DVertexBuffer9_AddRef(p) (p)->AddRef() |
| 597 | #define IDirect3DVertexBuffer9_Release(p) (p)->Release() |
| 598 | /*** IDirect3DVertexBuffer9 methods: IDirect3DResource9 ***/ |
| 599 | #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->GetDevice(a) |
| 600 | #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) |
| 601 | #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) |
| 602 | #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a) |
| 603 | #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->SetPriority(a) |
| 604 | #define IDirect3DVertexBuffer9_GetPriority(p) (p)->GetPriority() |
| 605 | #define IDirect3DVertexBuffer9_PreLoad(p) (p)->PreLoad() |
| 606 | #define IDirect3DVertexBuffer9_GetType(p) (p)->GetType() |
| 607 | /*** IDirect3DVertexBuffer9 methods ***/ |
| 608 | #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) |
| 609 | #define IDirect3DVertexBuffer9_Unlock(p) (p)->Unlock() |
| 610 | #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->GetDesc(a) |
| 611 | #endif |
| 612 | |
| 613 | /***************************************************************************** |
| 614 | * IDirect3DIndexBuffer9 interface |
| 615 | */ |
| 616 | #define INTERFACE IDirect3DIndexBuffer9 |
| 617 | DECLARE_INTERFACE_(IDirect3DIndexBuffer9,IDirect3DResource9) |
| 618 | { |
| 619 | /*** IUnknown methods ***/ |
| 620 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 621 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 622 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 623 | /*** IDirect3DResource9 methods ***/ |
| 624 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 625 | STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE; |
| 626 | STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE; |
| 627 | STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; |
| 628 | STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; |
| 629 | STDMETHOD_(DWORD, GetPriority)(THIS) PURE; |
| 630 | STDMETHOD_(void, PreLoad)(THIS) PURE; |
| 631 | STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; |
| 632 | /*** IDirect3DIndexBuffer9 methods ***/ |
| 633 | STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, void** ppbData, DWORD Flags) PURE; |
| 634 | STDMETHOD(Unlock)(THIS) PURE; |
| 635 | STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC* pDesc) PURE; |
| 636 | }; |
| 637 | #undef INTERFACE |
| 638 | |
| 639 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 640 | /*** IUnknown methods ***/ |
| 641 | #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 642 | #define IDirect3DIndexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 643 | #define IDirect3DIndexBuffer9_Release(p) (p)->lpVtbl->Release(p) |
| 644 | /*** IDirect3DIndexBuffer9 methods: IDirect3DResource9 ***/ |
| 645 | #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 646 | #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) |
| 647 | #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) |
| 648 | #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) |
| 649 | #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) |
| 650 | #define IDirect3DIndexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p) |
| 651 | #define IDirect3DIndexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p) |
| 652 | #define IDirect3DIndexBuffer9_GetType(p) (p)->lpVtbl->GetType(p) |
| 653 | /*** IDirect3DIndexBuffer9 methods ***/ |
| 654 | #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) |
| 655 | #define IDirect3DIndexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p) |
| 656 | #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) |
| 657 | #else |
| 658 | /*** IUnknown methods ***/ |
| 659 | #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 660 | #define IDirect3DIndexBuffer9_AddRef(p) (p)->AddRef() |
| 661 | #define IDirect3DIndexBuffer9_Release(p) (p)->Release() |
| 662 | /*** IDirect3DIndexBuffer9 methods: IDirect3DResource9 ***/ |
| 663 | #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->GetDevice(a) |
| 664 | #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) |
| 665 | #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) |
| 666 | #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a) |
| 667 | #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->SetPriority(a) |
| 668 | #define IDirect3DIndexBuffer9_GetPriority(p) (p)->GetPriority() |
| 669 | #define IDirect3DIndexBuffer9_PreLoad(p) (p)->PreLoad() |
| 670 | #define IDirect3DIndexBuffer9_GetType(p) (p)->GetType() |
| 671 | /*** IDirect3DIndexBuffer9 methods ***/ |
| 672 | #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) |
| 673 | #define IDirect3DIndexBuffer9_Unlock(p) (p)->Unlock() |
| 674 | #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->GetDesc(a) |
| 675 | #endif |
| 676 | |
| 677 | /***************************************************************************** |
| 678 | * IDirect3DBaseTexture9 interface |
| 679 | */ |
| 680 | #define INTERFACE IDirect3DBaseTexture9 |
| 681 | DECLARE_INTERFACE_(IDirect3DBaseTexture9,IDirect3DResource9) |
| 682 | { |
| 683 | /*** IUnknown methods ***/ |
| 684 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 685 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 686 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 687 | /*** IDirect3DResource9 methods ***/ |
| 688 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 689 | STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE; |
| 690 | STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE; |
| 691 | STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; |
| 692 | STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; |
| 693 | STDMETHOD_(DWORD, GetPriority)(THIS) PURE; |
| 694 | STDMETHOD_(void, PreLoad)(THIS) PURE; |
| 695 | STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; |
| 696 | /*** IDirect3DBaseTexture9 methods ***/ |
| 697 | STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE; |
| 698 | STDMETHOD_(DWORD, GetLOD)(THIS) PURE; |
| 699 | STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE; |
| 700 | STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE; |
| 701 | STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE; |
| 702 | STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE; |
| 703 | }; |
| 704 | #undef INTERFACE |
| 705 | |
| 706 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 707 | /*** IUnknown methods ***/ |
| 708 | #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 709 | #define IDirect3DBaseTexture9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 710 | #define IDirect3DBaseTexture9_Release(p) (p)->lpVtbl->Release(p) |
| 711 | /*** IDirect3DBaseTexture9 methods: IDirect3DResource9 ***/ |
| 712 | #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 713 | #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) |
| 714 | #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) |
| 715 | #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) |
| 716 | #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) |
| 717 | #define IDirect3DBaseTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p) |
| 718 | #define IDirect3DBaseTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p) |
| 719 | #define IDirect3DBaseTexture9_GetType(p) (p)->lpVtbl->GetType(p) |
| 720 | /*** IDirect3DBaseTexture9 methods ***/ |
| 721 | #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) |
| 722 | #define IDirect3DBaseTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p) |
| 723 | #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) |
| 724 | #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a) |
| 725 | #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p) |
| 726 | #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p) |
| 727 | #else |
| 728 | /*** IUnknown methods ***/ |
| 729 | #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 730 | #define IDirect3DBaseTexture9_AddRef(p) (p)->AddRef() |
| 731 | #define IDirect3DBaseTexture9_Release(p) (p)->Release() |
| 732 | /*** IDirect3DBaseTexture9 methods: IDirect3DResource9 ***/ |
| 733 | #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->GetDevice(a) |
| 734 | #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) |
| 735 | #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) |
| 736 | #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a) |
| 737 | #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->SetPriority(a) |
| 738 | #define IDirect3DBaseTexture9_GetPriority(p) (p)->GetPriority() |
| 739 | #define IDirect3DBaseTexture9_PreLoad(p) (p)->PreLoad() |
| 740 | #define IDirect3DBaseTexture9_GetType(p) (p)->GetType() |
| 741 | /*** IDirect3DBaseTexture9 methods ***/ |
| 742 | #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->SetLOD(a) |
| 743 | #define IDirect3DBaseTexture9_GetLOD(p) (p)->GetLOD() |
| 744 | #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->GetLevelCount() |
| 745 | #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a) |
| 746 | #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType() |
| 747 | #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels() |
| 748 | #endif |
| 749 | |
| 750 | /***************************************************************************** |
| 751 | * IDirect3DCubeTexture9 interface |
| 752 | */ |
| 753 | #define INTERFACE IDirect3DCubeTexture9 |
| 754 | DECLARE_INTERFACE_(IDirect3DCubeTexture9,IDirect3DBaseTexture9) |
| 755 | { |
| 756 | /*** IUnknown methods ***/ |
| 757 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 758 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 759 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 760 | /*** IDirect3DResource9 methods ***/ |
| 761 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 762 | STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE; |
| 763 | STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE; |
| 764 | STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; |
| 765 | STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; |
| 766 | STDMETHOD_(DWORD, GetPriority)(THIS) PURE; |
| 767 | STDMETHOD_(void, PreLoad)(THIS) PURE; |
| 768 | STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; |
| 769 | /*** IDirect3DBaseTexture9 methods ***/ |
| 770 | STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE; |
| 771 | STDMETHOD_(DWORD, GetLOD)(THIS) PURE; |
| 772 | STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE; |
| 773 | STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE; |
| 774 | STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE; |
| 775 | STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE; |
| 776 | /*** IDirect3DCubeTexture9 methods ***/ |
| 777 | STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC* pDesc) PURE; |
| 778 | STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level, IDirect3DSurface9** ppCubeMapSurface) PURE; |
| 779 | STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE; |
| 780 | STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType, UINT Level) PURE; |
| 781 | STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType, CONST RECT* pDirtyRect) PURE; |
| 782 | }; |
| 783 | #undef INTERFACE |
| 784 | |
| 785 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 786 | /*** IUnknown methods ***/ |
| 787 | #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 788 | #define IDirect3DCubeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 789 | #define IDirect3DCubeTexture9_Release(p) (p)->lpVtbl->Release(p) |
| 790 | /*** IDirect3DCubeTexture9 methods: IDirect3DResource9 ***/ |
| 791 | #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 792 | #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) |
| 793 | #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) |
| 794 | #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) |
| 795 | #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) |
| 796 | #define IDirect3DCubeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p) |
| 797 | #define IDirect3DCubeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p) |
| 798 | #define IDirect3DCubeTexture9_GetType(p) (p)->lpVtbl->GetType(p) |
| 799 | /*** IDirect3DCubeTexture9 methods: IDirect3DBaseTexture9 ***/ |
| 800 | #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) |
| 801 | #define IDirect3DCubeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p) |
| 802 | #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) |
| 803 | #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a) |
| 804 | #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p) |
| 805 | #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p) |
| 806 | /*** IDirect3DCubeTexture9 methods ***/ |
| 807 | #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) |
| 808 | #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c) |
| 809 | #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e) |
| 810 | #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b) |
| 811 | #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b) |
| 812 | #else |
| 813 | /*** IUnknown methods ***/ |
| 814 | #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 815 | #define IDirect3DCubeTexture9_AddRef(p) (p)->AddRef() |
| 816 | #define IDirect3DCubeTexture9_Release(p) (p)->Release() |
| 817 | /*** IDirect3DCubeTexture9 methods: IDirect3DResource9 ***/ |
| 818 | #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->GetDevice(a) |
| 819 | #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) |
| 820 | #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) |
| 821 | #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a) |
| 822 | #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->SetPriority(a) |
| 823 | #define IDirect3DCubeTexture9_GetPriority(p) (p)->GetPriority() |
| 824 | #define IDirect3DCubeTexture9_PreLoad(p) (p)->PreLoad() |
| 825 | #define IDirect3DCubeTexture9_GetType(p) (p)->GetType() |
| 826 | /*** IDirect3DCubeTexture9 methods: IDirect3DBaseTexture9 ***/ |
| 827 | #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->SetLOD(a) |
| 828 | #define IDirect3DCubeTexture9_GetLOD(p) (p)->GetLOD() |
| 829 | #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->GetLevelCount() |
| 830 | #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a) |
| 831 | #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType() |
| 832 | #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels() |
| 833 | /*** IDirect3DCubeTexture9 methods ***/ |
| 834 | #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) |
| 835 | #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c) |
| 836 | #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e) |
| 837 | #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->UnlockRect(a,b) |
| 838 | #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b) |
| 839 | #endif |
| 840 | |
| 841 | /***************************************************************************** |
| 842 | * IDirect3DTexture9 interface |
| 843 | */ |
| 844 | #define INTERFACE IDirect3DTexture9 |
| 845 | DECLARE_INTERFACE_(IDirect3DTexture9,IDirect3DBaseTexture9) |
| 846 | { |
| 847 | /*** IUnknown methods ***/ |
| 848 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 849 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 850 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 851 | /*** IDirect3DResource9 methods ***/ |
| 852 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 853 | STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE; |
| 854 | STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE; |
| 855 | STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; |
| 856 | STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; |
| 857 | STDMETHOD_(DWORD, GetPriority)(THIS) PURE; |
| 858 | STDMETHOD_(void, PreLoad)(THIS) PURE; |
| 859 | STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; |
| 860 | /*** IDirect3DBaseTexture9 methods ***/ |
| 861 | STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE; |
| 862 | STDMETHOD_(DWORD, GetLOD)(THIS) PURE; |
| 863 | STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE; |
| 864 | STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE; |
| 865 | STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE; |
| 866 | STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE; |
| 867 | /*** IDirect3DTexture9 methods ***/ |
| 868 | STDMETHOD(GetLevelDesc)(THIS_ UINT Level, D3DSURFACE_DESC* pDesc) PURE; |
| 869 | STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level, IDirect3DSurface9** ppSurfaceLevel) PURE; |
| 870 | STDMETHOD(LockRect)(THIS_ UINT Level, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE; |
| 871 | STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE; |
| 872 | STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pDirtyRect) PURE; |
| 873 | }; |
| 874 | #undef INTERFACE |
| 875 | |
| 876 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 877 | /*** IUnknown methods ***/ |
| 878 | #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 879 | #define IDirect3DTexture9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 880 | #define IDirect3DTexture9_Release(p) (p)->lpVtbl->Release(p) |
| 881 | /*** IDirect3DTexture9 methods: IDirect3DResource9 ***/ |
| 882 | #define IDirect3DTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 883 | #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) |
| 884 | #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) |
| 885 | #define IDirect3DTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) |
| 886 | #define IDirect3DTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) |
| 887 | #define IDirect3DTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p) |
| 888 | #define IDirect3DTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p) |
| 889 | #define IDirect3DTexture9_GetType(p) (p)->lpVtbl->GetType(p) |
| 890 | /*** IDirect3DTexture9 methods: IDirect3DBaseTexture9 ***/ |
| 891 | #define IDirect3DTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) |
| 892 | #define IDirect3DTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p) |
| 893 | #define IDirect3DTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) |
| 894 | #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a) |
| 895 | #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p) |
| 896 | #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p) |
| 897 | /*** IDirect3DTexture9 methods ***/ |
| 898 | #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) |
| 899 | #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b) |
| 900 | #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d) |
| 901 | #define IDirect3DTexture9_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a) |
| 902 | #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a) |
| 903 | #else |
| 904 | /*** IUnknown methods ***/ |
| 905 | #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 906 | #define IDirect3DTexture9_AddRef(p) (p)->AddRef() |
| 907 | #define IDirect3DTexture9_Release(p) (p)->Release() |
| 908 | /*** IDirect3DTexture9 methods: IDirect3DResource9 ***/ |
| 909 | #define IDirect3DTexture9_GetDevice(p,a) (p)->GetDevice(a) |
| 910 | #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) |
| 911 | #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) |
| 912 | #define IDirect3DTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a) |
| 913 | #define IDirect3DTexture9_SetPriority(p,a) (p)->SetPriority(a) |
| 914 | #define IDirect3DTexture9_GetPriority(p) (p)->GetPriority() |
| 915 | #define IDirect3DTexture9_PreLoad(p) (p)->PreLoad() |
| 916 | #define IDirect3DTexture9_GetType(p) (p)->GetType() |
| 917 | /*** IDirect3DTexture9 methods: IDirect3DBaseTexture9 ***/ |
| 918 | #define IDirect3DTexture9_SetLOD(p,a) (p)->SetLOD(a) |
| 919 | #define IDirect3DTexture9_GetLOD(p) (p)->GetLOD() |
| 920 | #define IDirect3DTexture9_GetLevelCount(p) (p)->GetLevelCount() |
| 921 | #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a) |
| 922 | #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType() |
| 923 | #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels() |
| 924 | /*** IDirect3DTexture9 methods ***/ |
| 925 | #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) |
| 926 | #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b) |
| 927 | #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d) |
| 928 | #define IDirect3DTexture9_UnlockRect(p,a) (p)->UnlockRect(a) |
| 929 | #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->AddDirtyRect(a) |
| 930 | #endif |
| 931 | |
| 932 | /***************************************************************************** |
| 933 | * IDirect3DVolumeTexture9 interface |
| 934 | */ |
| 935 | #define INTERFACE IDirect3DVolumeTexture9 |
| 936 | DECLARE_INTERFACE_(IDirect3DVolumeTexture9,IDirect3DBaseTexture9) |
| 937 | { |
| 938 | /*** IUnknown methods ***/ |
| 939 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 940 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 941 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 942 | /*** IDirect3DResource9 methods ***/ |
| 943 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 944 | STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void* pData, DWORD SizeOfData, DWORD Flags) PURE; |
| 945 | STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void* pData, DWORD* pSizeOfData) PURE; |
| 946 | STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; |
| 947 | STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; |
| 948 | STDMETHOD_(DWORD, GetPriority)(THIS) PURE; |
| 949 | STDMETHOD_(void, PreLoad)(THIS) PURE; |
| 950 | STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; |
| 951 | /*** IDirect3DBaseTexture9 methods ***/ |
| 952 | STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE; |
| 953 | STDMETHOD_(DWORD, GetLOD)(THIS) PURE; |
| 954 | STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE; |
| 955 | STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE; |
| 956 | STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE; |
| 957 | STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE; |
| 958 | /*** IDirect3DVolumeTexture9 methods ***/ |
| 959 | STDMETHOD(GetLevelDesc)(THIS_ UINT Level, D3DVOLUME_DESC *pDesc) PURE; |
| 960 | STDMETHOD(GetVolumeLevel)(THIS_ UINT Level, IDirect3DVolume9** ppVolumeLevel) PURE; |
| 961 | STDMETHOD(LockBox)(THIS_ UINT Level, D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) PURE; |
| 962 | STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE; |
| 963 | STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX* pDirtyBox) PURE; |
| 964 | }; |
| 965 | #undef INTERFACE |
| 966 | |
| 967 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 968 | /*** IUnknown methods ***/ |
| 969 | #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 970 | #define IDirect3DVolumeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 971 | #define IDirect3DVolumeTexture9_Release(p) (p)->lpVtbl->Release(p) |
| 972 | /*** IDirect3DVolumeTexture9 methods: IDirect3DResource9 ***/ |
| 973 | #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 974 | #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) |
| 975 | #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) |
| 976 | #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) |
| 977 | #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) |
| 978 | #define IDirect3DVolumeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p) |
| 979 | #define IDirect3DVolumeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p) |
| 980 | #define IDirect3DVolumeTexture9_GetType(p) (p)->lpVtbl->GetType(p) |
| 981 | /*** IDirect3DVolumeTexture9 methods: IDirect3DBaseTexture9 ***/ |
| 982 | #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) |
| 983 | #define IDirect3DVolumeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p) |
| 984 | #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) |
| 985 | #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a) |
| 986 | #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p) |
| 987 | #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p) |
| 988 | /*** IDirect3DVolumeTexture9 methods ***/ |
| 989 | #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) |
| 990 | #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b) |
| 991 | #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d) |
| 992 | #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a) |
| 993 | #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a) |
| 994 | #else |
| 995 | /*** IUnknown methods ***/ |
| 996 | #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 997 | #define IDirect3DVolumeTexture9_AddRef(p) (p)->AddRef() |
| 998 | #define IDirect3DVolumeTexture9_Release(p) (p)->Release() |
| 999 | /*** IDirect3DVolumeTexture9 methods: IDirect3DResource9 ***/ |
| 1000 | #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->GetDevice(a) |
| 1001 | #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) |
| 1002 | #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) |
| 1003 | #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a) |
| 1004 | #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->SetPriority(a) |
| 1005 | #define IDirect3DVolumeTexture9_GetPriority(p) (p)->GetPriority() |
| 1006 | #define IDirect3DVolumeTexture9_PreLoad(p) (p)->PreLoad() |
| 1007 | #define IDirect3DVolumeTexture9_GetType(p) (p)->GetType() |
| 1008 | /*** IDirect3DVolumeTexture9 methods: IDirect3DBaseTexture9 ***/ |
| 1009 | #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->SetLOD(a) |
| 1010 | #define IDirect3DVolumeTexture9_GetLOD(p) (p)->GetLOD() |
| 1011 | #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->GetLevelCount() |
| 1012 | #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a) |
| 1013 | #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType() |
| 1014 | #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels() |
| 1015 | /*** IDirect3DVolumeTexture9 methods ***/ |
| 1016 | #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) |
| 1017 | #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b) |
| 1018 | #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d) |
| 1019 | #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->UnlockBox(a) |
| 1020 | #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->AddDirtyBox(a) |
| 1021 | #endif |
| 1022 | |
| 1023 | /***************************************************************************** |
| 1024 | * IDirect3DVertexDeclaration9 interface |
| 1025 | */ |
| 1026 | #define INTERFACE IDirect3DVertexDeclaration9 |
| 1027 | DECLARE_INTERFACE_(IDirect3DVertexDeclaration9,IUnknown) |
| 1028 | { |
| 1029 | /*** IUnknown methods ***/ |
| 1030 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1031 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1032 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1033 | /*** IDirect3DVertexDeclaration9 methods ***/ |
| 1034 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 1035 | STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9*, UINT* pNumElements) PURE; |
| 1036 | }; |
| 1037 | #undef INTERFACE |
| 1038 | |
| 1039 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 1040 | /*** IUnknown methods ***/ |
| 1041 | #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1042 | #define IDirect3DVertexDeclaration9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1043 | #define IDirect3DVertexDeclaration9_Release(p) (p)->lpVtbl->Release(p) |
| 1044 | /*** IDirect3DVertexShader9 methods ***/ |
| 1045 | #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 1046 | #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->lpVtbl->GetDeclaration(p,a,b) |
| 1047 | #else |
| 1048 | /*** IUnknown methods ***/ |
| 1049 | #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1050 | #define IDirect3DVertexDeclaration9_AddRef(p) (p)->AddRef() |
| 1051 | #define IDirect3DVertexDeclaration9_Release(p) (p)->Release() |
| 1052 | /*** IDirect3DVertexShader9 methods ***/ |
| 1053 | #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->GetDevice(a) |
| 1054 | #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->GetDeclaration(a,b) |
| 1055 | #endif |
| 1056 | |
| 1057 | /***************************************************************************** |
| 1058 | * IDirect3DVertexShader9 interface |
| 1059 | */ |
| 1060 | #define INTERFACE IDirect3DVertexShader9 |
| 1061 | DECLARE_INTERFACE_(IDirect3DVertexShader9,IUnknown) |
| 1062 | { |
| 1063 | /*** IUnknown methods ***/ |
| 1064 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1065 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1066 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1067 | /*** IDirect3DVertexShader9 methods ***/ |
| 1068 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 1069 | STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE; |
| 1070 | }; |
| 1071 | #undef INTERFACE |
| 1072 | |
| 1073 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 1074 | /*** IUnknown methods ***/ |
| 1075 | #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1076 | #define IDirect3DVertexShader9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1077 | #define IDirect3DVertexShader9_Release(p) (p)->lpVtbl->Release(p) |
| 1078 | /*** IDirect3DVertexShader9 methods ***/ |
| 1079 | #define IDirect3DVertexShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 1080 | #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b) |
| 1081 | #else |
| 1082 | /*** IUnknown methods ***/ |
| 1083 | #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1084 | #define IDirect3DVertexShader9_AddRef(p) (p)->AddRef() |
| 1085 | #define IDirect3DVertexShader9_Release(p) (p)->Release() |
| 1086 | /*** IDirect3DVertexShader9 methods ***/ |
| 1087 | #define IDirect3DVertexShader9_GetDevice(p,a) (p)->GetDevice(a) |
| 1088 | #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->GetFunction(a,b) |
| 1089 | #endif |
| 1090 | |
| 1091 | /***************************************************************************** |
| 1092 | * IDirect3DPixelShader9 interface |
| 1093 | */ |
| 1094 | #define INTERFACE IDirect3DPixelShader9 |
| 1095 | DECLARE_INTERFACE_(IDirect3DPixelShader9,IUnknown) |
| 1096 | { |
| 1097 | /*** IUnknown methods ***/ |
| 1098 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1099 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1100 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1101 | /*** IDirect3DPixelShader9 methods ***/ |
| 1102 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 1103 | STDMETHOD(GetFunction)(THIS_ void*, UINT* pSizeOfData) PURE; |
| 1104 | }; |
| 1105 | #undef INTERFACE |
| 1106 | |
| 1107 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 1108 | /*** IUnknown methods ***/ |
| 1109 | #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1110 | #define IDirect3DPixelShader9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1111 | #define IDirect3DPixelShader9_Release(p) (p)->lpVtbl->Release(p) |
| 1112 | /*** IDirect3DPixelShader9 methods ***/ |
| 1113 | #define IDirect3DPixelShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 1114 | #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b) |
| 1115 | #else |
| 1116 | /*** IUnknown methods ***/ |
| 1117 | #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1118 | #define IDirect3DPixelShader9_AddRef(p) (p)->AddRef() |
| 1119 | #define IDirect3DPixelShader9_Release(p) (p)->Release() |
| 1120 | /*** IDirect3DPixelShader9 methods ***/ |
| 1121 | #define IDirect3DPixelShader9_GetDevice(p,a) (p)->GetDevice(a) |
| 1122 | #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->GetFunction(a,b) |
| 1123 | #endif |
| 1124 | |
| 1125 | /***************************************************************************** |
| 1126 | * IDirect3DStateBlock9 interface |
| 1127 | */ |
| 1128 | #define INTERFACE IDirect3DStateBlock9 |
| 1129 | DECLARE_INTERFACE_(IDirect3DStateBlock9,IUnknown) |
| 1130 | { |
| 1131 | /*** IUnknown methods ***/ |
| 1132 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1133 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1134 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1135 | /*** IDirect3DStateBlock9 methods ***/ |
| 1136 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 1137 | STDMETHOD(Capture)(THIS) PURE; |
| 1138 | STDMETHOD(Apply)(THIS) PURE; |
| 1139 | }; |
| 1140 | #undef INTERFACE |
| 1141 | |
| 1142 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 1143 | /*** IUnknown methods ***/ |
| 1144 | #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1145 | #define IDirect3DStateBlock9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1146 | #define IDirect3DStateBlock9_Release(p) (p)->lpVtbl->Release(p) |
| 1147 | /*** IDirect3DStateBlock9 methods ***/ |
| 1148 | #define IDirect3DStateBlock9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 1149 | #define IDirect3DStateBlock9_Capture(p) (p)->lpVtbl->Capture(p) |
| 1150 | #define IDirect3DStateBlock9_Apply(p) (p)->lpVtbl->Apply(p) |
| 1151 | #else |
| 1152 | /*** IUnknown methods ***/ |
| 1153 | #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1154 | #define IDirect3DStateBlock9_AddRef(p) (p)->AddRef() |
| 1155 | #define IDirect3DStateBlock9_Release(p) (p)->Release() |
| 1156 | /*** IDirect3DStateBlock9 methods ***/ |
| 1157 | #define IDirect3DStateBlock9_GetDevice(p,a) (p)->GetDevice(a) |
| 1158 | #define IDirect3DStateBlock9_Capture(p) (p)->Capture() |
| 1159 | #define IDirect3DStateBlock9_Apply(p) (p)->Apply() |
| 1160 | #endif |
| 1161 | |
| 1162 | /***************************************************************************** |
| 1163 | * IDirect3DQuery9 interface |
| 1164 | */ |
| 1165 | #define INTERFACE IDirect3DQuery9 |
| 1166 | DECLARE_INTERFACE_(IDirect3DQuery9,IUnknown) |
| 1167 | { |
| 1168 | /*** IUnknown methods ***/ |
| 1169 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1170 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1171 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1172 | /*** IDirect3DQuery9 methods ***/ |
| 1173 | STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9** ppDevice) PURE; |
| 1174 | STDMETHOD_(D3DQUERYTYPE, GetType)(THIS) PURE; |
| 1175 | STDMETHOD_(DWORD, GetDataSize)(THIS) PURE; |
| 1176 | STDMETHOD(Issue)(THIS_ DWORD dwIssueFlags) PURE; |
| 1177 | STDMETHOD(GetData)(THIS_ void* pData, DWORD dwSize, DWORD dwGetDataFlags) PURE; |
| 1178 | }; |
| 1179 | #undef INTERFACE |
| 1180 | |
| 1181 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 1182 | /*** IUnknown methods ***/ |
| 1183 | #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1184 | #define IDirect3DQuery9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1185 | #define IDirect3DQuery9_Release(p) (p)->lpVtbl->Release(p) |
| 1186 | /*** IDirect3DQuery9 ***/ |
| 1187 | #define IDirect3DQuery9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) |
| 1188 | #define IDirect3DQuery9_GetType(p) (p)->lpVtbl->GetType(p) |
| 1189 | #define IDirect3DQuery9_GetDataSize(p) (p)->lpVtbl->GetDataSize(p) |
| 1190 | #define IDirect3DQuery9_Issue(p,a) (p)->lpVtbl->Issue(p,a) |
| 1191 | #define IDirect3DQuery9_GetData(p,a,b,c) (p)->lpVtbl->GetData(p,a,b,c) |
| 1192 | #else |
| 1193 | /*** IUnknown methods ***/ |
| 1194 | #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1195 | #define IDirect3DQuery9_AddRef(p) (p)->AddRef() |
| 1196 | #define IDirect3DQuery9_Release(p) (p)->Release() |
| 1197 | /*** IDirect3DQuery9 ***/ |
| 1198 | #define IDirect3DQuery9_GetDevice(p,a) (p)->GetDevice(a) |
| 1199 | #define IDirect3DQuery9_GetType(p) (p)->GetType() |
| 1200 | #define IDirect3DQuery9_GetDataSize(p) (p)->GetDataSize() |
| 1201 | #define IDirect3DQuery9_Issue(p,a) (p)->Issue(a) |
| 1202 | #define IDirect3DQuery9_GetData(p,a,b,c) (p)->GetData(a,b,c) |
| 1203 | #endif |
| 1204 | |
| 1205 | /***************************************************************************** |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 1206 | * IDirect3DDevice9 interface |
| 1207 | */ |
| 1208 | #define INTERFACE IDirect3DDevice9 |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 1209 | DECLARE_INTERFACE_(IDirect3DDevice9,IUnknown) |
| 1210 | { |
| 1211 | /*** IUnknown methods ***/ |
| 1212 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1213 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1214 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1215 | /*** IDirect3DDevice9 methods ***/ |
| 1216 | STDMETHOD(TestCooperativeLevel)(THIS) PURE; |
| 1217 | STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE; |
| 1218 | STDMETHOD(EvictManagedResources)(THIS) PURE; |
| 1219 | STDMETHOD(GetDirect3D)(THIS_ IDirect3D9** ppD3D9) PURE; |
| 1220 | STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS9* pCaps) PURE; |
| 1221 | STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain, D3DDISPLAYMODE* pMode) PURE; |
| 1222 | STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE; |
| 1223 | STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9* pCursorBitmap) PURE; |
| 1224 | STDMETHOD_(void, SetCursorPosition)(THIS_ int X,int Y, DWORD Flags) PURE; |
| 1225 | STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE; |
| 1226 | STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DSwapChain9** pSwapChain) PURE; |
| 1227 | STDMETHOD(GetSwapChain)(THIS_ UINT iSwapChain, IDirect3DSwapChain9** pSwapChain) PURE; |
| 1228 | STDMETHOD_(UINT, GetNumberOfSwapChains)(THIS) PURE; |
| 1229 | STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE; |
| 1230 | STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect, CONST RECT* pDestRect, HWND hDestWindowOverride, CONST RGNDATA* pDirtyRegion) PURE; |
| 1231 | STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer) PURE; |
| 1232 | STDMETHOD(GetRasterStatus)(THIS_ UINT iSwapChain, D3DRASTER_STATUS* pRasterStatus) PURE; |
| 1233 | STDMETHOD(SetDialogBoxMode)(THIS_ BOOL bEnableDialogs) PURE; |
| 1234 | STDMETHOD_(void, SetGammaRamp)(THIS_ UINT iSwapChain, DWORD Flags, CONST D3DGAMMARAMP* pRamp) PURE; |
| 1235 | STDMETHOD_(void, GetGammaRamp)(THIS_ UINT iSwapChain, D3DGAMMARAMP* pRamp) PURE; |
| 1236 | STDMETHOD(CreateTexture)(THIS_ UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture, HANDLE* pSharedHandle) PURE; |
| 1237 | STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9** ppVolumeTexture, HANDLE* pSharedHandle) PURE; |
| 1238 | STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9** ppCubeTexture, HANDLE* pSharedHandle) PURE; |
| 1239 | STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9** ppVertexBuffer, HANDLE* pSharedHandle) PURE; |
| 1240 | STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9** ppIndexBuffer, HANDLE* pSharedHandle) PURE; |
| 1241 | STDMETHOD(CreateRenderTarget)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE; |
| 1242 | STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE; |
| 1243 | STDMETHOD(UpdateSurface)(THIS_ IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestinationSurface, CONST POINT* pDestPoint) PURE; |
| 1244 | STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture9* pSourceTexture, IDirect3DBaseTexture9* pDestinationTexture) PURE; |
| 1245 | STDMETHOD(GetRenderTargetData)(THIS_ IDirect3DSurface9* pRenderTarget, IDirect3DSurface9* pDestSurface) PURE; |
| 1246 | STDMETHOD(GetFrontBufferData)(THIS_ UINT iSwapChain, IDirect3DSurface9* pDestSurface) PURE; |
| 1247 | STDMETHOD(StretchRect)(THIS_ IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestSurface, CONST RECT* pDestRect, D3DTEXTUREFILTERTYPE Filter) PURE; |
| 1248 | STDMETHOD(ColorFill)(THIS_ IDirect3DSurface9* pSurface, CONST RECT* pRect, D3DCOLOR color) PURE; |
| 1249 | STDMETHOD(CreateOffscreenPlainSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE; |
| 1250 | STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9* pRenderTarget) PURE; |
| 1251 | STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9** ppRenderTarget) PURE; |
| 1252 | STDMETHOD(SetDepthStencilSurface)(THIS_ IDirect3DSurface9* pNewZStencil) PURE; |
| 1253 | STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface9** ppZStencilSurface) PURE; |
| 1254 | STDMETHOD(BeginScene)(THIS) PURE; |
| 1255 | STDMETHOD(EndScene)(THIS) PURE; |
| 1256 | STDMETHOD(Clear)(THIS_ DWORD Count, CONST D3DRECT* pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil) PURE; |
| 1257 | STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* pMatrix) PURE; |
| 1258 | STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix) PURE; |
| 1259 | STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE, CONST D3DMATRIX*) PURE; |
| 1260 | STDMETHOD(SetViewport)(THIS_ CONST D3DVIEWPORT9* pViewport) PURE; |
| 1261 | STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT9* pViewport) PURE; |
| 1262 | STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL9* pMaterial) PURE; |
| 1263 | STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL9* pMaterial) PURE; |
| 1264 | STDMETHOD(SetLight)(THIS_ DWORD Index, CONST D3DLIGHT9*) PURE; |
| 1265 | STDMETHOD(GetLight)(THIS_ DWORD Index, D3DLIGHT9*) PURE; |
| 1266 | STDMETHOD(LightEnable)(THIS_ DWORD Index, BOOL Enable) PURE; |
| 1267 | STDMETHOD(GetLightEnable)(THIS_ DWORD Index, BOOL* pEnable) PURE; |
| 1268 | STDMETHOD(SetClipPlane)(THIS_ DWORD Index, CONST float* pPlane) PURE; |
| 1269 | STDMETHOD(GetClipPlane)(THIS_ DWORD Index, float* pPlane) PURE; |
| 1270 | STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD Value) PURE; |
| 1271 | STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD* pValue) PURE; |
| 1272 | STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9** ppSB) PURE; |
| 1273 | STDMETHOD(BeginStateBlock)(THIS) PURE; |
| 1274 | STDMETHOD(EndStateBlock)(THIS_ IDirect3DStateBlock9** ppSB) PURE; |
| 1275 | STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS9* pClipStatus) PURE; |
| 1276 | STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS9* pClipStatus) PURE; |
| 1277 | STDMETHOD(GetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9** ppTexture) PURE; |
| 1278 | STDMETHOD(SetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9* pTexture) PURE; |
| 1279 | STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD* pValue) PURE; |
| 1280 | STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) PURE; |
| 1281 | STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD* pValue) PURE; |
| 1282 | STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) PURE; |
| 1283 | STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE; |
| 1284 | STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber, CONST PALETTEENTRY* pEntries) PURE; |
| 1285 | STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE; |
| 1286 | STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE; |
| 1287 | STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE; |
| 1288 | STDMETHOD(SetScissorRect)(THIS_ CONST RECT* pRect) PURE; |
| 1289 | STDMETHOD(GetScissorRect)(THIS_ RECT* pRect) PURE; |
| 1290 | STDMETHOD(SetSoftwareVertexProcessing)(THIS_ BOOL bSoftware) PURE; |
| 1291 | STDMETHOD_(BOOL, GetSoftwareVertexProcessing)(THIS) PURE; |
| 1292 | STDMETHOD(SetNPatchMode)(THIS_ float nSegments) PURE; |
| 1293 | STDMETHOD_(float, GetNPatchMode)(THIS) PURE; |
| 1294 | STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) PURE; |
| 1295 | STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount) PURE; |
| 1296 | STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride) PURE; |
| 1297 | STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertices, UINT PrimitiveCount, CONST void* pIndexData, D3DFORMAT IndexDataFormat, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride) PURE; |
| 1298 | STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9* pDestBuffer, IDirect3DVertexDeclaration9* pVertexDecl, DWORD Flags) PURE; |
| 1299 | STDMETHOD(CreateVertexDeclaration)(THIS_ CONST D3DVERTEXELEMENT9* pVertexElements, IDirect3DVertexDeclaration9** ppDecl) PURE; |
| 1300 | STDMETHOD(SetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9* pDecl) PURE; |
| 1301 | STDMETHOD(GetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9** ppDecl) PURE; |
| 1302 | STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE; |
| 1303 | STDMETHOD(GetFVF)(THIS_ DWORD* pFVF) PURE; |
| 1304 | STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD* pFunction, IDirect3DVertexShader9** ppShader) PURE; |
| 1305 | STDMETHOD(SetVertexShader)(THIS_ IDirect3DVertexShader9* pShader) PURE; |
| 1306 | STDMETHOD(GetVertexShader)(THIS_ IDirect3DVertexShader9** ppShader) PURE; |
| 1307 | STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) PURE; |
| 1308 | STDMETHOD(GetVertexShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE; |
| 1309 | STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) PURE; |
| 1310 | STDMETHOD(GetVertexShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE; |
| 1311 | STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) PURE; |
| 1312 | STDMETHOD(GetVertexShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE; |
| 1313 | STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9* pStreamData, UINT OffsetInBytes, UINT Stride) PURE; |
| 1314 | STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9** ppStreamData, UINT* OffsetInBytes, UINT* pStride) PURE; |
| 1315 | STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT Divider) PURE; |
| 1316 | STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT* Divider) PURE; |
| 1317 | STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer9* pIndexData) PURE; |
| 1318 | STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer9** ppIndexData) PURE; |
| 1319 | STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD* pFunction, IDirect3DPixelShader9** ppShader) PURE; |
| 1320 | STDMETHOD(SetPixelShader)(THIS_ IDirect3DPixelShader9* pShader) PURE; |
| 1321 | STDMETHOD(GetPixelShader)(THIS_ IDirect3DPixelShader9** ppShader) PURE; |
| 1322 | STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) PURE; |
| 1323 | STDMETHOD(GetPixelShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE; |
| 1324 | STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) PURE; |
| 1325 | STDMETHOD(GetPixelShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE; |
| 1326 | STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) PURE; |
| 1327 | STDMETHOD(GetPixelShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE; |
| 1328 | STDMETHOD(DrawRectPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST D3DRECTPATCH_INFO* pRectPatchInfo) PURE; |
| 1329 | STDMETHOD(DrawTriPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST D3DTRIPATCH_INFO* pTriPatchInfo) PURE; |
| 1330 | STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 1331 | STDMETHOD(CreateQuery)(THIS_ D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery) PURE; |
Alexandre Julliard | 5d0160e | 2004-10-05 04:38:15 +0000 | [diff] [blame] | 1332 | }; |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 1333 | #undef INTERFACE |
| 1334 | |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1335 | #if !defined(__cplusplus) || defined(CINTERFACE) |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 1336 | /*** IUnknown methods ***/ |
| 1337 | #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1338 | #define IDirect3DDevice9_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1339 | #define IDirect3DDevice9_Release(p) (p)->lpVtbl->Release(p) |
| 1340 | /*** IDirect3DDevice9 methods ***/ |
| 1341 | #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p) |
| 1342 | #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p) |
| 1343 | #define IDirect3DDevice9_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p) |
| 1344 | #define IDirect3DDevice9_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) |
| 1345 | #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a) |
| 1346 | #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b) |
| 1347 | #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a) |
| 1348 | #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c) |
| 1349 | #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c) |
| 1350 | #define IDirect3DDevice9_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a) |
| 1351 | #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b) |
| 1352 | #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b) |
| 1353 | #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p) |
| 1354 | #define IDirect3DDevice9_Reset(p,a) (p)->lpVtbl->Reset(p,a) |
| 1355 | #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d) |
| 1356 | #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d) |
| 1357 | #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b) |
| 1358 | #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a) |
| 1359 | #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c) |
| 1360 | #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b) |
| 1361 | #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h) |
| 1362 | #define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) |
| 1363 | #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g) |
| 1364 | #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f) |
| 1365 | #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f) |
| 1366 | #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h) |
| 1367 | #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) |
| 1368 | #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d) |
| 1369 | #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b) |
| 1370 | #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b) |
| 1371 | #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b) |
| 1372 | #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e) |
| 1373 | #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c) |
| 1374 | #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f) |
| 1375 | #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) |
| 1376 | #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b) |
| 1377 | #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a) |
| 1378 | #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a) |
| 1379 | #define IDirect3DDevice9_BeginScene(p) (p)->lpVtbl->BeginScene(p) |
| 1380 | #define IDirect3DDevice9_EndScene(p) (p)->lpVtbl->EndScene(p) |
| 1381 | #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f) |
| 1382 | #define IDirect3DDevice9_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) |
| 1383 | #define IDirect3DDevice9_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) |
| 1384 | #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) |
| 1385 | #define IDirect3DDevice9_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) |
| 1386 | #define IDirect3DDevice9_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) |
| 1387 | #define IDirect3DDevice9_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) |
| 1388 | #define IDirect3DDevice9_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) |
| 1389 | #define IDirect3DDevice9_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b) |
| 1390 | #define IDirect3DDevice9_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b) |
| 1391 | #define IDirect3DDevice9_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b) |
| 1392 | #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b) |
| 1393 | #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b) |
| 1394 | #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b) |
| 1395 | #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) |
| 1396 | #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) |
| 1397 | #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b) |
| 1398 | #define IDirect3DDevice9_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p) |
| 1399 | #define IDirect3DDevice9_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a) |
| 1400 | #define IDirect3DDevice9_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) |
| 1401 | #define IDirect3DDevice9_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) |
| 1402 | #define IDirect3DDevice9_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b) |
| 1403 | #define IDirect3DDevice9_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b) |
| 1404 | #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c) |
| 1405 | #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c) |
| 1406 | #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c) |
| 1407 | #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c) |
| 1408 | #define IDirect3DDevice9_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a) |
| 1409 | #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b) |
| 1410 | #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b) |
| 1411 | #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a) |
| 1412 | #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a) |
| 1413 | #define IDirect3DDevice9_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a) |
| 1414 | #define IDirect3DDevice9_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a) |
| 1415 | #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a) |
| 1416 | #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p) |
| 1417 | #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a) |
| 1418 | #define IDirect3DDevice9_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p) |
| 1419 | #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c) |
| 1420 | #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f) |
| 1421 | #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d) |
| 1422 | #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) |
| 1423 | #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f) |
| 1424 | #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b) |
| 1425 | #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a) |
| 1426 | #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a) |
| 1427 | #define IDirect3DDevice9_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a) |
| 1428 | #define IDirect3DDevice9_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a) |
| 1429 | #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b) |
| 1430 | #define IDirect3DDevice9_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a) |
| 1431 | #define IDirect3DDevice9_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a) |
| 1432 | #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c) |
| 1433 | #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c) |
| 1434 | #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c) |
| 1435 | #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c) |
| 1436 | #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c) |
| 1437 | #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c) |
| 1438 | #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d) |
| 1439 | #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d) |
| 1440 | #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b) |
| 1441 | #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b) |
| 1442 | #define IDirect3DDevice9_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a) |
| 1443 | #define IDirect3DDevice9_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a) |
| 1444 | #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b) |
| 1445 | #define IDirect3DDevice9_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a) |
| 1446 | #define IDirect3DDevice9_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a) |
| 1447 | #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c) |
| 1448 | #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c) |
| 1449 | #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c) |
| 1450 | #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c) |
| 1451 | #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c) |
| 1452 | #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c) |
| 1453 | #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c) |
| 1454 | #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c) |
| 1455 | #define IDirect3DDevice9_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a) |
| 1456 | #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b) |
Francois Gouget | 179dc25 | 2004-10-04 19:39:32 +0000 | [diff] [blame] | 1457 | #else |
| 1458 | /*** IUnknown methods ***/ |
| 1459 | #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1460 | #define IDirect3DDevice9_AddRef(p) (p)->AddRef() |
| 1461 | #define IDirect3DDevice9_Release(p) (p)->Release() |
| 1462 | /*** IDirect3DDevice9 methods ***/ |
| 1463 | #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->TestCooperativeLevel() |
| 1464 | #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem() |
| 1465 | #define IDirect3DDevice9_EvictManagedResources(p) (p)->EvictManagedResources() |
| 1466 | #define IDirect3DDevice9_GetDirect3D(p,a) (p)->GetDirect3D(a) |
| 1467 | #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a) |
| 1468 | #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b) |
| 1469 | #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->GetCreationParameters(a) |
| 1470 | #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c) |
| 1471 | #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c) |
| 1472 | #define IDirect3DDevice9_ShowCursor(p,a) (p)->ShowCursor(a) |
| 1473 | #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b) |
| 1474 | #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b) |
| 1475 | #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains() |
| 1476 | #define IDirect3DDevice9_Reset(p,a) (p)->Reset(a) |
| 1477 | #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->Present(a,b,c,d) |
| 1478 | #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d) |
| 1479 | #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b) |
| 1480 | #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a) |
| 1481 | #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c) |
| 1482 | #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b) |
| 1483 | #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h) |
| 1484 | #define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i) |
| 1485 | #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g) |
| 1486 | #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f) |
| 1487 | #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f) |
| 1488 | #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h) |
| 1489 | #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h) |
| 1490 | #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d) |
| 1491 | #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b) |
| 1492 | #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b) |
| 1493 | #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b) |
| 1494 | #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e) |
| 1495 | #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c) |
| 1496 | #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f) |
| 1497 | #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) |
| 1498 | #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b) |
| 1499 | #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a) |
| 1500 | #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a) |
| 1501 | #define IDirect3DDevice9_BeginScene(p) (p)->BeginScene() |
| 1502 | #define IDirect3DDevice9_EndScene(p) (p)->EndScene() |
| 1503 | #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f) |
| 1504 | #define IDirect3DDevice9_SetTransform(p,a,b) (p)->SetTransform(a,b) |
| 1505 | #define IDirect3DDevice9_GetTransform(p,a,b) (p)->GetTransform(a,b) |
| 1506 | #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) |
| 1507 | #define IDirect3DDevice9_SetViewport(p,a) (p)->SetViewport(a) |
| 1508 | #define IDirect3DDevice9_GetViewport(p,a) (p)->GetViewport(a) |
| 1509 | #define IDirect3DDevice9_SetMaterial(p,a) (p)->SetMaterial(a) |
| 1510 | #define IDirect3DDevice9_GetMaterial(p,a) (p)->GetMaterial(a) |
| 1511 | #define IDirect3DDevice9_SetLight(p,a,b) (p)->SetLight(a,b) |
| 1512 | #define IDirect3DDevice9_GetLight(p,a,b) (p)->GetLight(a,b) |
| 1513 | #define IDirect3DDevice9_LightEnable(p,a,b) (p)->LightEnable(a,b) |
| 1514 | #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b) |
| 1515 | #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b) |
| 1516 | #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b) |
| 1517 | #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->SetRenderState(a,b) |
| 1518 | #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->GetRenderState(a,b) |
| 1519 | #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b) |
| 1520 | #define IDirect3DDevice9_BeginStateBlock(p) (p)->BeginStateBlock() |
| 1521 | #define IDirect3DDevice9_EndStateBlock(p,a) (p)->EndStateBlock(a) |
| 1522 | #define IDirect3DDevice9_SetClipStatus(p,a) (p)->SetClipStatus(a) |
| 1523 | #define IDirect3DDevice9_GetClipStatus(p,a) (p)->GetClipStatus(a) |
| 1524 | #define IDirect3DDevice9_GetTexture(p,a,b) (p)->GetTexture(a,b) |
| 1525 | #define IDirect3DDevice9_SetTexture(p,a,b) (p)->SetTexture(a,b) |
| 1526 | #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c) |
| 1527 | #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c) |
| 1528 | #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c) |
| 1529 | #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c) |
| 1530 | #define IDirect3DDevice9_ValidateDevice(p,a) (p)->ValidateDevice(a) |
| 1531 | #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b) |
| 1532 | #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b) |
| 1533 | #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a) |
| 1534 | #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a) |
| 1535 | #define IDirect3DDevice9_SetScissorRect(p,a) (p)->SetScissorRect(a) |
| 1536 | #define IDirect3DDevice9_GetScissorRect(p,a) (p)->GetScissorRect(a) |
| 1537 | #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a) |
| 1538 | #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing() |
| 1539 | #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->SetNPatchMode(a) |
| 1540 | #define IDirect3DDevice9_GetNPatchMode(p) (p)->GetNPatchMode() |
| 1541 | #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c) |
| 1542 | #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f) |
| 1543 | #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d) |
| 1544 | #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h) |
| 1545 | #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f) |
| 1546 | #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b) |
| 1547 | #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a) |
| 1548 | #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a) |
| 1549 | #define IDirect3DDevice9_SetFVF(p,a) (p)->SetFVF(a) |
| 1550 | #define IDirect3DDevice9_GetFVF(p,a) (p)->GetFVF(a) |
| 1551 | #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b) |
| 1552 | #define IDirect3DDevice9_SetVertexShader(p,a) (p)->SetVertexShader(a) |
| 1553 | #define IDirect3DDevice9_GetVertexShader(p,a) (p)->GetVertexShader(a) |
| 1554 | #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c) |
| 1555 | #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c) |
| 1556 | #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c) |
| 1557 | #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c) |
| 1558 | #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c) |
| 1559 | #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c) |
| 1560 | #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d) |
| 1561 | #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d) |
| 1562 | #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b) |
| 1563 | #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b) |
| 1564 | #define IDirect3DDevice9_SetIndices(p,a) (p)->SetIndices(a) |
| 1565 | #define IDirect3DDevice9_GetIndices(p,a) (p)->GetIndices(a) |
| 1566 | #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b) |
| 1567 | #define IDirect3DDevice9_SetPixelShader(p,a) (p)->SetPixelShader(a) |
| 1568 | #define IDirect3DDevice9_GetPixelShader(p,a) (p)->GetPixelShader(a) |
| 1569 | #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c) |
| 1570 | #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c) |
| 1571 | #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c) |
| 1572 | #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c) |
| 1573 | #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c) |
| 1574 | #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c) |
| 1575 | #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c) |
| 1576 | #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c) |
| 1577 | #define IDirect3DDevice9_DeletePatch(p,a) (p)->DeletePatch(a) |
| 1578 | #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->CreateQuery(a,b) |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 1579 | #endif |
| 1580 | |
Francois Gouget | 69bc2af | 2007-08-03 00:53:44 +0200 | [diff] [blame] | 1581 | |
Stefan Dösinger | 90a654a | 2008-02-23 17:57:53 +0100 | [diff] [blame] | 1582 | /***************************************************************************** |
| 1583 | * IDirect3DDevice9Ex interface |
| 1584 | */ |
| 1585 | #define INTERFACE IDirect3DDevice9Ex |
| 1586 | DECLARE_INTERFACE_(IDirect3DDevice9Ex,IDirect3DDevice9) |
| 1587 | { |
| 1588 | /*** IUnknown methods ***/ |
| 1589 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; |
| 1590 | STDMETHOD_(ULONG,AddRef)(THIS) PURE; |
| 1591 | STDMETHOD_(ULONG,Release)(THIS) PURE; |
| 1592 | /*** IDirect3DDevice9 methods ***/ |
| 1593 | STDMETHOD(TestCooperativeLevel)(THIS) PURE; |
| 1594 | STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE; |
| 1595 | STDMETHOD(EvictManagedResources)(THIS) PURE; |
| 1596 | STDMETHOD(GetDirect3D)(THIS_ IDirect3D9** ppD3D9) PURE; |
| 1597 | STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS9* pCaps) PURE; |
| 1598 | STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain, D3DDISPLAYMODE* pMode) PURE; |
| 1599 | STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE; |
| 1600 | STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, IDirect3DSurface9* pCursorBitmap) PURE; |
| 1601 | STDMETHOD_(void, SetCursorPosition)(THIS_ int X,int Y, DWORD Flags) PURE; |
| 1602 | STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE; |
| 1603 | STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DSwapChain9** pSwapChain) PURE; |
| 1604 | STDMETHOD(GetSwapChain)(THIS_ UINT iSwapChain, IDirect3DSwapChain9** pSwapChain) PURE; |
| 1605 | STDMETHOD_(UINT, GetNumberOfSwapChains)(THIS) PURE; |
| 1606 | STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE; |
| 1607 | STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect, CONST RECT* pDestRect, HWND hDestWindowOverride, CONST RGNDATA* pDirtyRegion) PURE; |
| 1608 | STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain, UINT iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer) PURE; |
| 1609 | STDMETHOD(GetRasterStatus)(THIS_ UINT iSwapChain, D3DRASTER_STATUS* pRasterStatus) PURE; |
| 1610 | STDMETHOD(SetDialogBoxMode)(THIS_ BOOL bEnableDialogs) PURE; |
| 1611 | STDMETHOD_(void, SetGammaRamp)(THIS_ UINT iSwapChain, DWORD Flags, CONST D3DGAMMARAMP* pRamp) PURE; |
| 1612 | STDMETHOD_(void, GetGammaRamp)(THIS_ UINT iSwapChain, D3DGAMMARAMP* pRamp) PURE; |
| 1613 | STDMETHOD(CreateTexture)(THIS_ UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture, HANDLE* pSharedHandle) PURE; |
| 1614 | STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9** ppVolumeTexture, HANDLE* pSharedHandle) PURE; |
| 1615 | STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9** ppCubeTexture, HANDLE* pSharedHandle) PURE; |
| 1616 | STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9** ppVertexBuffer, HANDLE* pSharedHandle) PURE; |
| 1617 | STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9** ppIndexBuffer, HANDLE* pSharedHandle) PURE; |
| 1618 | STDMETHOD(CreateRenderTarget)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE; |
| 1619 | STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE; |
| 1620 | STDMETHOD(UpdateSurface)(THIS_ IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestinationSurface, CONST POINT* pDestPoint) PURE; |
| 1621 | STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture9* pSourceTexture, IDirect3DBaseTexture9* pDestinationTexture) PURE; |
| 1622 | STDMETHOD(GetRenderTargetData)(THIS_ IDirect3DSurface9* pRenderTarget, IDirect3DSurface9* pDestSurface) PURE; |
| 1623 | STDMETHOD(GetFrontBufferData)(THIS_ UINT iSwapChain, IDirect3DSurface9* pDestSurface) PURE; |
| 1624 | STDMETHOD(StretchRect)(THIS_ IDirect3DSurface9* pSourceSurface, CONST RECT* pSourceRect, IDirect3DSurface9* pDestSurface, CONST RECT* pDestRect, D3DTEXTUREFILTERTYPE Filter) PURE; |
| 1625 | STDMETHOD(ColorFill)(THIS_ IDirect3DSurface9* pSurface, CONST RECT* pRect, D3DCOLOR color) PURE; |
| 1626 | STDMETHOD(CreateOffscreenPlainSurface)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle) PURE; |
| 1627 | STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9* pRenderTarget) PURE; |
| 1628 | STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex, IDirect3DSurface9** ppRenderTarget) PURE; |
| 1629 | STDMETHOD(SetDepthStencilSurface)(THIS_ IDirect3DSurface9* pNewZStencil) PURE; |
| 1630 | STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface9** ppZStencilSurface) PURE; |
| 1631 | STDMETHOD(BeginScene)(THIS) PURE; |
| 1632 | STDMETHOD(EndScene)(THIS) PURE; |
| 1633 | STDMETHOD(Clear)(THIS_ DWORD Count, CONST D3DRECT* pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil) PURE; |
| 1634 | STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* pMatrix) PURE; |
| 1635 | STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix) PURE; |
| 1636 | STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE, CONST D3DMATRIX*) PURE; |
| 1637 | STDMETHOD(SetViewport)(THIS_ CONST D3DVIEWPORT9* pViewport) PURE; |
| 1638 | STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT9* pViewport) PURE; |
| 1639 | STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL9* pMaterial) PURE; |
| 1640 | STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL9* pMaterial) PURE; |
| 1641 | STDMETHOD(SetLight)(THIS_ DWORD Index, CONST D3DLIGHT9*) PURE; |
| 1642 | STDMETHOD(GetLight)(THIS_ DWORD Index, D3DLIGHT9*) PURE; |
| 1643 | STDMETHOD(LightEnable)(THIS_ DWORD Index, BOOL Enable) PURE; |
| 1644 | STDMETHOD(GetLightEnable)(THIS_ DWORD Index, BOOL* pEnable) PURE; |
| 1645 | STDMETHOD(SetClipPlane)(THIS_ DWORD Index, CONST float* pPlane) PURE; |
| 1646 | STDMETHOD(GetClipPlane)(THIS_ DWORD Index, float* pPlane) PURE; |
| 1647 | STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD Value) PURE; |
| 1648 | STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD* pValue) PURE; |
| 1649 | STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9** ppSB) PURE; |
| 1650 | STDMETHOD(BeginStateBlock)(THIS) PURE; |
| 1651 | STDMETHOD(EndStateBlock)(THIS_ IDirect3DStateBlock9** ppSB) PURE; |
| 1652 | STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS9* pClipStatus) PURE; |
| 1653 | STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS9* pClipStatus) PURE; |
| 1654 | STDMETHOD(GetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9** ppTexture) PURE; |
| 1655 | STDMETHOD(SetTexture)(THIS_ DWORD Stage, IDirect3DBaseTexture9* pTexture) PURE; |
| 1656 | STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD* pValue) PURE; |
| 1657 | STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) PURE; |
| 1658 | STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD* pValue) PURE; |
| 1659 | STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) PURE; |
| 1660 | STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE; |
| 1661 | STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber, CONST PALETTEENTRY* pEntries) PURE; |
| 1662 | STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE; |
| 1663 | STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE; |
| 1664 | STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE; |
| 1665 | STDMETHOD(SetScissorRect)(THIS_ CONST RECT* pRect) PURE; |
| 1666 | STDMETHOD(GetScissorRect)(THIS_ RECT* pRect) PURE; |
| 1667 | STDMETHOD(SetSoftwareVertexProcessing)(THIS_ BOOL bSoftware) PURE; |
| 1668 | STDMETHOD_(BOOL, GetSoftwareVertexProcessing)(THIS) PURE; |
| 1669 | STDMETHOD(SetNPatchMode)(THIS_ float nSegments) PURE; |
| 1670 | STDMETHOD_(float, GetNPatchMode)(THIS) PURE; |
| 1671 | STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) PURE; |
| 1672 | STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount) PURE; |
| 1673 | STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride) PURE; |
| 1674 | STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertices, UINT PrimitiveCount, CONST void* pIndexData, D3DFORMAT IndexDataFormat, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride) PURE; |
| 1675 | STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9* pDestBuffer, IDirect3DVertexDeclaration9* pVertexDecl, DWORD Flags) PURE; |
| 1676 | STDMETHOD(CreateVertexDeclaration)(THIS_ CONST D3DVERTEXELEMENT9* pVertexElements, IDirect3DVertexDeclaration9** ppDecl) PURE; |
| 1677 | STDMETHOD(SetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9* pDecl) PURE; |
| 1678 | STDMETHOD(GetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9** ppDecl) PURE; |
| 1679 | STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE; |
| 1680 | STDMETHOD(GetFVF)(THIS_ DWORD* pFVF) PURE; |
| 1681 | STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD* pFunction, IDirect3DVertexShader9** ppShader) PURE; |
| 1682 | STDMETHOD(SetVertexShader)(THIS_ IDirect3DVertexShader9* pShader) PURE; |
| 1683 | STDMETHOD(GetVertexShader)(THIS_ IDirect3DVertexShader9** ppShader) PURE; |
| 1684 | STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) PURE; |
| 1685 | STDMETHOD(GetVertexShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE; |
| 1686 | STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) PURE; |
| 1687 | STDMETHOD(GetVertexShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE; |
| 1688 | STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) PURE; |
| 1689 | STDMETHOD(GetVertexShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE; |
| 1690 | STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9* pStreamData, UINT OffsetInBytes, UINT Stride) PURE; |
| 1691 | STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber, IDirect3DVertexBuffer9** ppStreamData, UINT* OffsetInBytes, UINT* pStride) PURE; |
| 1692 | STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT Divider) PURE; |
| 1693 | STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT* Divider) PURE; |
| 1694 | STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer9* pIndexData) PURE; |
| 1695 | STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer9** ppIndexData) PURE; |
| 1696 | STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD* pFunction, IDirect3DPixelShader9** ppShader) PURE; |
| 1697 | STDMETHOD(SetPixelShader)(THIS_ IDirect3DPixelShader9* pShader) PURE; |
| 1698 | STDMETHOD(GetPixelShader)(THIS_ IDirect3DPixelShader9** ppShader) PURE; |
| 1699 | STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) PURE; |
| 1700 | STDMETHOD(GetPixelShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE; |
| 1701 | STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) PURE; |
| 1702 | STDMETHOD(GetPixelShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE; |
| 1703 | STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) PURE; |
| 1704 | STDMETHOD(GetPixelShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE; |
| 1705 | STDMETHOD(DrawRectPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST D3DRECTPATCH_INFO* pRectPatchInfo) PURE; |
| 1706 | STDMETHOD(DrawTriPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST D3DTRIPATCH_INFO* pTriPatchInfo) PURE; |
| 1707 | STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE; |
| 1708 | STDMETHOD(CreateQuery)(THIS_ D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery) PURE; |
| 1709 | /* IDirect3DDevice9Ex methods */ |
| 1710 | STDMETHOD(SetConvolutionMonoKernel)(THIS_ UINT width, UINT height, float *rows, float *columns) PURE; |
| 1711 | STDMETHOD(ComposeRects)(THIS_ IDirect3DSurface9 *pSrc, IDirect3DDevice9 *pDst, IDirect3DVertexBuffer9 *pSrcRectDescs, UINT NumRects, IDirect3DVertexBuffer9 *pDstRectDescs, D3DCOMPOSERECTSOP Operation, int Xoffset, int Yoffset) PURE; |
| 1712 | STDMETHOD(PresentEx)(THIS_ CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion, DWORD dwFlags) PURE; |
| 1713 | STDMETHOD(GetGPUThreadPriority)(THIS_ INT *pPriority) PURE; |
| 1714 | STDMETHOD(SetGPUThreadPriority)(THIS_ INT Priority) PURE; |
| 1715 | STDMETHOD(WaitForVBlank)(THIS_ UINT iSwapChain) PURE; |
| 1716 | STDMETHOD(CheckresourceResidency)(THIS_ IDirect3DResource9 ** pResourceArray, UINT32 Numresources) PURE; |
| 1717 | STDMETHOD(SetMaximumFrameLatency)(THIS_ UINT MaxLatency) PURE; |
| 1718 | STDMETHOD(GetMaximumFrameLatency)(THIS_ UINT *pMaxLatenxy) PURE; |
| 1719 | STDMETHOD(CheckdeviceState)(THIS_ HWND hDestinationWindow) PURE; |
| 1720 | STDMETHOD(CreateRenderTargetEx)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultiSampleQuality, BOOL Lockable, IDirect3DSurface9 ** ppSurface, HANDLE *pSharedHandle, DWORD Usage) PURE; |
| 1721 | STDMETHOD(CreateOffscreenPlainSurfaceEx)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9 **ppSurface, HANDLE *pSharedHandle, DWORD Usage) PURE; |
| 1722 | STDMETHOD(CreateDepthStencilSurfaceEx)(THIS_ UINT Width, UINT Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultiSampleQuality, BOOL Discard, IDirect3DSurface9 **ppSurfface, HANDLE *pSharedHandle, DWORD Usage) PURE; |
| 1723 | STDMETHOD(ResetEx)(THIS_ D3DPRESENT_PARAMETERS *pPresentationParameters, D3DDISPLAYMODEEX *pFullscreenDisplayMode) PURE; |
| 1724 | STDMETHOD(GetDisplayModeEx)(THIS_ UINT iSwapChain, D3DDISPLAYMODEEX *pMode, D3DDISPLAYROTATION *pRotation) PURE; |
| 1725 | }; |
| 1726 | #undef INTERFACE |
| 1727 | |
| 1728 | #if !defined(__cplusplus) || defined(CINTERFACE) |
| 1729 | /*** IUnknown methods ***/ |
| 1730 | #define IDirect3DDevice9Ex_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) |
| 1731 | #define IDirect3DDevice9Ex_AddRef(p) (p)->lpVtbl->AddRef(p) |
| 1732 | #define IDirect3DDevice9Ex_Release(p) (p)->lpVtbl->Release(p) |
| 1733 | /*** IDirect3DDevice9 methods ***/ |
| 1734 | #define IDirect3DDevice9Ex_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p) |
| 1735 | #define IDirect3DDevice9Ex_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p) |
| 1736 | #define IDirect3DDevice9Ex_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p) |
| 1737 | #define IDirect3DDevice9Ex_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) |
| 1738 | #define IDirect3DDevice9Ex_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a) |
| 1739 | #define IDirect3DDevice9Ex_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b) |
| 1740 | #define IDirect3DDevice9Ex_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a) |
| 1741 | #define IDirect3DDevice9Ex_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c) |
| 1742 | #define IDirect3DDevice9Ex_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c) |
| 1743 | #define IDirect3DDevice9Ex_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a) |
| 1744 | #define IDirect3DDevice9Ex_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b) |
| 1745 | #define IDirect3DDevice9Ex_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b) |
| 1746 | #define IDirect3DDevice9Ex_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p) |
| 1747 | #define IDirect3DDevice9Ex_Reset(p,a) (p)->lpVtbl->Reset(p,a) |
| 1748 | #define IDirect3DDevice9Ex_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d) |
| 1749 | #define IDirect3DDevice9Ex_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d) |
| 1750 | #define IDirect3DDevice9Ex_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b) |
| 1751 | #define IDirect3DDevice9Ex_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a) |
| 1752 | #define IDirect3DDevice9Ex_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c) |
| 1753 | #define IDirect3DDevice9Ex_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b) |
| 1754 | #define IDirect3DDevice9Ex_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h) |
| 1755 | #define IDirect3DDevice9Ex_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) |
| 1756 | #define IDirect3DDevice9Ex_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g) |
| 1757 | #define IDirect3DDevice9Ex_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f) |
| 1758 | #define IDirect3DDevice9Ex_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f) |
| 1759 | #define IDirect3DDevice9Ex_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h) |
| 1760 | #define IDirect3DDevice9Ex_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) |
| 1761 | #define IDirect3DDevice9Ex_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d) |
| 1762 | #define IDirect3DDevice9Ex_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b) |
| 1763 | #define IDirect3DDevice9Ex_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b) |
| 1764 | #define IDirect3DDevice9Ex_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b) |
| 1765 | #define IDirect3DDevice9Ex_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e) |
| 1766 | #define IDirect3DDevice9Ex_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c) |
| 1767 | #define IDirect3DDevice9Ex_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f) |
| 1768 | #define IDirect3DDevice9Ex_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) |
| 1769 | #define IDirect3DDevice9Ex_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b) |
| 1770 | #define IDirect3DDevice9Ex_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a) |
| 1771 | #define IDirect3DDevice9Ex_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a) |
| 1772 | #define IDirect3DDevice9Ex_BeginScene(p) (p)->lpVtbl->BeginScene(p) |
| 1773 | #define IDirect3DDevice9Ex_EndScene(p) (p)->lpVtbl->EndScene(p) |
| 1774 | #define IDirect3DDevice9Ex_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f) |
| 1775 | #define IDirect3DDevice9Ex_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) |
| 1776 | #define IDirect3DDevice9Ex_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) |
| 1777 | #define IDirect3DDevice9Ex_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) |
| 1778 | #define IDirect3DDevice9Ex_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) |
| 1779 | #define IDirect3DDevice9Ex_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) |
| 1780 | #define IDirect3DDevice9Ex_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) |
| 1781 | #define IDirect3DDevice9Ex_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) |
| 1782 | #define IDirect3DDevice9Ex_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b) |
| 1783 | #define IDirect3DDevice9Ex_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b) |
| 1784 | #define IDirect3DDevice9Ex_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b) |
| 1785 | #define IDirect3DDevice9Ex_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b) |
| 1786 | #define IDirect3DDevice9Ex_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b) |
| 1787 | #define IDirect3DDevice9Ex_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b) |
| 1788 | #define IDirect3DDevice9Ex_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) |
| 1789 | #define IDirect3DDevice9Ex_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) |
| 1790 | #define IDirect3DDevice9Ex_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b) |
| 1791 | #define IDirect3DDevice9Ex_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p) |
| 1792 | #define IDirect3DDevice9Ex_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a) |
| 1793 | #define IDirect3DDevice9Ex_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) |
| 1794 | #define IDirect3DDevice9Ex_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) |
| 1795 | #define IDirect3DDevice9Ex_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b) |
| 1796 | #define IDirect3DDevice9Ex_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b) |
| 1797 | #define IDirect3DDevice9Ex_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c) |
| 1798 | #define IDirect3DDevice9Ex_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c) |
| 1799 | #define IDirect3DDevice9Ex_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c) |
| 1800 | #define IDirect3DDevice9Ex_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c) |
| 1801 | #define IDirect3DDevice9Ex_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a) |
| 1802 | #define IDirect3DDevice9Ex_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b) |
| 1803 | #define IDirect3DDevice9Ex_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b) |
| 1804 | #define IDirect3DDevice9Ex_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a) |
| 1805 | #define IDirect3DDevice9Ex_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a) |
| 1806 | #define IDirect3DDevice9Ex_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a) |
| 1807 | #define IDirect3DDevice9Ex_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a) |
| 1808 | #define IDirect3DDevice9Ex_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a) |
| 1809 | #define IDirect3DDevice9Ex_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p) |
| 1810 | #define IDirect3DDevice9Ex_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a) |
| 1811 | #define IDirect3DDevice9Ex_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p) |
| 1812 | #define IDirect3DDevice9Ex_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c) |
| 1813 | #define IDirect3DDevice9Ex_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f) |
| 1814 | #define IDirect3DDevice9Ex_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d) |
| 1815 | #define IDirect3DDevice9Ex_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) |
| 1816 | #define IDirect3DDevice9Ex_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f) |
| 1817 | #define IDirect3DDevice9Ex_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b) |
| 1818 | #define IDirect3DDevice9Ex_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a) |
| 1819 | #define IDirect3DDevice9Ex_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a) |
| 1820 | #define IDirect3DDevice9Ex_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a) |
| 1821 | #define IDirect3DDevice9Ex_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a) |
| 1822 | #define IDirect3DDevice9Ex_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b) |
| 1823 | #define IDirect3DDevice9Ex_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a) |
| 1824 | #define IDirect3DDevice9Ex_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a) |
| 1825 | #define IDirect3DDevice9Ex_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c) |
| 1826 | #define IDirect3DDevice9Ex_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c) |
| 1827 | #define IDirect3DDevice9Ex_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c) |
| 1828 | #define IDirect3DDevice9Ex_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c) |
| 1829 | #define IDirect3DDevice9Ex_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c) |
| 1830 | #define IDirect3DDevice9Ex_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c) |
| 1831 | #define IDirect3DDevice9Ex_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d) |
| 1832 | #define IDirect3DDevice9Ex_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d) |
| 1833 | #define IDirect3DDevice9Ex_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b) |
| 1834 | #define IDirect3DDevice9Ex_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b) |
| 1835 | #define IDirect3DDevice9Ex_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a) |
| 1836 | #define IDirect3DDevice9Ex_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a) |
| 1837 | #define IDirect3DDevice9Ex_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b) |
| 1838 | #define IDirect3DDevice9Ex_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a) |
| 1839 | #define IDirect3DDevice9Ex_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a) |
| 1840 | #define IDirect3DDevice9Ex_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c) |
| 1841 | #define IDirect3DDevice9Ex_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c) |
| 1842 | #define IDirect3DDevice9Ex_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c) |
| 1843 | #define IDirect3DDevice9Ex_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c) |
| 1844 | #define IDirect3DDevice9Ex_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c) |
| 1845 | #define IDirect3DDevice9Ex_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c) |
| 1846 | #define IDirect3DDevice9Ex_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c) |
| 1847 | #define IDirect3DDevice9Ex_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c) |
| 1848 | #define IDirect3DDevice9Ex_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a) |
| 1849 | #define IDirect3DDevice9Ex_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b) |
| 1850 | /* IDirect3DDevice9Ex */ |
| 1851 | #define IDirect3DDevice9Ex_SetConvolutionMonoKernel(p,a,b,c,d) (p)->lpVtbl->SetConvolutionMonoKernel(p,a,b,c,d) |
| 1852 | #define IDirect3DDevice9Ex_ComposeRects(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->ComposeRects(p,a,b,c,d,e,f,g,h) |
| 1853 | #define IDirect3DDevice9Ex_PresentEx(p,a,b,c,d,e) (p)->lpVtbl->PresentEx(p,a,b,c,d,e) |
| 1854 | #define IDirect3DDevice9Ex_GetGPUThreadPriority(p,a) (p)->lpVtbl->GetGPUThreadPriority(p,a) |
| 1855 | #define IDirect3DDevice9Ex_SetGPUThreadPriority(p,a) (p)->lpVtbl->SetGPUThreadPriority(p,a) |
| 1856 | #define IDirect3DDevice9Ex_WaitForVBlank(p,a) (p)->lpVtbl->WaitForVBlank(p,a) |
| 1857 | #define IDirect3DDevice9Ex_CheckResourceResidency(p,a,b) (p)->lpVtbl->CheckResourceResidency(p,a,b) |
| 1858 | #define IDirect3DDevice9Ex_SetMaximumFrameLatency(p,a) (p)->lpVtbl->SetMaximumFrameLatency(p,a) |
| 1859 | #define IDirect3DDevice9Ex_GetMaximumFrameLatency(p,a) (p)->lpVtbl->GetMaximumFrameLatency(p,a) |
| 1860 | #define IDirect3DDevice9Ex_CheckDeviceState(p,a) (p)->lpVtbl->CheckDeviceState(p,a) |
| 1861 | #define IDirect3DDevice9Ex_CreateRenderTargetEx(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateRenderTargetEx(p,a,b,c,d,e,f,g,h,i) |
| 1862 | #define IDirect3DDevice9Ex_CreateOffscreenPlainSurfaceEx(p,a,b,c,d,e,f,g)(p)->lpVtbl->CreateOffscreenPlainSurfaceEx(p,a,b,c,d,e,f,g) |
| 1863 | #define IDirect3DDevice9Ex_CreateDepthStencilSurfaceEx(p,a,b,c,d,e,f,g,h,i)(p)->lpVtbl->CreateDepthStencilSurfaceEx(p,a,b,c,d,e,f,g,h,i) |
| 1864 | #define IDirect3DDevice9Ex_ResetEx(p,a,b) (p)->lpVtbl->ResetEx(p,a,b) |
| 1865 | #define IDirect3DDevice9Ex_GetDisplayModeEx(p,a,b,c) (p)->lpVtbl->GetDisplayModeEx(p,a,b,c) |
| 1866 | #else |
| 1867 | /*** IUnknown methods ***/ |
| 1868 | #define IDirect3DDevice9Ex_QueryInterface(p,a,b) (p)->QueryInterface(a,b) |
| 1869 | #define IDirect3DDevice9Ex_AddRef(p) (p)->AddRef() |
| 1870 | #define IDirect3DDevice9Ex_Release(p) (p)->Release() |
| 1871 | /*** IDirect3DDevice9 methods ***/ |
| 1872 | #define IDirect3DDevice9Ex_TestCooperativeLevel(p) (p)->TestCooperativeLevel() |
| 1873 | #define IDirect3DDevice9Ex_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem() |
| 1874 | #define IDirect3DDevice9Ex_EvictManagedResources(p) (p)->EvictManagedResources() |
| 1875 | #define IDirect3DDevice9Ex_GetDirect3D(p,a) (p)->GetDirect3D(a) |
| 1876 | #define IDirect3DDevice9Ex_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a) |
| 1877 | #define IDirect3DDevice9Ex_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b) |
| 1878 | #define IDirect3DDevice9Ex_GetCreationParameters(p,a) (p)->GetCreationParameters(a) |
| 1879 | #define IDirect3DDevice9Ex_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c) |
| 1880 | #define IDirect3DDevice9Ex_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c) |
| 1881 | #define IDirect3DDevice9Ex_ShowCursor(p,a) (p)->ShowCursor(a) |
| 1882 | #define IDirect3DDevice9Ex_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b) |
| 1883 | #define IDirect3DDevice9Ex_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b) |
| 1884 | #define IDirect3DDevice9Ex_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains() |
| 1885 | #define IDirect3DDevice9Ex_Reset(p,a) (p)->Reset(a) |
| 1886 | #define IDirect3DDevice9Ex_Present(p,a,b,c,d) (p)->Present(a,b,c,d) |
| 1887 | #define IDirect3DDevice9Ex_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d) |
| 1888 | #define IDirect3DDevice9Ex_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b) |
| 1889 | #define IDirect3DDevice9Ex_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a) |
| 1890 | #define IDirect3DDevice9Ex_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c) |
| 1891 | #define IDirect3DDevice9Ex_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b) |
| 1892 | #define IDirect3DDevice9Ex_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h) |
| 1893 | #define IDirect3DDevice9Ex_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i) |
| 1894 | #define IDirect3DDevice9Ex_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g) |
| 1895 | #define IDirect3DDevice9Ex_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f) |
| 1896 | #define IDirect3DDevice9Ex_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f) |
| 1897 | #define IDirect3DDevice9Ex_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h) |
| 1898 | #define IDirect3DDevice9Ex_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h) |
| 1899 | #define IDirect3DDevice9Ex_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d) |
| 1900 | #define IDirect3DDevice9Ex_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b) |
| 1901 | #define IDirect3DDevice9Ex_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b) |
| 1902 | #define IDirect3DDevice9Ex_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b) |
| 1903 | #define IDirect3DDevice9Ex_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e) |
| 1904 | #define IDirect3DDevice9Ex_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c) |
| 1905 | #define IDirect3DDevice9Ex_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f) |
| 1906 | #define IDirect3DDevice9Ex_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) |
| 1907 | #define IDirect3DDevice9Ex_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b) |
| 1908 | #define IDirect3DDevice9Ex_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a) |
| 1909 | #define IDirect3DDevice9Ex_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a) |
| 1910 | #define IDirect3DDevice9Ex_BeginScene(p) (p)->BeginScene() |
| 1911 | #define IDirect3DDevice9Ex_EndScene(p) (p)->EndScene() |
| 1912 | #define IDirect3DDevice9Ex_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f) |
| 1913 | #define IDirect3DDevice9Ex_SetTransform(p,a,b) (p)->SetTransform(a,b) |
| 1914 | #define IDirect3DDevice9Ex_GetTransform(p,a,b) (p)->GetTransform(a,b) |
| 1915 | #define IDirect3DDevice9Ex_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) |
| 1916 | #define IDirect3DDevice9Ex_SetViewport(p,a) (p)->SetViewport(a) |
| 1917 | #define IDirect3DDevice9Ex_GetViewport(p,a) (p)->GetViewport(a) |
| 1918 | #define IDirect3DDevice9Ex_SetMaterial(p,a) (p)->SetMaterial(a) |
| 1919 | #define IDirect3DDevice9Ex_GetMaterial(p,a) (p)->GetMaterial(a) |
| 1920 | #define IDirect3DDevice9Ex_SetLight(p,a,b) (p)->SetLight(a,b) |
| 1921 | #define IDirect3DDevice9Ex_GetLight(p,a,b) (p)->GetLight(a,b) |
| 1922 | #define IDirect3DDevice9Ex_LightEnable(p,a,b) (p)->LightEnable(a,b) |
| 1923 | #define IDirect3DDevice9Ex_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b) |
| 1924 | #define IDirect3DDevice9Ex_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b) |
| 1925 | #define IDirect3DDevice9Ex_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b) |
| 1926 | #define IDirect3DDevice9Ex_SetRenderState(p,a,b) (p)->SetRenderState(a,b) |
| 1927 | #define IDirect3DDevice9Ex_GetRenderState(p,a,b) (p)->GetRenderState(a,b) |
| 1928 | #define IDirect3DDevice9Ex_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b) |
| 1929 | #define IDirect3DDevice9Ex_BeginStateBlock(p) (p)->BeginStateBlock() |
| 1930 | #define IDirect3DDevice9Ex_EndStateBlock(p,a) (p)->EndStateBlock(a) |
| 1931 | #define IDirect3DDevice9Ex_SetClipStatus(p,a) (p)->SetClipStatus(a) |
| 1932 | #define IDirect3DDevice9Ex_GetClipStatus(p,a) (p)->GetClipStatus(a) |
| 1933 | #define IDirect3DDevice9Ex_GetTexture(p,a,b) (p)->GetTexture(a,b) |
| 1934 | #define IDirect3DDevice9Ex_SetTexture(p,a,b) (p)->SetTexture(a,b) |
| 1935 | #define IDirect3DDevice9Ex_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c) |
| 1936 | #define IDirect3DDevice9Ex_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c) |
| 1937 | #define IDirect3DDevice9Ex_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c) |
| 1938 | #define IDirect3DDevice9Ex_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c) |
| 1939 | #define IDirect3DDevice9Ex_ValidateDevice(p,a) (p)->ValidateDevice(a) |
| 1940 | #define IDirect3DDevice9Ex_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b) |
| 1941 | #define IDirect3DDevice9Ex_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b) |
| 1942 | #define IDirect3DDevice9Ex_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a) |
| 1943 | #define IDirect3DDevice9Ex_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a) |
| 1944 | #define IDirect3DDevice9Ex_SetScissorRect(p,a) (p)->SetScissorRect(a) |
| 1945 | #define IDirect3DDevice9Ex_GetScissorRect(p,a) (p)->GetScissorRect(a) |
| 1946 | #define IDirect3DDevice9Ex_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a) |
| 1947 | #define IDirect3DDevice9Ex_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing() |
| 1948 | #define IDirect3DDevice9Ex_SetNPatchMode(p,a) (p)->SetNPatchMode(a) |
| 1949 | #define IDirect3DDevice9Ex_GetNPatchMode(p) (p)->GetNPatchMode() |
| 1950 | #define IDirect3DDevice9Ex_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c) |
| 1951 | #define IDirect3DDevice9Ex_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f) |
| 1952 | #define IDirect3DDevice9Ex_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d) |
| 1953 | #define IDirect3DDevice9Ex_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h) |
| 1954 | #define IDirect3DDevice9Ex_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f) |
| 1955 | #define IDirect3DDevice9Ex_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b) |
| 1956 | #define IDirect3DDevice9Ex_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a) |
| 1957 | #define IDirect3DDevice9Ex_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a) |
| 1958 | #define IDirect3DDevice9Ex_SetFVF(p,a) (p)->SetFVF(a) |
| 1959 | #define IDirect3DDevice9Ex_GetFVF(p,a) (p)->GetFVF(a) |
| 1960 | #define IDirect3DDevice9Ex_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b) |
| 1961 | #define IDirect3DDevice9Ex_SetVertexShader(p,a) (p)->SetVertexShader(a) |
| 1962 | #define IDirect3DDevice9Ex_GetVertexShader(p,a) (p)->GetVertexShader(a) |
| 1963 | #define IDirect3DDevice9Ex_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c) |
| 1964 | #define IDirect3DDevice9Ex_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c) |
| 1965 | #define IDirect3DDevice9Ex_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c) |
| 1966 | #define IDirect3DDevice9Ex_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c) |
| 1967 | #define IDirect3DDevice9Ex_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c) |
| 1968 | #define IDirect3DDevice9Ex_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c) |
| 1969 | #define IDirect3DDevice9Ex_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d) |
| 1970 | #define IDirect3DDevice9Ex_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d) |
| 1971 | #define IDirect3DDevice9Ex_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b) |
| 1972 | #define IDirect3DDevice9Ex_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b) |
| 1973 | #define IDirect3DDevice9Ex_SetIndices(p,a) (p)->SetIndices(a) |
| 1974 | #define IDirect3DDevice9Ex_GetIndices(p,a) (p)->GetIndices(a) |
| 1975 | #define IDirect3DDevice9Ex_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b) |
| 1976 | #define IDirect3DDevice9Ex_SetPixelShader(p,a) (p)->SetPixelShader(a) |
| 1977 | #define IDirect3DDevice9Ex_GetPixelShader(p,a) (p)->GetPixelShader(a) |
| 1978 | #define IDirect3DDevice9Ex_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c) |
| 1979 | #define IDirect3DDevice9Ex_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c) |
| 1980 | #define IDirect3DDevice9Ex_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c) |
| 1981 | #define IDirect3DDevice9Ex_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c) |
| 1982 | #define IDirect3DDevice9Ex_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c) |
| 1983 | #define IDirect3DDevice9Ex_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c) |
| 1984 | #define IDirect3DDevice9Ex_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c) |
| 1985 | #define IDirect3DDevice9Ex_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c) |
| 1986 | #define IDirect3DDevice9Ex_DeletePatch(p,a) (p)->DeletePatch(a) |
| 1987 | #define IDirect3DDevice9Ex_CreateQuery(p,a,b) (p)->CreateQuery(a,b) |
| 1988 | /* IDirect3DDevice9Ex */ |
| 1989 | #define IDirect3DDevice9Ex_SetConvolutionMonoKernel(p,a,b,c,d) (p)->SetConvolutionMonoKernel(a,b,c,d) |
| 1990 | #define IDirect3DDevice9Ex_ComposeRects(p,a,b,c,d,e,f,g,h) (p)->ComposeRects(a,b,c,d,e,f,g,h) |
| 1991 | #define IDirect3DDevice9Ex_PresentEx(p,a,b,c,d,e) (p)->PresentEx(a,b,c,d,e) |
| 1992 | #define IDirect3DDevice9Ex_GetGPUThreadPriority(p,a) (p)->GetGPUThreadPriority(a) |
| 1993 | #define IDirect3DDevice9Ex_SetGPUThreadPriority(p,a) (p)->SetGPUThreadPriority(a) |
| 1994 | #define IDirect3DDevice9Ex_WaitForVBlank(p,a) (p)->WaitForVBlank(a) |
| 1995 | #define IDirect3DDevice9Ex_CheckResourceResidency(p,a,b) (p)->CheckResourceResidency(a,b) |
| 1996 | #define IDirect3DDevice9Ex_SetMaximumFrameLatency(p,a) (p)->SetMaximumFrameLatency(a) |
| 1997 | #define IDirect3DDevice9Ex_GetMaximumFrameLatency(p,a) (p)->GetMaximumFrameLatency(a) |
| 1998 | #define IDirect3DDevice9Ex_CheckDeviceState(p,a) (p)->CheckDeviceState(a) |
| 1999 | #define IDirect3DDevice9Ex_CreateRenderTargetEx(p,a,b,c,d,e,f,g,h,i) (p)->CreateRenderTargetEx(a,b,c,d,e,f,g,h,i) |
| 2000 | #define IDirect3DDevice9Ex_CreateOffscreenPlainSurfaceEx(p,a,b,c,d,e,f,g)(p)->CreateOffscreenPlainSurfaceEx(a,b,c,d,e,f,g) |
| 2001 | #define IDirect3DDevice9Ex_CreateDepthStencilSurfaceEx(p,a,b,c,d,e,f,g,h,i)(p)->CreateDepthStencilSurfaceEx(a,b,c,d,e,f,g,h,i) |
| 2002 | #define IDirect3DDevice9Ex_ResetEx(p,a,b) (p)->ResetEx(a,b) |
| 2003 | #define IDirect3DDevice9Ex_GetDisplayModeEx(p,a,b,c) (p)->GetDisplayModeEx(a,b,c) |
| 2004 | #endif |
| 2005 | |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 2006 | #ifdef __cplusplus |
| 2007 | extern "C" { |
| 2008 | #endif /* defined(__cplusplus) */ |
| 2009 | |
Francois Gouget | 69bc2af | 2007-08-03 00:53:44 +0200 | [diff] [blame] | 2010 | int WINAPI D3DPERF_BeginEvent(D3DCOLOR,LPCWSTR); |
| 2011 | int WINAPI D3DPERF_EndEvent(void); |
| 2012 | DWORD WINAPI D3DPERF_GetStatus(void); |
| 2013 | BOOL WINAPI D3DPERF_QueryRepeatFrame(void); |
| 2014 | void WINAPI D3DPERF_SetMarker(D3DCOLOR,LPCWSTR); |
| 2015 | void WINAPI D3DPERF_SetOptions(DWORD); |
| 2016 | void WINAPI D3DPERF_SetRegion(D3DCOLOR,LPCWSTR); |
| 2017 | |
Raphael Junqueira | 9a401a0 | 2003-06-20 21:28:34 +0000 | [diff] [blame] | 2018 | /* Define the main entrypoint as well */ |
| 2019 | IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion); |
| 2020 | |
| 2021 | #ifdef __cplusplus |
| 2022 | } /* extern "C" */ |
| 2023 | #endif /* defined(__cplusplus) */ |
| 2024 | |
| 2025 | |
| 2026 | #endif /* __WINE_D3D9_H */ |