1 #undef INTERFACE 2 /* 3 * Copyright (C) 2002 Jason Edmeades 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 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 18 */ 19 20 #ifndef __WINE_D3D8_H 21 #define __WINE_D3D8_H 22 23 #ifndef DIRECT3D_VERSION 24 #define DIRECT3D_VERSION 0x0800 25 #endif 26 27 #include <stdlib.h> 28 29 #define COM_NO_WINDOWS_H 30 #include <objbase.h> 31 #include <windows.h> 32 #include <d3d8types.h> 33 #include <d3d8caps.h> 34 35 /***************************************************************************** 36 * Behavior Flags for IDirect3D8::CreateDevice 37 */ 38 #define D3DCREATE_FPU_PRESERVE __MSABI_LONG(0x00000002) 39 #define D3DCREATE_MULTITHREADED __MSABI_LONG(0x00000004) 40 #define D3DCREATE_PUREDEVICE __MSABI_LONG(0x00000010) 41 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING __MSABI_LONG(0x00000020) 42 #define D3DCREATE_HARDWARE_VERTEXPROCESSING __MSABI_LONG(0x00000040) 43 #define D3DCREATE_MIXED_VERTEXPROCESSING __MSABI_LONG(0x00000080) 44 45 /***************************************************************************** 46 * Flags for SetPrivateData 47 */ 48 #define D3DSPD_IUNKNOWN __MSABI_LONG(0x00000001) 49 50 /***************************************************************************** 51 * #defines and error codes 52 */ 53 #define D3D_SDK_VERSION 220 54 #define D3DADAPTER_DEFAULT 0 55 #define D3DENUM_NO_WHQL_LEVEL 2 56 57 #define _FACD3D 0x876 58 #define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code ) 59 60 /* 61 * Direct3D Errors 62 */ 63 #define D3D_OK S_OK 64 #define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072) 65 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073) 66 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074) 67 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075) 68 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076) 69 #define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077) 70 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078) 71 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079) 72 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081) 73 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082) 74 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086) 75 #define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087) 76 77 #define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150) 78 #define D3DERR_MOREDATA MAKE_D3DHRESULT(2151) 79 #define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152) 80 #define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153) 81 #define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154) 82 #define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380) 83 #define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155) 84 #define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156) 85 #define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157) 86 87 /***************************************************************************** 88 * Predeclare the interfaces 89 */ 90 DEFINE_GUID(IID_IDirect3D8, 0x1DD9E8DA,0x1C77,0x4D40,0xB0,0xCF,0x98,0xFE,0xFD,0xFF,0x95,0x12); 91 typedef struct IDirect3D8 *LPDIRECT3D8; 92 93 DEFINE_GUID(IID_IDirect3DDevice8, 0x7385E5DF,0x8FE8,0x41D5,0x86,0xB6,0xD7,0xB4,0x85,0x47,0xB6,0xCF); 94 typedef struct IDirect3DDevice8 *LPDIRECT3DDEVICE8; 95 96 DEFINE_GUID(IID_IDirect3DResource8, 0x1B36BB7B,0x09B7,0x410A,0xB4,0x45,0x7D,0x14,0x30,0xD7,0xB3,0x3F); 97 typedef struct IDirect3DResource8 *LPDIRECT3DRESOURCE8, *PDIRECT3DRESOURCE8; 98 99 DEFINE_GUID(IID_IDirect3DVertexBuffer8, 0x8AEEEAC7,0x05F9,0x44D4,0xB5,0x91,0x00,0x0B,0x0D,0xF1,0xCB,0x95); 100 typedef struct IDirect3DVertexBuffer8 *LPDIRECT3DVERTEXBUFFER8, *PDIRECT3DVERTEXBUFFER8; 101 102 DEFINE_GUID(IID_IDirect3DVolume8, 0xBD7349F5,0x14F1,0x42E4,0x9C,0x79,0x97,0x23,0x80,0xDB,0x40,0xC0); 103 typedef struct IDirect3DVolume8 *LPDIRECT3DVOLUME8, *PDIRECT3DVOLUME8; 104 105 DEFINE_GUID(IID_IDirect3DSwapChain8, 0x928C088B,0x76B9,0x4C6B,0xA5,0x36,0xA5,0x90,0x85,0x38,0x76,0xCD); 106 typedef struct IDirect3DSwapChain8 *LPDIRECT3DSWAPCHAIN8, *PDIRECT3DSWAPCHAIN8; 107 108 DEFINE_GUID(IID_IDirect3DSurface8, 0xB96EEBCA,0xB326,0x4EA5,0x88,0x2F,0x2F,0xF5,0xBA,0xE0,0x21,0xDD); 109 typedef struct IDirect3DSurface8 *LPDIRECT3DSURFACE8, *PDIRECT3DSURFACE8; 110 111 DEFINE_GUID(IID_IDirect3DIndexBuffer8, 0x0E689C9A,0x053D,0x44A0,0x9D,0x92,0xDB,0x0E,0x3D,0x75,0x0F,0x86); 112 typedef struct IDirect3DIndexBuffer8 *LPDIRECT3DINDEXBUFFER8, *PDIRECT3DINDEXBUFFER8; 113 114 DEFINE_GUID(IID_IDirect3DBaseTexture8, 0xB4211CFA,0x51B9,0x4A9F,0xAB,0x78,0xDB,0x99,0xB2,0xBB,0x67,0x8E); 115 typedef struct IDirect3DBaseTexture8 *LPDIRECT3DBASETEXTURE8, *PDIRECT3DBASETEXTURE8; 116 117 DEFINE_GUID(IID_IDirect3DTexture8, 0xE4CDD575,0x2866,0x4F01,0xB1,0x2E,0x7E,0xEC,0xE1,0xEC,0x93,0x58); 118 typedef struct IDirect3DTexture8 *LPDIRECT3DTEXTURE8, *PDIRECT3DTEXTURE8; 119 120 DEFINE_GUID(IID_IDirect3DCubeTexture8, 0x3EE5B968,0x2ACA,0x4C34,0x8B,0xB5,0x7E,0x0C,0x3D,0x19,0xB7,0x50); 121 typedef struct IDirect3DCubeTexture8 *LPDIRECT3DCUBETEXTURE8, *PDIRECT3DCUBETEXTURE8; 122 123 DEFINE_GUID(IID_IDirect3DVolumeTexture8, 0x4B8AAAFA,0x140F,0x42BA,0x91,0x31,0x59,0x7E,0xAF,0xAA,0x2E,0xAD); 124 typedef struct IDirect3DVolumeTexture8 *LPDIRECT3DVOLUMETEXTURE8, *PDIRECT3DVOLUMETEXTURE8; 125 126 /***************************************************************************** 127 * IDirect3D8 interface 128 */ 129 #undef INTERFACE 130 #define INTERFACE IDirect3D8 131 DECLARE_INTERFACE_(IDirect3D8,IUnknown) 132 { 133 /*** IUnknown methods ***/ 134 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 135 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 136 STDMETHOD_(ULONG,Release)(THIS) PURE; 137 /*** IDirect3D8 methods ***/ 138 STDMETHOD(RegisterSoftwareDevice)(THIS_ void * pInitializeFunction) PURE; 139 STDMETHOD_(UINT,GetAdapterCount )(THIS) PURE; 140 STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER8 * pIdentifier) PURE; 141 STDMETHOD_(UINT,GetAdapterModeCount)(THIS_ UINT Adapter) PURE; 142 STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, UINT Mode, D3DDISPLAYMODE * pMode) PURE; 143 STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, D3DDISPLAYMODE * pMode) PURE; 144 STDMETHOD(CheckDeviceType)(THIS_ UINT Adapter, D3DDEVTYPE CheckType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, WINBOOL Windowed) PURE; 145 STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) PURE; 146 STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, WINBOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType) PURE; 147 STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) PURE; 148 STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS8 * pCaps) PURE; 149 STDMETHOD_(HMONITOR,GetAdapterMonitor)(THIS_ UINT Adapter) PURE; 150 STDMETHOD(CreateDevice)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType,HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS * pPresentationParameters, struct IDirect3DDevice8 ** ppReturnedDeviceInterface) PURE; 151 }; 152 #undef INTERFACE 153 154 #if !defined(__cplusplus) || defined(CINTERFACE) 155 /*** IUnknown methods ***/ 156 #define IDirect3D8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 157 #define IDirect3D8_AddRef(p) (p)->lpVtbl->AddRef(p) 158 #define IDirect3D8_Release(p) (p)->lpVtbl->Release(p) 159 /*** IDirect3D8 methods ***/ 160 #define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a) 161 #define IDirect3D8_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p) 162 #define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c) 163 #define IDirect3D8_GetAdapterModeCount(p,a) (p)->lpVtbl->GetAdapterModeCount(p,a) 164 #define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->lpVtbl->EnumAdapterModes(p,a,b,c) 165 #define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b) 166 #define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e) 167 #define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f) 168 #define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e) 169 #define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e) 170 #define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c) 171 #define IDirect3D8_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a) 172 #define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f) 173 #else 174 /*** IUnknown methods ***/ 175 #define IDirect3D8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 176 #define IDirect3D8_AddRef(p) (p)->AddRef() 177 #define IDirect3D8_Release(p) (p)->Release() 178 /*** IDirect3D8 methods ***/ 179 #define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a) 180 #define IDirect3D8_GetAdapterCount(p) (p)->GetAdapterCount() 181 #define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c) 182 #define IDirect3D8_GetAdapterModeCount(p,a) (p)->GetAdapterModeCount(a) 183 #define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->EnumAdapterModes(a,b,c) 184 #define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b) 185 #define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e) 186 #define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f) 187 #define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->CheckDeviceMultiSampleType(a,b,c,d,e) 188 #define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e) 189 #define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c) 190 #define IDirect3D8_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a) 191 #define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f) 192 #endif 193 194 /***************************************************************************** 195 * IDirect3DVolume8 interface 196 */ 197 #define INTERFACE IDirect3DVolume8 198 DECLARE_INTERFACE_(IDirect3DVolume8,IUnknown) 199 { 200 /*** IUnknown methods ***/ 201 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 202 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 203 STDMETHOD_(ULONG,Release)(THIS) PURE; 204 /*** IDirect3DVolume8 methods ***/ 205 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE; 206 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE; 207 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void * pData, DWORD * pSizeOfData) PURE; 208 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; 209 STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE; 210 STDMETHOD(GetDesc)(THIS_ D3DVOLUME_DESC * pDesc) PURE; 211 STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX * pLockedVolume,CONST D3DBOX * pBox, DWORD Flags) PURE; 212 STDMETHOD(UnlockBox)(THIS) PURE; 213 }; 214 #undef INTERFACE 215 216 #if !defined(__cplusplus) || defined(CINTERFACE) 217 /*** IUnknown methods ***/ 218 #define IDirect3DVolume8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 219 #define IDirect3DVolume8_AddRef(p) (p)->lpVtbl->AddRef(p) 220 #define IDirect3DVolume8_Release(p) (p)->lpVtbl->Release(p) 221 /*** IDirect3DVolume8 methods ***/ 222 #define IDirect3DVolume8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) 223 #define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) 224 #define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) 225 #define IDirect3DVolume8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) 226 #define IDirect3DVolume8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b) 227 #define IDirect3DVolume8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) 228 #define IDirect3DVolume8_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c) 229 #define IDirect3DVolume8_UnlockBox(p) (p)->lpVtbl->UnlockBox(p) 230 #else 231 /*** IUnknown methods ***/ 232 #define IDirect3DVolume8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 233 #define IDirect3DVolume8_AddRef(p) (p)->AddRef() 234 #define IDirect3DVolume8_Release(p) (p)->Release() 235 /*** IDirect3DVolume8 methods ***/ 236 #define IDirect3DVolume8_GetDevice(p,a) (p)->GetDevice(a) 237 #define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) 238 #define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) 239 #define IDirect3DVolume8_FreePrivateData(p,a) (p)->FreePrivateData(a) 240 #define IDirect3DVolume8_GetContainer(p,a,b) (p)->GetContainer(a,b) 241 #define IDirect3DVolume8_GetDesc(p,a) (p)->GetDesc(a) 242 #define IDirect3DVolume8_LockBox(p,a,b,c) (p)->LockBox(a,b,c) 243 #define IDirect3DVolume8_UnlockBox(p) (p)->UnlockBox() 244 #endif 245 246 /***************************************************************************** 247 * IDirect3DSwapChain8 interface 248 */ 249 #define INTERFACE IDirect3DSwapChain8 250 DECLARE_INTERFACE_(IDirect3DSwapChain8,IUnknown) 251 { 252 /*** IUnknown methods ***/ 253 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 254 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 255 STDMETHOD_(ULONG,Release)(THIS) PURE; 256 /*** IDirect3DSwapChain8 methods ***/ 257 STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect, CONST RECT * pDestRect, HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE; 258 STDMETHOD(GetBackBuffer)(THIS_ UINT BackBuffer, D3DBACKBUFFER_TYPE Type, struct IDirect3DSurface8 ** ppBackBuffer) PURE; 259 }; 260 #undef INTERFACE 261 262 #if !defined(__cplusplus) || defined(CINTERFACE) 263 /*** IUnknown methods ***/ 264 #define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 265 #define IDirect3DSwapChain8_AddRef(p) (p)->lpVtbl->AddRef(p) 266 #define IDirect3DSwapChain8_Release(p) (p)->lpVtbl->Release(p) 267 /*** IDirect3DSwapChain8 methods ***/ 268 #define IDirect3DSwapChain8_Present(p,a,b,c) (p)->lpVtbl->Present(p,a,b,c) 269 #define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c) 270 #else 271 /*** IUnknown methods ***/ 272 #define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 273 #define IDirect3DSwapChain8_AddRef(p) (p)->AddRef() 274 #define IDirect3DSwapChain8_Release(p) (p)->Release() 275 /*** IDirect3DSwapChain8 methods ***/ 276 #define IDirect3DSwapChain8_Present(p,a,b,c) (p)->Present(a,b,c) 277 #define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c) 278 #endif 279 280 /***************************************************************************** 281 * IDirect3DSurface8 interface 282 */ 283 #define INTERFACE IDirect3DSurface8 284 DECLARE_INTERFACE_(IDirect3DSurface8,IUnknown) 285 { 286 /*** IUnknown methods ***/ 287 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 288 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 289 STDMETHOD_(ULONG,Release)(THIS) PURE; 290 /*** IDirect3DSurface8 methods ***/ 291 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE; 292 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void * pData,DWORD SizeOfData,DWORD Flags) PURE; 293 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void * pData,DWORD * pSizeOfData) PURE; 294 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; 295 STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE; 296 STDMETHOD(GetDesc)(THIS_ D3DSURFACE_DESC * pDesc) PURE; 297 STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT * pLockedRect, CONST RECT * pRect,DWORD Flags) PURE; 298 STDMETHOD(UnlockRect)(THIS) PURE; 299 }; 300 #undef INTERFACE 301 302 #if !defined(__cplusplus) || defined(CINTERFACE) 303 /*** IUnknown methods ***/ 304 #define IDirect3DSurface8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 305 #define IDirect3DSurface8_AddRef(p) (p)->lpVtbl->AddRef(p) 306 #define IDirect3DSurface8_Release(p) (p)->lpVtbl->Release(p) 307 /*** IDirect3DSurface8 methods ***/ 308 #define IDirect3DSurface8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) 309 #define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) 310 #define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) 311 #define IDirect3DSurface8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) 312 #define IDirect3DSurface8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b) 313 #define IDirect3DSurface8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) 314 #define IDirect3DSurface8_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c) 315 #define IDirect3DSurface8_UnlockRect(p) (p)->lpVtbl->UnlockRect(p) 316 #else 317 /*** IUnknown methods ***/ 318 #define IDirect3DSurface8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 319 #define IDirect3DSurface8_AddRef(p) (p)->AddRef() 320 #define IDirect3DSurface8_Release(p) (p)->Release() 321 /*** IDirect3DSurface8 methods ***/ 322 #define IDirect3DSurface8_GetDevice(p,a) (p)->GetDevice(a) 323 #define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) 324 #define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) 325 #define IDirect3DSurface8_FreePrivateData(p,a) (p)->FreePrivateData(a) 326 #define IDirect3DSurface8_GetContainer(p,a,b) (p)->GetContainer(a,b) 327 #define IDirect3DSurface8_GetDesc(p,a) (p)->GetDesc(a) 328 #define IDirect3DSurface8_LockRect(p,a,b,c) (p)->LockRect(a,b,c) 329 #define IDirect3DSurface8_UnlockRect(p) (p)->UnlockRect() 330 #endif 331 332 /***************************************************************************** 333 * IDirect3DResource8 interface 334 */ 335 #define INTERFACE IDirect3DResource8 336 DECLARE_INTERFACE_(IDirect3DResource8,IUnknown) 337 { 338 /*** IUnknown methods ***/ 339 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 340 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 341 STDMETHOD_(ULONG,Release)(THIS) PURE; 342 /*** IDirect3DResource8 methods ***/ 343 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE; 344 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE; 345 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE; 346 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; 347 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE; 348 STDMETHOD_(DWORD,GetPriority)(THIS) PURE; 349 STDMETHOD_(void,PreLoad)(THIS) PURE; 350 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE; 351 }; 352 #undef INTERFACE 353 354 #if !defined(__cplusplus) || defined(CINTERFACE) 355 /*** IUnknown methods ***/ 356 #define IDirect3DResource8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 357 #define IDirect3DResource8_AddRef(p) (p)->lpVtbl->AddRef(p) 358 #define IDirect3DResource8_Release(p) (p)->lpVtbl->Release(p) 359 /*** IDirect3DResource8 methods ***/ 360 #define IDirect3DResource8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) 361 #define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) 362 #define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) 363 #define IDirect3DResource8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) 364 #define IDirect3DResource8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) 365 #define IDirect3DResource8_GetPriority(p) (p)->lpVtbl->GetPriority(p) 366 #define IDirect3DResource8_PreLoad(p) (p)->lpVtbl->PreLoad(p) 367 #define IDirect3DResource8_GetType(p) (p)->lpVtbl->GetType(p) 368 #else 369 /*** IUnknown methods ***/ 370 #define IDirect3DResource8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 371 #define IDirect3DResource8_AddRef(p) (p)->AddRef() 372 #define IDirect3DResource8_Release(p) (p)->Release() 373 /*** IDirect3DResource8 methods ***/ 374 #define IDirect3DResource8_GetDevice(p,a) (p)->GetDevice(a) 375 #define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) 376 #define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) 377 #define IDirect3DResource8_FreePrivateData(p,a) (p)->FreePrivateData(a) 378 #define IDirect3DResource8_SetPriority(p,a) (p)->SetPriority(a) 379 #define IDirect3DResource8_GetPriority(p) (p)->GetPriority() 380 #define IDirect3DResource8_PreLoad(p) (p)->PreLoad() 381 #define IDirect3DResource8_GetType(p) (p)->GetType() 382 #endif 383 384 /***************************************************************************** 385 * IDirect3DVertexBuffer8 interface 386 */ 387 #define INTERFACE IDirect3DVertexBuffer8 388 DECLARE_INTERFACE_(IDirect3DVertexBuffer8,IDirect3DResource8) 389 { 390 /*** IUnknown methods ***/ 391 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 392 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 393 STDMETHOD_(ULONG,Release)(THIS) PURE; 394 /*** IDirect3DResource8 methods ***/ 395 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE; 396 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE; 397 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE; 398 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; 399 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE; 400 STDMETHOD_(DWORD,GetPriority)(THIS) PURE; 401 STDMETHOD_(void,PreLoad)(THIS) PURE; 402 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE; 403 /*** IDirect3DVertexBuffer8 methods ***/ 404 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE; 405 STDMETHOD(Unlock)(THIS) PURE; 406 STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC * pDesc) PURE; 407 }; 408 #undef INTERFACE 409 410 #if !defined(__cplusplus) || defined(CINTERFACE) 411 /*** IUnknown methods ***/ 412 #define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 413 #define IDirect3DVertexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p) 414 #define IDirect3DVertexBuffer8_Release(p) (p)->lpVtbl->Release(p) 415 /*** IDirect3DVertexBuffer8 methods: IDirect3DResource8 ***/ 416 #define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) 417 #define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) 418 #define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) 419 #define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) 420 #define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) 421 #define IDirect3DVertexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p) 422 #define IDirect3DVertexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p) 423 #define IDirect3DVertexBuffer8_GetType(p) (p)->lpVtbl->GetType(p) 424 /*** IDirect3DVertexBuffer8 methods ***/ 425 #define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) 426 #define IDirect3DVertexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p) 427 #define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) 428 #else 429 /*** IUnknown methods ***/ 430 #define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 431 #define IDirect3DVertexBuffer8_AddRef(p) (p)->AddRef() 432 #define IDirect3DVertexBuffer8_Release(p) (p)->Release() 433 /*** IDirect3DVertexBuffer8 methods: IDirect3DResource8 ***/ 434 #define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->GetDevice(a) 435 #define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) 436 #define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) 437 #define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a) 438 #define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->SetPriority(a) 439 #define IDirect3DVertexBuffer8_GetPriority(p) (p)->GetPriority() 440 #define IDirect3DVertexBuffer8_PreLoad(p) (p)->PreLoad() 441 #define IDirect3DVertexBuffer8_GetType(p) (p)->GetType() 442 /*** IDirect3DVertexBuffer8 methods ***/ 443 #define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) 444 #define IDirect3DVertexBuffer8_Unlock(p) (p)->Unlock() 445 #define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->GetDesc(a) 446 #endif 447 448 /***************************************************************************** 449 * IDirect3DIndexBuffer8 interface 450 */ 451 #define INTERFACE IDirect3DIndexBuffer8 452 DECLARE_INTERFACE_(IDirect3DIndexBuffer8,IDirect3DResource8) 453 { 454 /*** IUnknown methods ***/ 455 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 456 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 457 STDMETHOD_(ULONG,Release)(THIS) PURE; 458 /*** IDirect3DResource8 methods ***/ 459 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE; 460 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE; 461 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE; 462 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; 463 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE; 464 STDMETHOD_(DWORD,GetPriority)(THIS) PURE; 465 STDMETHOD_(void,PreLoad)(THIS) PURE; 466 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE; 467 /*** IDirect3DIndexBuffer8 methods ***/ 468 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE; 469 STDMETHOD(Unlock)(THIS) PURE; 470 STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC * pDesc) PURE; 471 }; 472 #undef INTERFACE 473 474 #if !defined(__cplusplus) || defined(CINTERFACE) 475 /*** IUnknown methods ***/ 476 #define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 477 #define IDirect3DIndexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p) 478 #define IDirect3DIndexBuffer8_Release(p) (p)->lpVtbl->Release(p) 479 /*** IDirect3DIndexBuffer8 methods: IDirect3DResource8 ***/ 480 #define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) 481 #define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) 482 #define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) 483 #define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) 484 #define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) 485 #define IDirect3DIndexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p) 486 #define IDirect3DIndexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p) 487 #define IDirect3DIndexBuffer8_GetType(p) (p)->lpVtbl->GetType(p) 488 /*** IDirect3DIndexBuffer8 methods ***/ 489 #define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) 490 #define IDirect3DIndexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p) 491 #define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) 492 #else 493 /*** IUnknown methods ***/ 494 #define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 495 #define IDirect3DIndexBuffer8_AddRef(p) (p)->AddRef() 496 #define IDirect3DIndexBuffer8_Release(p) (p)->Release() 497 /*** IDirect3DIndexBuffer8 methods: IDirect3DResource8 ***/ 498 #define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->GetDevice(a) 499 #define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) 500 #define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) 501 #define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a) 502 #define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->SetPriority(a) 503 #define IDirect3DIndexBuffer8_GetPriority(p) (p)->GetPriority() 504 #define IDirect3DIndexBuffer8_PreLoad(p) (p)->PreLoad() 505 #define IDirect3DIndexBuffer8_GetType(p) (p)->GetType() 506 /*** IDirect3DIndexBuffer8 methods ***/ 507 #define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) 508 #define IDirect3DIndexBuffer8_Unlock(p) (p)->Unlock() 509 #define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->GetDesc(a) 510 #endif 511 512 /***************************************************************************** 513 * IDirect3DBaseTexture8 interface 514 */ 515 #define INTERFACE IDirect3DBaseTexture8 516 DECLARE_INTERFACE_(IDirect3DBaseTexture8,IDirect3DResource8) 517 { 518 /*** IUnknown methods ***/ 519 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 520 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 521 STDMETHOD_(ULONG,Release)(THIS) PURE; 522 /*** IDirect3DResource8 methods ***/ 523 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE; 524 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE; 525 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE; 526 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; 527 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE; 528 STDMETHOD_(DWORD,GetPriority)(THIS) PURE; 529 STDMETHOD_(void,PreLoad)(THIS) PURE; 530 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE; 531 /*** IDirect3DBaseTexture8 methods ***/ 532 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE; 533 STDMETHOD_(DWORD,GetLOD)(THIS) PURE; 534 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE; 535 }; 536 #undef INTERFACE 537 538 #if !defined(__cplusplus) || defined(CINTERFACE) 539 /*** IUnknown methods ***/ 540 #define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 541 #define IDirect3DBaseTexture8_AddRef(p) (p)->lpVtbl->AddRef(p) 542 #define IDirect3DBaseTexture8_Release(p) (p)->lpVtbl->Release(p) 543 /*** IDirect3DBaseTexture8 methods: IDirect3DResource8 ***/ 544 #define IDirect3DBaseTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) 545 #define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) 546 #define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) 547 #define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) 548 #define IDirect3DBaseTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) 549 #define IDirect3DBaseTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p) 550 #define IDirect3DBaseTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p) 551 #define IDirect3DBaseTexture8_GetType(p) (p)->lpVtbl->GetType(p) 552 /*** IDirect3DBaseTexture8 methods ***/ 553 #define IDirect3DBaseTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) 554 #define IDirect3DBaseTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p) 555 #define IDirect3DBaseTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) 556 #else 557 /*** IUnknown methods ***/ 558 #define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 559 #define IDirect3DBaseTexture8_AddRef(p) (p)->AddRef() 560 #define IDirect3DBaseTexture8_Release(p) (p)->Release() 561 /*** IDirect3DBaseTexture8 methods: IDirect3DResource8 ***/ 562 #define IDirect3DBaseTexture8_GetDevice(p,a) (p)->GetDevice(a) 563 #define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) 564 #define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) 565 #define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a) 566 #define IDirect3DBaseTexture8_SetPriority(p,a) (p)->SetPriority(a) 567 #define IDirect3DBaseTexture8_GetPriority(p) (p)->GetPriority() 568 #define IDirect3DBaseTexture8_PreLoad(p) (p)->PreLoad() 569 #define IDirect3DBaseTexture8_GetType(p) (p)->GetType() 570 /*** IDirect3DBaseTexture8 methods ***/ 571 #define IDirect3DBaseTexture8_SetLOD(p,a) (p)->SetLOD(a) 572 #define IDirect3DBaseTexture8_GetLOD(p) (p)->GetLOD() 573 #define IDirect3DBaseTexture8_GetLevelCount(p) (p)->GetLevelCount() 574 #endif 575 576 /***************************************************************************** 577 * IDirect3DCubeTexture8 interface 578 */ 579 #define INTERFACE IDirect3DCubeTexture8 580 DECLARE_INTERFACE_(IDirect3DCubeTexture8,IDirect3DBaseTexture8) 581 { 582 /*** IUnknown methods ***/ 583 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 584 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 585 STDMETHOD_(ULONG,Release)(THIS) PURE; 586 /*** IDirect3DResource8 methods ***/ 587 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE; 588 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE; 589 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE; 590 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; 591 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE; 592 STDMETHOD_(DWORD,GetPriority)(THIS) PURE; 593 STDMETHOD_(void,PreLoad)(THIS) PURE; 594 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE; 595 /*** IDirect3DBaseTexture8 methods ***/ 596 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE; 597 STDMETHOD_(DWORD,GetLOD)(THIS) PURE; 598 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE; 599 /*** IDirect3DCubeTexture8 methods ***/ 600 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC * pDesc) PURE; 601 STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,IDirect3DSurface8 ** ppCubeMapSurface) PURE; 602 STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,D3DLOCKED_RECT * pLockedRect,CONST RECT * pRect,DWORD Flags) PURE; 603 STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level) PURE; 604 STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType,CONST RECT * pDirtyRect) PURE; 605 }; 606 #undef INTERFACE 607 608 #if !defined(__cplusplus) || defined(CINTERFACE) 609 /*** IUnknown methods ***/ 610 #define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 611 #define IDirect3DCubeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p) 612 #define IDirect3DCubeTexture8_Release(p) (p)->lpVtbl->Release(p) 613 /*** IDirect3DCubeTexture8 methods: IDirect3DResource8 ***/ 614 #define IDirect3DCubeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) 615 #define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) 616 #define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) 617 #define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) 618 #define IDirect3DCubeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) 619 #define IDirect3DCubeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p) 620 #define IDirect3DCubeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p) 621 #define IDirect3DCubeTexture8_GetType(p) (p)->lpVtbl->GetType(p) 622 /*** IDirect3DCubeTexture8 methods: IDirect3DBaseTexture8 ***/ 623 #define IDirect3DCubeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) 624 #define IDirect3DCubeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p) 625 #define IDirect3DCubeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) 626 /*** IDirect3DCubeTexture8 methods ***/ 627 #define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) 628 #define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c) 629 #define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e) 630 #define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b) 631 #define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b) 632 #else 633 /*** IUnknown methods ***/ 634 #define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 635 #define IDirect3DCubeTexture8_AddRef(p) (p)->AddRef() 636 #define IDirect3DCubeTexture8_Release(p) (p)->Release() 637 /*** IDirect3DCubeTexture8 methods: IDirect3DResource8 ***/ 638 #define IDirect3DCubeTexture8_GetDevice(p,a) (p)->GetDevice(a) 639 #define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) 640 #define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) 641 #define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a) 642 #define IDirect3DCubeTexture8_SetPriority(p,a) (p)->SetPriority(a) 643 #define IDirect3DCubeTexture8_GetPriority(p) (p)->GetPriority() 644 #define IDirect3DCubeTexture8_PreLoad(p) (p)->PreLoad() 645 #define IDirect3DCubeTexture8_GetType(p) (p)->GetType() 646 /*** IDirect3DCubeTexture8 methods: IDirect3DBaseTexture8 ***/ 647 #define IDirect3DCubeTexture8_SetLOD(p,a) (p)->SetLOD(a) 648 #define IDirect3DCubeTexture8_GetLOD(p) (p)->GetLOD() 649 #define IDirect3DCubeTexture8_GetLevelCount(p) (p)->GetLevelCount() 650 /*** IDirect3DCubeTexture8 methods ***/ 651 #define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) 652 #define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c) 653 #define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e) 654 #define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->UnlockRect(a,b) 655 #define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b) 656 #endif 657 658 /***************************************************************************** 659 * IDirect3DTexture8 interface 660 */ 661 #define INTERFACE IDirect3DTexture8 662 DECLARE_INTERFACE_(IDirect3DTexture8,IDirect3DBaseTexture8) 663 { 664 /*** IUnknown methods ***/ 665 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 666 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 667 STDMETHOD_(ULONG,Release)(THIS) PURE; 668 /*** IDirect3DResource8 methods ***/ 669 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE; 670 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE; 671 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE; 672 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; 673 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE; 674 STDMETHOD_(DWORD,GetPriority)(THIS) PURE; 675 STDMETHOD_(void,PreLoad)(THIS) PURE; 676 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE; 677 /*** IDirect3DBaseTexture8 methods ***/ 678 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE; 679 STDMETHOD_(DWORD,GetLOD)(THIS) PURE; 680 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE; 681 /*** IDirect3DTexture8 methods ***/ 682 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC * pDesc) PURE; 683 STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level,IDirect3DSurface8 ** ppSurfaceLevel) PURE; 684 STDMETHOD(LockRect)(THIS_ UINT Level,D3DLOCKED_RECT * pLockedRect,CONST RECT * pRect,DWORD Flags) PURE; 685 STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE; 686 STDMETHOD(AddDirtyRect)(THIS_ CONST RECT * pDirtyRect) PURE; 687 }; 688 #undef INTERFACE 689 690 #if !defined(__cplusplus) || defined(CINTERFACE) 691 /*** IUnknown methods ***/ 692 #define IDirect3DTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 693 #define IDirect3DTexture8_AddRef(p) (p)->lpVtbl->AddRef(p) 694 #define IDirect3DTexture8_Release(p) (p)->lpVtbl->Release(p) 695 /*** IDirect3DTexture8 methods: IDirect3DResource8 ***/ 696 #define IDirect3DTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) 697 #define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) 698 #define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) 699 #define IDirect3DTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) 700 #define IDirect3DTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) 701 #define IDirect3DTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p) 702 #define IDirect3DTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p) 703 #define IDirect3DTexture8_GetType(p) (p)->lpVtbl->GetType(p) 704 /*** IDirect3DTexture8 methods: IDirect3DBaseTexture8 ***/ 705 #define IDirect3DTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) 706 #define IDirect3DTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p) 707 #define IDirect3DTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) 708 /*** IDirect3DTexture8 methods ***/ 709 #define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) 710 #define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b) 711 #define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d) 712 #define IDirect3DTexture8_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a) 713 #define IDirect3DTexture8_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a) 714 #else 715 /*** IUnknown methods ***/ 716 #define IDirect3DTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 717 #define IDirect3DTexture8_AddRef(p) (p)->AddRef() 718 #define IDirect3DTexture8_Release(p) (p)->Release() 719 /*** IDirect3DTexture8 methods: IDirect3DResource8 ***/ 720 #define IDirect3DTexture8_GetDevice(p,a) (p)->GetDevice(a) 721 #define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) 722 #define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) 723 #define IDirect3DTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a) 724 #define IDirect3DTexture8_SetPriority(p,a) (p)->SetPriority(a) 725 #define IDirect3DTexture8_GetPriority(p) (p)->GetPriority() 726 #define IDirect3DTexture8_PreLoad(p) (p)->PreLoad() 727 #define IDirect3DTexture8_GetType(p) (p)->GetType() 728 /*** IDirect3DTexture8 methods: IDirect3DBaseTexture8 ***/ 729 #define IDirect3DTexture8_SetLOD(p,a) (p)->SetLOD(a) 730 #define IDirect3DTexture8_GetLOD(p) (p)->GetLOD() 731 #define IDirect3DTexture8_GetLevelCount(p) (p)->GetLevelCount() 732 /*** IDirect3DTexture8 methods ***/ 733 #define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) 734 #define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b) 735 #define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d) 736 #define IDirect3DTexture8_UnlockRect(p,a) (p)->UnlockRect(a) 737 #define IDirect3DTexture8_AddDirtyRect(p,a) (p)->AddDirtyRect(a) 738 #endif 739 740 /***************************************************************************** 741 * IDirect3DVolumeTexture8 interface 742 */ 743 #define INTERFACE IDirect3DVolumeTexture8 744 DECLARE_INTERFACE_(IDirect3DVolumeTexture8,IDirect3DBaseTexture8) 745 { 746 /*** IUnknown methods ***/ 747 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 748 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 749 STDMETHOD_(ULONG,Release)(THIS) PURE; 750 /*** IDirect3DResource8 methods ***/ 751 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice8 ** ppDevice) PURE; 752 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE; 753 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE; 754 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; 755 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE; 756 STDMETHOD_(DWORD,GetPriority)(THIS) PURE; 757 STDMETHOD_(void,PreLoad)(THIS) PURE; 758 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE; 759 /*** IDirect3DBaseTexture8 methods ***/ 760 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE; 761 STDMETHOD_(DWORD,GetLOD)(THIS) PURE; 762 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE; 763 /*** IDirect3DVolumeTexture8 methods ***/ 764 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DVOLUME_DESC * pDesc) PURE; 765 STDMETHOD(GetVolumeLevel)(THIS_ UINT Level,IDirect3DVolume8 ** ppVolumeLevel) PURE; 766 STDMETHOD(LockBox)(THIS_ UINT Level,D3DLOCKED_BOX * pLockedVolume,CONST D3DBOX * pBox,DWORD Flags) PURE; 767 STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE; 768 STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX * pDirtyBox) PURE; 769 }; 770 #undef INTERFACE 771 772 #if !defined(__cplusplus) || defined(CINTERFACE) 773 /*** IUnknown methods ***/ 774 #define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 775 #define IDirect3DVolumeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p) 776 #define IDirect3DVolumeTexture8_Release(p) (p)->lpVtbl->Release(p) 777 /*** IDirect3DVolumeTexture8 methods: IDirect3DResource8 ***/ 778 #define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) 779 #define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) 780 #define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) 781 #define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) 782 #define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) 783 #define IDirect3DVolumeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p) 784 #define IDirect3DVolumeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p) 785 #define IDirect3DVolumeTexture8_GetType(p) (p)->lpVtbl->GetType(p) 786 /*** IDirect3DVolumeTexture8 methods: IDirect3DBaseTexture8 ***/ 787 #define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) 788 #define IDirect3DVolumeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p) 789 #define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) 790 /*** IDirect3DVolumeTexture8 methods ***/ 791 #define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) 792 #define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b) 793 #define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d) 794 #define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a) 795 #define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a) 796 #else 797 /*** IUnknown methods ***/ 798 #define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 799 #define IDirect3DVolumeTexture8_AddRef(p) (p)->AddRef() 800 #define IDirect3DVolumeTexture8_Release(p) (p)->Release() 801 /*** IDirect3DVolumeTexture8 methods: IDirect3DResource8 ***/ 802 #define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->GetDevice(a) 803 #define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) 804 #define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) 805 #define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a) 806 #define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->SetPriority(a) 807 #define IDirect3DVolumeTexture8_GetPriority(p) (p)->GetPriority() 808 #define IDirect3DVolumeTexture8_PreLoad(p) (p)->PreLoad() 809 #define IDirect3DVolumeTexture8_GetType(p) (p)->GetType() 810 /*** IDirect3DVolumeTexture8 methods: IDirect3DBaseTexture8 ***/ 811 #define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->SetLOD(a) 812 #define IDirect3DVolumeTexture8_GetLOD(p) (p)->GetLOD() 813 #define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->GetLevelCount() 814 /*** IDirect3DVolumeTexture8 methods ***/ 815 #define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) 816 #define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b) 817 #define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d) 818 #define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->UnlockBox(a) 819 #define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->AddDirtyBox(a) 820 #endif 821 822 /***************************************************************************** 823 * IDirect3DDevice8 interface 824 */ 825 #define INTERFACE IDirect3DDevice8 826 DECLARE_INTERFACE_(IDirect3DDevice8,IUnknown) 827 { 828 /*** IUnknown methods ***/ 829 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; 830 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 831 STDMETHOD_(ULONG,Release)(THIS) PURE; 832 /*** IDirect3DDevice8 methods ***/ 833 STDMETHOD(TestCooperativeLevel)(THIS) PURE; 834 STDMETHOD_(UINT,GetAvailableTextureMem)(THIS) PURE; 835 STDMETHOD(ResourceManagerDiscardBytes)(THIS_ DWORD Bytes) PURE; 836 STDMETHOD(GetDirect3D)(THIS_ IDirect3D8 ** ppD3D8) PURE; 837 STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS8 * pCaps) PURE; 838 STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE * pMode) PURE; 839 STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS * pParameters) PURE; 840 STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, IDirect3DSurface8 * pCursorBitmap) PURE; 841 STDMETHOD_(void,SetCursorPosition)(THIS_ UINT XScreenSpace, UINT YScreenSpace,DWORD Flags) PURE; 842 STDMETHOD_(WINBOOL,ShowCursor)(THIS_ WINBOOL bShow) PURE; 843 STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS * pPresentationParameters, IDirect3DSwapChain8 ** pSwapChain) PURE; 844 STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS * pPresentationParameters) PURE; 845 STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect,CONST RECT * pDestRect,HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE; 846 STDMETHOD(GetBackBuffer)(THIS_ UINT BackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface8 ** ppBackBuffer) PURE; 847 STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS * pRasterStatus) PURE; 848 STDMETHOD_(void,SetGammaRamp)(THIS_ DWORD Flags,CONST D3DGAMMARAMP * pRamp) PURE; 849 STDMETHOD_(void,GetGammaRamp)(THIS_ D3DGAMMARAMP * pRamp) PURE; 850 STDMETHOD(CreateTexture)(THIS_ UINT Width,UINT Height,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DTexture8 ** ppTexture) PURE; 851 STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width,UINT Height,UINT Depth,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DVolumeTexture8 ** ppVolumeTexture) PURE; 852 STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DCubeTexture8 ** ppCubeTexture) PURE; 853 STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length,DWORD Usage,DWORD FVF,D3DPOOL Pool,IDirect3DVertexBuffer8 ** ppVertexBuffer) PURE; 854 STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DIndexBuffer8 ** ppIndexBuffer) PURE; 855 STDMETHOD(CreateRenderTarget)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,WINBOOL Lockable,IDirect3DSurface8 ** ppSurface) PURE; 856 STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,IDirect3DSurface8 ** ppSurface) PURE; 857 STDMETHOD(CreateImageSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,IDirect3DSurface8 ** ppSurface) PURE; 858 STDMETHOD(CopyRects)(THIS_ IDirect3DSurface8 * pSourceSurface,CONST RECT * pSourceRectsArray,UINT cRects,IDirect3DSurface8 * pDestinationSurface,CONST POINT * pDestPointsArray) PURE; 859 STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture8 * pSourceTexture,IDirect3DBaseTexture8 * pDestinationTexture) PURE; 860 STDMETHOD(GetFrontBuffer)(THIS_ IDirect3DSurface8 * pDestSurface) PURE; 861 STDMETHOD(SetRenderTarget)(THIS_ IDirect3DSurface8 * pRenderTarget,IDirect3DSurface8 * pNewZStencil) PURE; 862 STDMETHOD(GetRenderTarget)(THIS_ IDirect3DSurface8 ** ppRenderTarget) PURE; 863 STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface8 ** ppZStencilSurface) PURE; 864 STDMETHOD(BeginScene)(THIS) PURE; 865 STDMETHOD(EndScene)(THIS) PURE; 866 STDMETHOD(Clear)(THIS_ DWORD Count,CONST D3DRECT * pRects,DWORD Flags,D3DCOLOR Color,float Z,DWORD Stencil) PURE; 867 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,CONST D3DMATRIX * pMatrix) PURE; 868 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,D3DMATRIX * pMatrix) PURE; 869 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX * pMatrix) PURE; 870 STDMETHOD(SetViewport)(THIS_ CONST D3DVIEWPORT8 * pViewport) PURE; 871 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT8 * pViewport) PURE; 872 STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL8 * pMaterial) PURE; 873 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL8 *pMaterial) PURE; 874 STDMETHOD(SetLight)(THIS_ DWORD Index,CONST D3DLIGHT8 * pLight) PURE; 875 STDMETHOD(GetLight)(THIS_ DWORD Index,D3DLIGHT8 * pLight) PURE; 876 STDMETHOD(LightEnable)(THIS_ DWORD Index,WINBOOL Enable) PURE; 877 STDMETHOD(GetLightEnable)(THIS_ DWORD Index,WINBOOL * pEnable) PURE; 878 STDMETHOD(SetClipPlane)(THIS_ DWORD Index,CONST float * pPlane) PURE; 879 STDMETHOD(GetClipPlane)(THIS_ DWORD Index,float * pPlane) PURE; 880 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD Value) PURE; 881 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD * pValue) PURE; 882 STDMETHOD(BeginStateBlock)(THIS) PURE; 883 STDMETHOD(EndStateBlock)(THIS_ DWORD * pToken) PURE; 884 STDMETHOD(ApplyStateBlock)(THIS_ DWORD Token) PURE; 885 STDMETHOD(CaptureStateBlock)(THIS_ DWORD Token) PURE; 886 STDMETHOD(DeleteStateBlock)(THIS_ DWORD Token) PURE; 887 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type,DWORD * pToken) PURE; 888 STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS8 * pClipStatus) PURE; 889 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS8 * pClipStatus) PURE; 890 STDMETHOD(GetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8 ** ppTexture) PURE; 891 STDMETHOD(SetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8 * pTexture) PURE; 892 STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD * pValue) PURE; 893 STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE; 894 STDMETHOD(ValidateDevice)(THIS_ DWORD * pNumPasses) PURE; 895 STDMETHOD(GetInfo)(THIS_ DWORD DevInfoID,void * pDevInfoStruct,DWORD DevInfoStructSize) PURE; 896 STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber,CONST PALETTEENTRY * pEntries) PURE; 897 STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY * pEntries) PURE; 898 STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE; 899 STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT * PaletteNumber) PURE; 900 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE; 901 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT minIndex,UINT NumVertices,UINT startIndex,UINT primCount) PURE; 902 STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT PrimitiveCount,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE; 903 STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT MinVertexIndex,UINT NumVertexIndices,UINT PrimitiveCount,CONST void * pIndexData,D3DFORMAT IndexDataFormat,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE; 904 STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex,UINT DestIndex,UINT VertexCount,IDirect3DVertexBuffer8 * pDestBuffer,DWORD Flags) PURE; 905 STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD * pDeclaration,CONST DWORD * pFunction,DWORD * pHandle,DWORD Usage) PURE; 906 STDMETHOD(SetVertexShader)(THIS_ DWORD Handle) PURE; 907 STDMETHOD(GetVertexShader)(THIS_ DWORD * pHandle) PURE; 908 STDMETHOD(DeleteVertexShader)(THIS_ DWORD Handle) PURE; 909 STDMETHOD(SetVertexShaderConstant)(THIS_ DWORD Register,CONST void * pConstantData,DWORD ConstantCount) PURE; 910 STDMETHOD(GetVertexShaderConstant)(THIS_ DWORD Register,void * pConstantData,DWORD ConstantCount) PURE; 911 STDMETHOD(GetVertexShaderDeclaration)(THIS_ DWORD Handle,void * pData,DWORD * pSizeOfData) PURE; 912 STDMETHOD(GetVertexShaderFunction)(THIS_ DWORD Handle,void * pData,DWORD * pSizeOfData) PURE; 913 STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8 * pStreamData,UINT Stride) PURE; 914 STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8 ** ppStreamData,UINT * pStride) PURE; 915 STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer8 * pIndexData,UINT BaseVertexIndex) PURE; 916 STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer8 ** ppIndexData,UINT * pBaseVertexIndex) PURE; 917 STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD * pFunction,DWORD * pHandle) PURE; 918 STDMETHOD(SetPixelShader)(THIS_ DWORD Handle) PURE; 919 STDMETHOD(GetPixelShader)(THIS_ DWORD * pHandle) PURE; 920 STDMETHOD(DeletePixelShader)(THIS_ DWORD Handle) PURE; 921 STDMETHOD(SetPixelShaderConstant)(THIS_ DWORD Register,CONST void * pConstantData,DWORD ConstantCount) PURE; 922 STDMETHOD(GetPixelShaderConstant)(THIS_ DWORD Register,void * pConstantData,DWORD ConstantCount) PURE; 923 STDMETHOD(GetPixelShaderFunction)(THIS_ DWORD Handle,void * pData,DWORD * pSizeOfData) PURE; 924 STDMETHOD(DrawRectPatch)(THIS_ UINT Handle,CONST float * pNumSegs,CONST D3DRECTPATCH_INFO * pRectPatchInfo) PURE; 925 STDMETHOD(DrawTriPatch)(THIS_ UINT Handle,CONST float * pNumSegs,CONST D3DTRIPATCH_INFO * pTriPatchInfo) PURE; 926 STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE; 927 }; 928 #undef INTERFACE 929 930 #if !defined(__cplusplus) || defined(CINTERFACE) 931 /*** IUnknown methods ***/ 932 #define IDirect3DDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 933 #define IDirect3DDevice8_AddRef(p) (p)->lpVtbl->AddRef(p) 934 #define IDirect3DDevice8_Release(p) (p)->lpVtbl->Release(p) 935 /*** IDirect3DDevice8 methods ***/ 936 #define IDirect3DDevice8_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p) 937 #define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p) 938 #define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->lpVtbl->ResourceManagerDiscardBytes(p,a) 939 #define IDirect3DDevice8_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) 940 #define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a) 941 #define IDirect3DDevice8_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a) 942 #define IDirect3DDevice8_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a) 943 #define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c) 944 #define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c) 945 #define IDirect3DDevice8_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a) 946 #define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b) 947 #define IDirect3DDevice8_Reset(p,a) (p)->lpVtbl->Reset(p,a) 948 #define IDirect3DDevice8_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d) 949 #define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c) 950 #define IDirect3DDevice8_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a) 951 #define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b) 952 #define IDirect3DDevice8_GetGammaRamp(p,a) (p)->lpVtbl->GetGammaRamp(p,a) 953 #define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g) 954 #define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h) 955 #define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f) 956 #define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e) 957 #define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e) 958 #define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f) 959 #define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e) 960 #define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->lpVtbl->CreateImageSurface(p,a,b,c,d) 961 #define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->lpVtbl->CopyRects(p,a,b,c,d,e) 962 #define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b) 963 #define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->lpVtbl->GetFrontBuffer(p,a) 964 #define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) 965 #define IDirect3DDevice8_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a) 966 #define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a) 967 #define IDirect3DDevice8_BeginScene(p) (p)->lpVtbl->BeginScene(p) 968 #define IDirect3DDevice8_EndScene(p) (p)->lpVtbl->EndScene(p) 969 #define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f) 970 #define IDirect3DDevice8_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) 971 #define IDirect3DDevice8_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) 972 #define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) 973 #define IDirect3DDevice8_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) 974 #define IDirect3DDevice8_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) 975 #define IDirect3DDevice8_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) 976 #define IDirect3DDevice8_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) 977 #define IDirect3DDevice8_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b) 978 #define IDirect3DDevice8_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b) 979 #define IDirect3DDevice8_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b) 980 #define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b) 981 #define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b) 982 #define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b) 983 #define IDirect3DDevice8_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) 984 #define IDirect3DDevice8_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) 985 #define IDirect3DDevice8_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p) 986 #define IDirect3DDevice8_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a) 987 #define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a) 988 #define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a) 989 #define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a) 990 #define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b) 991 #define IDirect3DDevice8_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) 992 #define IDirect3DDevice8_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) 993 #define IDirect3DDevice8_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b) 994 #define IDirect3DDevice8_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b) 995 #define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c) 996 #define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c) 997 #define IDirect3DDevice8_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a) 998 #define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c) 999 #define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b) 1000 #define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b) 1001 #define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a) 1002 #define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a) 1003 #define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c) 1004 #define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e) 1005 #define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d) 1006 #define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) 1007 #define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->lpVtbl->processVertices(p,a,b,c,d,e) 1008 #define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d) 1009 #define IDirect3DDevice8_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a) 1010 #define IDirect3DDevice8_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a) 1011 #define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->lpVtbl->DeleteVertexShader(p,a) 1012 #define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstant(p,a,b,c) 1013 #define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstant(p,a,b,c) 1014 #define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->lpVtbl->GetVertexShaderDeclaration(p,a,b,c) 1015 #define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->lpVtbl->GetVertexShaderFunction(p,a,b,c) 1016 #define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->lpVtbl->SetStreamSource(p,a,b,c) 1017 #define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->lpVtbl->GetStreamSource(p,a,b,c) 1018 #define IDirect3DDevice8_SetIndices(p,a,b) (p)->lpVtbl->SetIndices(p,a,b) 1019 #define IDirect3DDevice8_GetIndices(p,a,b) (p)->lpVtbl->GetIndices(p,a,b) 1020 #define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b) 1021 #define IDirect3DDevice8_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a) 1022 #define IDirect3DDevice8_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a) 1023 #define IDirect3DDevice8_DeletePixelShader(p,a) (p)->lpVtbl->DeletePixelShader(p,a) 1024 #define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstant(p,a,b,c) 1025 #define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstant(p,a,b,c) 1026 #define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->lpVtbl->GetPixelShaderFunction(p,a,b,c) 1027 #define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c) 1028 #define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c) 1029 #define IDirect3DDevice8_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a) 1030 #else 1031 /*** IUnknown methods ***/ 1032 #define IDirect3DDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) 1033 #define IDirect3DDevice8_AddRef(p) (p)->AddRef() 1034 #define IDirect3DDevice8_Release(p) (p)->Release() 1035 /*** IDirect3DDevice8 methods ***/ 1036 #define IDirect3DDevice8_TestCooperativeLevel(p) (p)->TestCooperativeLevel() 1037 #define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem() 1038 #define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->ResourceManagerDiscardBytes(a) 1039 #define IDirect3DDevice8_GetDirect3D(p,a) (p)->GetDirect3D(a) 1040 #define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a) 1041 #define IDirect3DDevice8_GetDisplayMode(p,a) (p)->GetDisplayMode(a) 1042 #define IDirect3DDevice8_GetCreationParameters(p,a) (p)->GetCreationParameters(a) 1043 #define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c) 1044 #define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c) 1045 #define IDirect3DDevice8_ShowCursor(p,a) (p)->ShowCursor(a) 1046 #define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b) 1047 #define IDirect3DDevice8_Reset(p,a) (p)->Reset(a) 1048 #define IDirect3DDevice8_Present(p,a,b,c,d) (p)->Present(a,b,c,d) 1049 #define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c) 1050 #define IDirect3DDevice8_GetRasterStatus(p,a) (p)->GetRasterStatus(a) 1051 #define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->SetGammaRamp(a,b) 1052 #define IDirect3DDevice8_GetGammaRamp(p,a) (p)->GetGammaRamp(a) 1053 #define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->CreateTexture(a,b,c,d,e,f,g) 1054 #define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h) 1055 #define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->CreateCubeTexture(a,b,c,d,e,f) 1056 #define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->CreateVertexBuffer(a,b,c,d,e) 1057 #define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->CreateIndexBuffer(a,b,c,d,e) 1058 #define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->CreateRenderTarget(a,b,c,d,e,f) 1059 #define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->CreateDepthStencilSurface(a,b,c,d,e) 1060 #define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->CreateImageSurface(a,b,c,d) 1061 #define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->CopyRects(a,b,c,d,e) 1062 #define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b) 1063 #define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->GetFrontBuffer(a) 1064 #define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) 1065 #define IDirect3DDevice8_GetRenderTarget(p,a) (p)->GetRenderTarget(a) 1066 #define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a) 1067 #define IDirect3DDevice8_BeginScene(p) (p)->BeginScene() 1068 #define IDirect3DDevice8_EndScene(p) (p)->EndScene() 1069 #define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f) 1070 #define IDirect3DDevice8_SetTransform(p,a,b) (p)->SetTransform(a,b) 1071 #define IDirect3DDevice8_GetTransform(p,a,b) (p)->GetTransform(a,b) 1072 #define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) 1073 #define IDirect3DDevice8_SetViewport(p,a) (p)->SetViewport(a) 1074 #define IDirect3DDevice8_GetViewport(p,a) (p)->GetViewport(a) 1075 #define IDirect3DDevice8_SetMaterial(p,a) (p)->SetMaterial(a) 1076 #define IDirect3DDevice8_GetMaterial(p,a) (p)->GetMaterial(a) 1077 #define IDirect3DDevice8_SetLight(p,a,b) (p)->SetLight(a,b) 1078 #define IDirect3DDevice8_GetLight(p,a,b) (p)->GetLight(a,b) 1079 #define IDirect3DDevice8_LightEnable(p,a,b) (p)->LightEnable(a,b) 1080 #define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b) 1081 #define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b) 1082 #define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b) 1083 #define IDirect3DDevice8_SetRenderState(p,a,b) (p)->SetRenderState(a,b) 1084 #define IDirect3DDevice8_GetRenderState(p,a,b) (p)->GetRenderState(a,b) 1085 #define IDirect3DDevice8_BeginStateBlock(p) (p)->BeginStateBlock() 1086 #define IDirect3DDevice8_EndStateBlock(p,a) (p)->EndStateBlock(a) 1087 #define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a) 1088 #define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a) 1089 #define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a) 1090 #define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b) 1091 #define IDirect3DDevice8_SetClipStatus(p,a) (p)->SetClipStatus(a) 1092 #define IDirect3DDevice8_GetClipStatus(p,a) (p)->GetClipStatus(a) 1093 #define IDirect3DDevice8_GetTexture(p,a,b) (p)->GetTexture(a,b) 1094 #define IDirect3DDevice8_SetTexture(p,a,b) (p)->SetTexture(a,b) 1095 #define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c) 1096 #define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c) 1097 #define IDirect3DDevice8_ValidateDevice(p,a) (p)->ValidateDevice(a) 1098 #define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c) 1099 #define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b) 1100 #define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b) 1101 #define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a) 1102 #define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a) 1103 #define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c) 1104 #define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->DrawIndexedPrimitive(a,b,c,d,e) 1105 #define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d) 1106 #define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h) 1107 #define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->processVertices(a,b,c,d,e) 1108 #define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->CreateVertexShader(a,b,c,d) 1109 #define IDirect3DDevice8_SetVertexShader(p,a) (p)->SetVertexShader(a) 1110 #define IDirect3DDevice8_GetVertexShader(p,a) (p)->GetVertexShader(a) 1111 #define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->DeleteVertexShader(a) 1112 #define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->SetVertexShaderConstant(a,b,c) 1113 #define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->GetVertexShaderConstant(a,b,c) 1114 #define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->GetVertexShaderDeclaration(a,b,c) 1115 #define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->GetVertexShaderFunction(a,b,c) 1116 #define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->SetStreamSource(a,b,c) 1117 #define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->GetStreamSource(a,b,c) 1118 #define IDirect3DDevice8_SetIndices(p,a,b) (p)->SetIndices(a,b) 1119 #define IDirect3DDevice8_GetIndices(p,a,b) (p)->GetIndices(a,b) 1120 #define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b) 1121 #define IDirect3DDevice8_SetPixelShader(p,a) (p)->SetPixelShader(a) 1122 #define IDirect3DDevice8_GetPixelShader(p,a) (p)->GetPixelShader(a) 1123 #define IDirect3DDevice8_DeletePixelShader(p,a) (p)->DeletePixelShader(a) 1124 #define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->SetPixelShaderConstant(a,b,c) 1125 #define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->GetPixelShaderConstant(a,b,c) 1126 #define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->GetPixelShaderFunction(a,b,c) 1127 #define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c) 1128 #define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c) 1129 #define IDirect3DDevice8_DeletePatch(p,a) (p)->DeletePatch(a) 1130 #endif 1131 1132 #ifdef __cplusplus 1133 extern "C" { 1134 #endif /* defined(__cplusplus) */ 1135 1136 /* Define the main entrypoint as well */ 1137 IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion); 1138 1139 #ifdef __cplusplus 1140 } /* extern "C" */ 1141 #endif /* defined(__cplusplus) */ 1142 1143 #endif /* __WINE_D3D8_H */ 1144