Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2582 lines
146 KiB

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