d3d9.h 160 KB

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