Leaked source code of windows server 2003
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.

1279 lines
71 KiB

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