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.

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