d3d8.h 77 KB

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