d3d9.h 158 KB

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