Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1620 lines
74 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: d3drm.h
  6. * Content: Direct3DRM include file
  7. *
  8. ***************************************************************************/
  9. #ifndef _D3DRMOBJ_H_
  10. #define _D3DRMOBJ_H_
  11. #include <objbase.h> /* Use Windows header files */
  12. #define VIRTUAL
  13. #include "d3drmdef.h"
  14. #include "d3d.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /*
  19. * The methods for IUnknown
  20. */
  21. #define IUNKNOWN_METHODS(kind) \
  22. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) kind; \
  23. STDMETHOD_(ULONG, AddRef) (THIS) kind; \
  24. STDMETHOD_(ULONG, Release) (THIS) kind
  25. /*
  26. * The methods for IDirect3DRMObject
  27. */
  28. #define IDIRECT3DRMOBJECT_METHODS(kind) \
  29. STDMETHOD(Clone) (THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) kind; \
  30. STDMETHOD(AddDestroyCallback) (THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) kind; \
  31. STDMETHOD(DeleteDestroyCallback) (THIS_ D3DRMOBJECTCALLBACK, LPVOID argument) kind; \
  32. STDMETHOD(SetAppData) (THIS_ DWORD data) kind; \
  33. STDMETHOD_(DWORD, GetAppData) (THIS) kind; \
  34. STDMETHOD(SetName) (THIS_ LPCSTR) kind; \
  35. STDMETHOD(GetName) (THIS_ LPDWORD lpdwSize, LPSTR lpName) kind; \
  36. STDMETHOD(GetClassName) (THIS_ LPDWORD lpdwSize, LPSTR lpName) kind
  37. #define WIN_TYPES(itype, ptype) \
  38. typedef interface itype FAR *LP##ptype, FAR **LPLP##ptype
  39. WIN_TYPES(IDirect3DRMObject, DIRECT3DRMOBJECT);
  40. WIN_TYPES(IDirect3DRMObject2, DIRECT3DRMOBJECT2);
  41. WIN_TYPES(IDirect3DRMDevice, DIRECT3DRMDEVICE);
  42. WIN_TYPES(IDirect3DRMDevice2, DIRECT3DRMDEVICE2);
  43. WIN_TYPES(IDirect3DRMDevice3, DIRECT3DRMDEVICE3);
  44. WIN_TYPES(IDirect3DRMViewport, DIRECT3DRMVIEWPORT);
  45. WIN_TYPES(IDirect3DRMViewport2, DIRECT3DRMVIEWPORT2);
  46. WIN_TYPES(IDirect3DRMFrame, DIRECT3DRMFRAME);
  47. WIN_TYPES(IDirect3DRMFrame2, DIRECT3DRMFRAME2);
  48. WIN_TYPES(IDirect3DRMFrame3, DIRECT3DRMFRAME3);
  49. WIN_TYPES(IDirect3DRMVisual, DIRECT3DRMVISUAL);
  50. WIN_TYPES(IDirect3DRMMesh, DIRECT3DRMMESH);
  51. WIN_TYPES(IDirect3DRMMeshBuilder, DIRECT3DRMMESHBUILDER);
  52. WIN_TYPES(IDirect3DRMMeshBuilder2, DIRECT3DRMMESHBUILDER2);
  53. WIN_TYPES(IDirect3DRMMeshBuilder3, DIRECT3DRMMESHBUILDER3);
  54. WIN_TYPES(IDirect3DRMFace, DIRECT3DRMFACE);
  55. WIN_TYPES(IDirect3DRMLight, DIRECT3DRMLIGHT);
  56. WIN_TYPES(IDirect3DRMTexture, DIRECT3DRMTEXTURE);
  57. WIN_TYPES(IDirect3DRMTexture2, DIRECT3DRMTEXTURE2);
  58. WIN_TYPES(IDirect3DRMTexture3, DIRECT3DRMTEXTURE3);
  59. WIN_TYPES(IDirect3DRMWrap, DIRECT3DRMWRAP);
  60. WIN_TYPES(IDirect3DRMMaterial, DIRECT3DRMMATERIAL);
  61. WIN_TYPES(IDirect3DRMMaterial2, DIRECT3DRMMATERIAL2);
  62. WIN_TYPES(IDirect3DRMInterpolator, DIRECT3DRMINTERPOLATOR);
  63. WIN_TYPES(IDirect3DRMAnimation, DIRECT3DRMANIMATION);
  64. WIN_TYPES(IDirect3DRMAnimation2, DIRECT3DRMANIMATION2);
  65. WIN_TYPES(IDirect3DRMAnimationSet, DIRECT3DRMANIMATIONSET);
  66. WIN_TYPES(IDirect3DRMAnimationSet2, DIRECT3DRMANIMATIONSET2);
  67. WIN_TYPES(IDirect3DRMUserVisual, DIRECT3DRMUSERVISUAL);
  68. WIN_TYPES(IDirect3DRMShadow, DIRECT3DRMSHADOW);
  69. WIN_TYPES(IDirect3DRMShadow2, DIRECT3DRMSHADOW2);
  70. WIN_TYPES(IDirect3DRMArray, DIRECT3DRMARRAY);
  71. WIN_TYPES(IDirect3DRMObjectArray, DIRECT3DRMOBJECTARRAY);
  72. WIN_TYPES(IDirect3DRMDeviceArray, DIRECT3DRMDEVICEARRAY);
  73. WIN_TYPES(IDirect3DRMFaceArray, DIRECT3DRMFACEARRAY);
  74. WIN_TYPES(IDirect3DRMViewportArray, DIRECT3DRMVIEWPORTARRAY);
  75. WIN_TYPES(IDirect3DRMFrameArray, DIRECT3DRMFRAMEARRAY);
  76. WIN_TYPES(IDirect3DRMAnimationArray, DIRECT3DRMANIMATIONARRAY);
  77. WIN_TYPES(IDirect3DRMVisualArray, DIRECT3DRMVISUALARRAY);
  78. WIN_TYPES(IDirect3DRMPickedArray, DIRECT3DRMPICKEDARRAY);
  79. WIN_TYPES(IDirect3DRMPicked2Array, DIRECT3DRMPICKED2ARRAY);
  80. WIN_TYPES(IDirect3DRMLightArray, DIRECT3DRMLIGHTARRAY);
  81. WIN_TYPES(IDirect3DRMProgressiveMesh, DIRECT3DRMPROGRESSIVEMESH);
  82. WIN_TYPES(IDirect3DRMClippedVisual, DIRECT3DRMCLIPPEDVISUAL);
  83. /*
  84. * Direct3DRM Object classes
  85. */
  86. DEFINE_GUID(CLSID_CDirect3DRMDevice, 0x4fa3568e, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  87. DEFINE_GUID(CLSID_CDirect3DRMViewport, 0x4fa3568f, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  88. DEFINE_GUID(CLSID_CDirect3DRMFrame, 0x4fa35690, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  89. DEFINE_GUID(CLSID_CDirect3DRMMesh, 0x4fa35691, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  90. DEFINE_GUID(CLSID_CDirect3DRMMeshBuilder, 0x4fa35692, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  91. DEFINE_GUID(CLSID_CDirect3DRMFace, 0x4fa35693, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  92. DEFINE_GUID(CLSID_CDirect3DRMLight, 0x4fa35694, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  93. DEFINE_GUID(CLSID_CDirect3DRMTexture, 0x4fa35695, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  94. DEFINE_GUID(CLSID_CDirect3DRMWrap, 0x4fa35696, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  95. DEFINE_GUID(CLSID_CDirect3DRMMaterial, 0x4fa35697, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  96. DEFINE_GUID(CLSID_CDirect3DRMAnimation, 0x4fa35698, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  97. DEFINE_GUID(CLSID_CDirect3DRMAnimationSet, 0x4fa35699, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  98. DEFINE_GUID(CLSID_CDirect3DRMUserVisual, 0x4fa3569a, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  99. DEFINE_GUID(CLSID_CDirect3DRMShadow, 0x4fa3569b, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  100. DEFINE_GUID(CLSID_CDirect3DRMViewportInterpolator,
  101. 0xde9eaa1, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  102. DEFINE_GUID(CLSID_CDirect3DRMFrameInterpolator,
  103. 0xde9eaa2, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  104. DEFINE_GUID(CLSID_CDirect3DRMMeshInterpolator,
  105. 0xde9eaa3, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  106. DEFINE_GUID(CLSID_CDirect3DRMLightInterpolator,
  107. 0xde9eaa6, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  108. DEFINE_GUID(CLSID_CDirect3DRMMaterialInterpolator,
  109. 0xde9eaa7, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  110. DEFINE_GUID(CLSID_CDirect3DRMTextureInterpolator,
  111. 0xde9eaa8, 0x3b84, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  112. DEFINE_GUID(CLSID_CDirect3DRMProgressiveMesh, 0x4516ec40, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
  113. DEFINE_GUID(CLSID_CDirect3DRMClippedVisual, 0x5434e72d, 0x6d66, 0x11d1, 0xbb, 0xb, 0x0, 0x0, 0xf8, 0x75, 0x86, 0x5a);
  114. /*
  115. * Direct3DRM Object interfaces
  116. */
  117. DEFINE_GUID(IID_IDirect3DRMObject, 0xeb16cb00, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  118. DEFINE_GUID(IID_IDirect3DRMObject2, 0x4516ec7c, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
  119. DEFINE_GUID(IID_IDirect3DRMDevice, 0xe9e19280, 0x6e05, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  120. DEFINE_GUID(IID_IDirect3DRMDevice2, 0x4516ec78, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
  121. DEFINE_GUID(IID_IDirect3DRMDevice3, 0x549f498b, 0xbfeb, 0x11d1, 0x8e, 0xd8, 0x0, 0xa0, 0xc9, 0x67, 0xa4, 0x82);
  122. DEFINE_GUID(IID_IDirect3DRMViewport, 0xeb16cb02, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  123. DEFINE_GUID(IID_IDirect3DRMViewport2, 0x4a1b1be6, 0xbfed, 0x11d1, 0x8e, 0xd8, 0x0, 0xa0, 0xc9, 0x67, 0xa4, 0x82);
  124. DEFINE_GUID(IID_IDirect3DRMFrame, 0xeb16cb03, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  125. DEFINE_GUID(IID_IDirect3DRMFrame2, 0xc3dfbd60, 0x3988, 0x11d0, 0x9e, 0xc2, 0x0, 0x0, 0xc0, 0x29, 0x1a, 0xc3);
  126. DEFINE_GUID(IID_IDirect3DRMFrame3, 0xff6b7f70, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
  127. DEFINE_GUID(IID_IDirect3DRMVisual, 0xeb16cb04, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  128. DEFINE_GUID(IID_IDirect3DRMMesh, 0xa3a80d01, 0x6e12, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  129. DEFINE_GUID(IID_IDirect3DRMMeshBuilder, 0xa3a80d02, 0x6e12, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  130. DEFINE_GUID(IID_IDirect3DRMMeshBuilder2, 0x4516ec77, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  131. DEFINE_GUID(IID_IDirect3DRMMeshBuilder3, 0xff6b7f71, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
  132. DEFINE_GUID(IID_IDirect3DRMFace, 0xeb16cb07, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  133. DEFINE_GUID(IID_IDirect3DRMLight, 0xeb16cb08, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  134. DEFINE_GUID(IID_IDirect3DRMTexture, 0xeb16cb09, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  135. DEFINE_GUID(IID_IDirect3DRMTexture2, 0x120f30c0, 0x1629, 0x11d0, 0x94, 0x1c, 0x0, 0x80, 0xc8, 0xc, 0xfa, 0x7b);
  136. DEFINE_GUID(IID_IDirect3DRMTexture3, 0xff6b7f73, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
  137. DEFINE_GUID(IID_IDirect3DRMWrap, 0xeb16cb0a, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  138. DEFINE_GUID(IID_IDirect3DRMMaterial, 0xeb16cb0b, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  139. DEFINE_GUID(IID_IDirect3DRMMaterial2, 0xff6b7f75, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
  140. DEFINE_GUID(IID_IDirect3DRMAnimation, 0xeb16cb0d, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  141. DEFINE_GUID(IID_IDirect3DRMAnimation2, 0xff6b7f77, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
  142. DEFINE_GUID(IID_IDirect3DRMAnimationSet, 0xeb16cb0e, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  143. DEFINE_GUID(IID_IDirect3DRMAnimationSet2, 0xff6b7f79, 0xa40e, 0x11d1, 0x91, 0xf9, 0x0, 0x0, 0xf8, 0x75, 0x8e, 0x66);
  144. DEFINE_GUID(IID_IDirect3DRMObjectArray, 0x242f6bc2, 0x3849, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  145. DEFINE_GUID(IID_IDirect3DRMDeviceArray, 0xeb16cb10, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  146. DEFINE_GUID(IID_IDirect3DRMViewportArray, 0xeb16cb11, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  147. DEFINE_GUID(IID_IDirect3DRMFrameArray, 0xeb16cb12, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  148. DEFINE_GUID(IID_IDirect3DRMVisualArray, 0xeb16cb13, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  149. DEFINE_GUID(IID_IDirect3DRMLightArray, 0xeb16cb14, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  150. DEFINE_GUID(IID_IDirect3DRMPickedArray, 0xeb16cb16, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  151. DEFINE_GUID(IID_IDirect3DRMFaceArray, 0xeb16cb17, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  152. DEFINE_GUID(IID_IDirect3DRMAnimationArray,
  153. 0xd5f1cae0, 0x4bd7, 0x11d1, 0xb9, 0x74, 0x0, 0x60, 0x8, 0x3e, 0x45, 0xf3);
  154. DEFINE_GUID(IID_IDirect3DRMUserVisual, 0x59163de0, 0x6d43, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  155. DEFINE_GUID(IID_IDirect3DRMShadow, 0xaf359780, 0x6ba3, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  156. DEFINE_GUID(IID_IDirect3DRMShadow2, 0x86b44e25, 0x9c82, 0x11d1, 0xbb, 0xb, 0x0, 0xa0, 0xc9, 0x81, 0xa0, 0xa6);
  157. DEFINE_GUID(IID_IDirect3DRMInterpolator, 0x242f6bc1, 0x3849, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  158. DEFINE_GUID(IID_IDirect3DRMProgressiveMesh, 0x4516ec79, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  159. DEFINE_GUID(IID_IDirect3DRMPicked2Array, 0x4516ec7b, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x0, 0x0, 0xc0, 0x78, 0x1b, 0xc3);
  160. DEFINE_GUID(IID_IDirect3DRMClippedVisual, 0x5434e733, 0x6d66, 0x11d1, 0xbb, 0xb, 0x0, 0x0, 0xf8, 0x75, 0x86, 0x5a);
  161. typedef void (__cdecl *D3DRMOBJECTCALLBACK)(LPDIRECT3DRMOBJECT obj, LPVOID arg);
  162. typedef void (__cdecl *D3DRMFRAMEMOVECALLBACK)(LPDIRECT3DRMFRAME obj, LPVOID arg, D3DVALUE delta);
  163. typedef void (__cdecl *D3DRMFRAME3MOVECALLBACK)(LPDIRECT3DRMFRAME3 obj, LPVOID arg, D3DVALUE delta);
  164. typedef void (__cdecl *D3DRMUPDATECALLBACK)(LPDIRECT3DRMDEVICE obj, LPVOID arg, int, LPD3DRECT);
  165. typedef void (__cdecl *D3DRMDEVICE3UPDATECALLBACK)(LPDIRECT3DRMDEVICE3 obj, LPVOID arg, int, LPD3DRECT);
  166. typedef int (__cdecl *D3DRMUSERVISUALCALLBACK)
  167. ( LPDIRECT3DRMUSERVISUAL obj, LPVOID arg, D3DRMUSERVISUALREASON reason,
  168. LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMVIEWPORT view
  169. );
  170. typedef HRESULT (__cdecl *D3DRMLOADTEXTURECALLBACK)
  171. (char *tex_name, void *arg, LPDIRECT3DRMTEXTURE *);
  172. typedef HRESULT (__cdecl *D3DRMLOADTEXTURE3CALLBACK)
  173. (char *tex_name, void *arg, LPDIRECT3DRMTEXTURE3 *);
  174. typedef void (__cdecl *D3DRMLOADCALLBACK)
  175. (LPDIRECT3DRMOBJECT object, REFIID objectguid, LPVOID arg);
  176. typedef HRESULT (__cdecl *D3DRMDOWNSAMPLECALLBACK)
  177. (LPDIRECT3DRMTEXTURE3 lpDirect3DRMTexture, LPVOID pArg,
  178. LPDIRECTDRAWSURFACE pDDSSrc, LPDIRECTDRAWSURFACE pDDSDst);
  179. typedef HRESULT (__cdecl *D3DRMVALIDATIONCALLBACK)
  180. (LPDIRECT3DRMTEXTURE3 lpDirect3DRMTexture, LPVOID pArg,
  181. DWORD dwFlags, DWORD dwcRects, LPRECT pRects);
  182. typedef struct _D3DRMPICKDESC
  183. {
  184. ULONG ulFaceIdx;
  185. LONG lGroupIdx;
  186. D3DVECTOR vPosition;
  187. } D3DRMPICKDESC, *LPD3DRMPICKDESC;
  188. typedef struct _D3DRMPICKDESC2
  189. {
  190. ULONG ulFaceIdx;
  191. LONG lGroupIdx;
  192. D3DVECTOR dvPosition;
  193. D3DVALUE tu;
  194. D3DVALUE tv;
  195. D3DVECTOR dvNormal;
  196. D3DCOLOR dcColor;
  197. } D3DRMPICKDESC2, *LPD3DRMPICKDESC2;
  198. #undef INTERFACE
  199. #define INTERFACE IDirect3DRMObject
  200. /*
  201. * Base class
  202. */
  203. DECLARE_INTERFACE_(IDirect3DRMObject, IUnknown)
  204. {
  205. IUNKNOWN_METHODS(PURE);
  206. IDIRECT3DRMOBJECT_METHODS(PURE);
  207. };
  208. #undef INTERFACE
  209. #define INTERFACE IDirect3DRMObject2
  210. DECLARE_INTERFACE_(IDirect3DRMObject2, IUnknown)
  211. {
  212. IUNKNOWN_METHODS(PURE);
  213. /*
  214. * IDirect3DRMObject2 methods
  215. */
  216. STDMETHOD(AddDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK lpFunc, LPVOID pvArg) PURE;
  217. STDMETHOD(Clone)(THIS_ LPUNKNOWN pUnkOuter, REFIID riid, LPVOID *ppvObj) PURE; \
  218. STDMETHOD(DeleteDestroyCallback)(THIS_ D3DRMOBJECTCALLBACK lpFunc, LPVOID pvArg) PURE; \
  219. STDMETHOD(GetClientData)(THIS_ DWORD dwID, LPVOID* lplpvData) PURE;
  220. STDMETHOD(GetDirect3DRM)(THIS_ LPDIRECT3DRM* lplpDirect3DRM) PURE;
  221. STDMETHOD(GetName)(THIS_ LPDWORD lpdwSize, LPSTR lpName) PURE;
  222. STDMETHOD(SetClientData)(THIS_ DWORD dwID, LPVOID lpvData, DWORD dwFlags) PURE;
  223. STDMETHOD(SetName)(THIS_ LPCSTR lpName) PURE;
  224. STDMETHOD(GetAge)(THIS_ DWORD dwFlags, LPDWORD pdwAge) PURE;
  225. };
  226. #undef INTERFACE
  227. #define INTERFACE IDirect3DRMVisual
  228. DECLARE_INTERFACE_(IDirect3DRMVisual, IDirect3DRMObject)
  229. {
  230. IUNKNOWN_METHODS(PURE);
  231. IDIRECT3DRMOBJECT_METHODS(PURE);
  232. };
  233. #undef INTERFACE
  234. #define INTERFACE IDirect3DRMDevice
  235. DECLARE_INTERFACE_(IDirect3DRMDevice, IDirect3DRMObject)
  236. {
  237. IUNKNOWN_METHODS(PURE);
  238. IDIRECT3DRMOBJECT_METHODS(PURE);
  239. /*
  240. * IDirect3DRMDevice methods
  241. */
  242. STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE;
  243. STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE;
  244. STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE;
  245. STDMETHOD(Update)(THIS) PURE;
  246. STDMETHOD(AddUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
  247. STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
  248. STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE;
  249. STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE;
  250. STDMETHOD(SetDither)(THIS_ BOOL) PURE;
  251. STDMETHOD(SetShades)(THIS_ DWORD) PURE;
  252. STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
  253. STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE;
  254. STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE;
  255. STDMETHOD_(BOOL, GetDither)(THIS) PURE;
  256. STDMETHOD_(DWORD, GetShades)(THIS) PURE;
  257. STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
  258. STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
  259. STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE;
  260. STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE;
  261. STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
  262. STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE;
  263. STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE;
  264. STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE;
  265. };
  266. #undef INTERFACE
  267. #define INTERFACE IDirect3DRMDevice2
  268. DECLARE_INTERFACE_(IDirect3DRMDevice2, IDirect3DRMDevice)
  269. {
  270. IUNKNOWN_METHODS(PURE);
  271. IDIRECT3DRMOBJECT_METHODS(PURE);
  272. /*
  273. * IDirect3DRMDevice methods
  274. */
  275. STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE;
  276. STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE;
  277. STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE;
  278. STDMETHOD(Update)(THIS) PURE;
  279. STDMETHOD(AddUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
  280. STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
  281. STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE;
  282. STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE;
  283. STDMETHOD(SetDither)(THIS_ BOOL) PURE;
  284. STDMETHOD(SetShades)(THIS_ DWORD) PURE;
  285. STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
  286. STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE;
  287. STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE;
  288. STDMETHOD_(BOOL, GetDither)(THIS) PURE;
  289. STDMETHOD_(DWORD, GetShades)(THIS) PURE;
  290. STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
  291. STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
  292. STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE;
  293. STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE;
  294. STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
  295. STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE;
  296. STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE;
  297. STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE;
  298. /*
  299. * IDirect3DRMDevice2 methods
  300. */
  301. STDMETHOD(InitFromD3D2)(THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev) PURE;
  302. STDMETHOD(InitFromSurface)(THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, LPDIRECTDRAWSURFACE lpDDSBack) PURE;
  303. STDMETHOD(SetRenderMode)(THIS_ DWORD dwFlags) PURE;
  304. STDMETHOD_(DWORD, GetRenderMode)(THIS) PURE;
  305. STDMETHOD(GetDirect3DDevice2)(THIS_ LPDIRECT3DDEVICE2 *) PURE;
  306. };
  307. #undef INTERFACE
  308. #define INTERFACE IDirect3DRMDevice3
  309. DECLARE_INTERFACE_(IDirect3DRMDevice3, IDirect3DRMObject)
  310. {
  311. IUNKNOWN_METHODS(PURE);
  312. IDIRECT3DRMOBJECT_METHODS(PURE);
  313. /*
  314. * IDirect3DRMDevice methods
  315. */
  316. STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE;
  317. STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE;
  318. STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE;
  319. STDMETHOD(Update)(THIS) PURE;
  320. STDMETHOD(AddUpdateCallback)(THIS_ D3DRMDEVICE3UPDATECALLBACK, LPVOID arg) PURE;
  321. STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMDEVICE3UPDATECALLBACK, LPVOID arg) PURE;
  322. STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE;
  323. STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE;
  324. STDMETHOD(SetDither)(THIS_ BOOL) PURE;
  325. STDMETHOD(SetShades)(THIS_ DWORD) PURE;
  326. STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
  327. STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE;
  328. STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE;
  329. STDMETHOD_(BOOL, GetDither)(THIS) PURE;
  330. STDMETHOD_(DWORD, GetShades)(THIS) PURE;
  331. STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
  332. STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
  333. STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE;
  334. STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE;
  335. STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
  336. STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE;
  337. STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE;
  338. STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE;
  339. /*
  340. * IDirect3DRMDevice2 methods
  341. */
  342. STDMETHOD(InitFromD3D2)(THIS_ LPDIRECT3D2 lpD3D, LPDIRECT3DDEVICE2 lpD3DDev) PURE;
  343. STDMETHOD(InitFromSurface)(THIS_ LPGUID lpGUID, LPDIRECTDRAW lpDD, LPDIRECTDRAWSURFACE lpDDSBack, DWORD dwFlags) PURE;
  344. STDMETHOD(SetRenderMode)(THIS_ DWORD dwFlags) PURE;
  345. STDMETHOD_(DWORD, GetRenderMode)(THIS) PURE;
  346. STDMETHOD(GetDirect3DDevice2)(THIS_ LPDIRECT3DDEVICE2 *) PURE;
  347. /*
  348. * IDirect3DRMDevice3 methods
  349. */
  350. STDMETHOD(FindPreferredTextureFormat)(THIS_ DWORD dwBitDepths, DWORD dwFlags, LPDDPIXELFORMAT lpDDPF) PURE;
  351. };
  352. #undef INTERFACE
  353. #define INTERFACE IDirect3DRMViewport
  354. DECLARE_INTERFACE_(IDirect3DRMViewport, IDirect3DRMObject)
  355. {
  356. IUNKNOWN_METHODS(PURE);
  357. IDIRECT3DRMOBJECT_METHODS(PURE);
  358. /*
  359. * IDirect3DRMViewport methods
  360. */
  361. STDMETHOD(Init)
  362. ( THIS_ LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMFRAME camera,
  363. DWORD xpos, DWORD ypos, DWORD width, DWORD height
  364. ) PURE;
  365. STDMETHOD(Clear)(THIS) PURE;
  366. STDMETHOD(Render)(THIS_ LPDIRECT3DRMFRAME) PURE;
  367. STDMETHOD(SetFront)(THIS_ D3DVALUE) PURE;
  368. STDMETHOD(SetBack)(THIS_ D3DVALUE) PURE;
  369. STDMETHOD(SetField)(THIS_ D3DVALUE) PURE;
  370. STDMETHOD(SetUniformScaling)(THIS_ BOOL) PURE;
  371. STDMETHOD(SetCamera)(THIS_ LPDIRECT3DRMFRAME) PURE;
  372. STDMETHOD(SetProjection)(THIS_ D3DRMPROJECTIONTYPE) PURE;
  373. STDMETHOD(Transform)(THIS_ D3DRMVECTOR4D *d, D3DVECTOR *s) PURE;
  374. STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DRMVECTOR4D *s) PURE;
  375. STDMETHOD(Configure)(THIS_ LONG x, LONG y, DWORD width, DWORD height) PURE;
  376. STDMETHOD(ForceUpdate)(THIS_ DWORD x1, DWORD y1, DWORD x2, DWORD y2) PURE;
  377. STDMETHOD(SetPlane)(THIS_ D3DVALUE left, D3DVALUE right, D3DVALUE bottom, D3DVALUE top) PURE;
  378. STDMETHOD(GetCamera)(THIS_ LPDIRECT3DRMFRAME *) PURE;
  379. STDMETHOD(GetDevice)(THIS_ LPDIRECT3DRMDEVICE *) PURE;
  380. STDMETHOD(GetPlane)(THIS_ D3DVALUE *left, D3DVALUE *right, D3DVALUE *bottom, D3DVALUE *top) PURE;
  381. STDMETHOD(Pick)(THIS_ LONG x, LONG y, LPDIRECT3DRMPICKEDARRAY *return_visuals) PURE;
  382. STDMETHOD_(BOOL, GetUniformScaling)(THIS) PURE;
  383. STDMETHOD_(LONG, GetX)(THIS) PURE;
  384. STDMETHOD_(LONG, GetY)(THIS) PURE;
  385. STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
  386. STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
  387. STDMETHOD_(D3DVALUE, GetField)(THIS) PURE;
  388. STDMETHOD_(D3DVALUE, GetBack)(THIS) PURE;
  389. STDMETHOD_(D3DVALUE, GetFront)(THIS) PURE;
  390. STDMETHOD_(D3DRMPROJECTIONTYPE, GetProjection)(THIS) PURE;
  391. STDMETHOD(GetDirect3DViewport)(THIS_ LPDIRECT3DVIEWPORT *) PURE;
  392. };
  393. #undef INTERFACE
  394. #define INTERFACE IDirect3DRMViewport2
  395. DECLARE_INTERFACE_(IDirect3DRMViewport2, IDirect3DRMObject)
  396. {
  397. IUNKNOWN_METHODS(PURE);
  398. IDIRECT3DRMOBJECT_METHODS(PURE);
  399. /*
  400. * IDirect3DRMViewport2 methods
  401. */
  402. STDMETHOD(Init)
  403. ( THIS_ LPDIRECT3DRMDEVICE3 dev, LPDIRECT3DRMFRAME3 camera,
  404. DWORD xpos, DWORD ypos, DWORD width, DWORD height
  405. ) PURE;
  406. STDMETHOD(Clear)(THIS_ DWORD dwFlags) PURE;
  407. STDMETHOD(Render)(THIS_ LPDIRECT3DRMFRAME3) PURE;
  408. STDMETHOD(SetFront)(THIS_ D3DVALUE) PURE;
  409. STDMETHOD(SetBack)(THIS_ D3DVALUE) PURE;
  410. STDMETHOD(SetField)(THIS_ D3DVALUE) PURE;
  411. STDMETHOD(SetUniformScaling)(THIS_ BOOL) PURE;
  412. STDMETHOD(SetCamera)(THIS_ LPDIRECT3DRMFRAME3) PURE;
  413. STDMETHOD(SetProjection)(THIS_ D3DRMPROJECTIONTYPE) PURE;
  414. STDMETHOD(Transform)(THIS_ D3DRMVECTOR4D *d, D3DVECTOR *s) PURE;
  415. STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DRMVECTOR4D *s) PURE;
  416. STDMETHOD(Configure)(THIS_ LONG x, LONG y, DWORD width, DWORD height) PURE;
  417. STDMETHOD(ForceUpdate)(THIS_ DWORD x1, DWORD y1, DWORD x2, DWORD y2) PURE;
  418. STDMETHOD(SetPlane)(THIS_ D3DVALUE left, D3DVALUE right, D3DVALUE bottom, D3DVALUE top) PURE;
  419. STDMETHOD(GetCamera)(THIS_ LPDIRECT3DRMFRAME3 *) PURE;
  420. STDMETHOD(GetDevice)(THIS_ LPDIRECT3DRMDEVICE3 *) PURE;
  421. STDMETHOD(GetPlane)(THIS_ D3DVALUE *left, D3DVALUE *right, D3DVALUE *bottom, D3DVALUE *top) PURE;
  422. STDMETHOD(Pick)(THIS_ LONG x, LONG y, LPDIRECT3DRMPICKEDARRAY *return_visuals) PURE;
  423. STDMETHOD_(BOOL, GetUniformScaling)(THIS) PURE;
  424. STDMETHOD_(LONG, GetX)(THIS) PURE;
  425. STDMETHOD_(LONG, GetY)(THIS) PURE;
  426. STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
  427. STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
  428. STDMETHOD_(D3DVALUE, GetField)(THIS) PURE;
  429. STDMETHOD_(D3DVALUE, GetBack)(THIS) PURE;
  430. STDMETHOD_(D3DVALUE, GetFront)(THIS) PURE;
  431. STDMETHOD_(D3DRMPROJECTIONTYPE, GetProjection)(THIS) PURE;
  432. STDMETHOD(GetDirect3DViewport)(THIS_ LPDIRECT3DVIEWPORT *) PURE;
  433. };
  434. #undef INTERFACE
  435. #define INTERFACE IDirect3DRMFrame
  436. DECLARE_INTERFACE_(IDirect3DRMFrame, IDirect3DRMVisual)
  437. {
  438. IUNKNOWN_METHODS(PURE);
  439. IDIRECT3DRMOBJECT_METHODS(PURE);
  440. /*
  441. * IDirect3DRMFrame methods
  442. */
  443. STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME child) PURE;
  444. STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
  445. STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
  446. STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE;
  447. STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  448. STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  449. STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
  450. STDMETHOD(AddVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
  451. STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE;
  452. STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
  453. STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE;
  454. STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE;
  455. STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME *) PURE;
  456. STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_position) PURE;
  457. STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE;
  458. STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME *) PURE;
  459. STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE;
  460. STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE;
  461. STDMETHOD(GetTransform)(THIS_ D3DRMMATRIX4D return_matrix) PURE;
  462. STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE;
  463. STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE;
  464. STDMETHOD(GetVisuals)(THIS_ LPDIRECT3DRMVISUALARRAY *visuals) PURE;
  465. STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE;
  466. STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
  467. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg)PURE;
  468. STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME target, LPDIRECT3DRMFRAME reference, D3DRMFRAMECONSTRAINT) PURE;
  469. STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE;
  470. STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME) PURE;
  471. STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
  472. STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
  473. STDMETHOD(DeleteVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
  474. STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE;
  475. STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
  476. STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE;
  477. STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE;
  478. STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE;
  479. STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE;
  480. STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE;
  481. STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  482. STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
  483. STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  484. STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE;
  485. STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE;
  486. STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE;
  487. STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE;
  488. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  489. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  490. STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE;
  491. STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE;
  492. STDMETHOD(SetOrientation)
  493. ( THIS_ LPDIRECT3DRMFRAME reference,
  494. D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  495. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz
  496. ) PURE;
  497. STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  498. STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
  499. STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE;
  500. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  501. STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
  502. STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE;
  503. STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE;
  504. STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
  505. };
  506. #undef INTERFACE
  507. #define INTERFACE IDirect3DRMFrame2
  508. DECLARE_INTERFACE_(IDirect3DRMFrame2, IDirect3DRMFrame)
  509. {
  510. IUNKNOWN_METHODS(PURE);
  511. IDIRECT3DRMOBJECT_METHODS(PURE);
  512. /*
  513. * IDirect3DRMFrame methods
  514. */
  515. STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME child) PURE;
  516. STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
  517. STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
  518. STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE;
  519. STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  520. STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  521. STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
  522. STDMETHOD(AddVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
  523. STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE;
  524. STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
  525. STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE;
  526. STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE;
  527. STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME *) PURE;
  528. STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_position) PURE;
  529. STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE;
  530. STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME *) PURE;
  531. STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE;
  532. STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE;
  533. STDMETHOD(GetTransform)(THIS_ D3DRMMATRIX4D return_matrix) PURE;
  534. STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE;
  535. STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE;
  536. STDMETHOD(GetVisuals)(THIS_ LPDIRECT3DRMVISUALARRAY *visuals) PURE;
  537. STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE;
  538. STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
  539. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg)PURE;
  540. STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME target, LPDIRECT3DRMFRAME reference, D3DRMFRAMECONSTRAINT) PURE;
  541. STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE;
  542. STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME) PURE;
  543. STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
  544. STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
  545. STDMETHOD(DeleteVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
  546. STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE;
  547. STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
  548. STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE;
  549. STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE;
  550. STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE;
  551. STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE;
  552. STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE;
  553. STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  554. STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
  555. STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  556. STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE;
  557. STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE;
  558. STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE;
  559. STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE;
  560. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  561. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  562. STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE;
  563. STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE;
  564. STDMETHOD(SetOrientation)
  565. ( THIS_ LPDIRECT3DRMFRAME reference,
  566. D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  567. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz
  568. ) PURE;
  569. STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  570. STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
  571. STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE;
  572. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  573. STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
  574. STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE;
  575. STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE;
  576. STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
  577. /*
  578. * IDirect3DRMFrame2 methods
  579. */
  580. STDMETHOD(AddMoveCallback2)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg, DWORD dwFlags) PURE;
  581. STDMETHOD(GetBox)(THIS_ LPD3DRMBOX) PURE;
  582. STDMETHOD_(BOOL, GetBoxEnable)(THIS) PURE;
  583. STDMETHOD(GetAxes)(THIS_ LPD3DVECTOR dir, LPD3DVECTOR up);
  584. STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL *) PURE;
  585. STDMETHOD_(BOOL, GetInheritAxes)(THIS);
  586. STDMETHOD(GetHierarchyBox)(THIS_ LPD3DRMBOX) PURE;
  587. STDMETHOD(SetBox)(THIS_ LPD3DRMBOX) PURE;
  588. STDMETHOD(SetBoxEnable)(THIS_ BOOL) PURE;
  589. STDMETHOD(SetAxes)(THIS_ D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  590. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz);
  591. STDMETHOD(SetInheritAxes)(THIS_ BOOL inherit_from_parent);
  592. STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
  593. STDMETHOD(SetQuaternion)(THIS_ LPDIRECT3DRMFRAME reference, D3DRMQUATERNION *q) PURE;
  594. STDMETHOD(RayPick)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DRMRAY ray, DWORD dwFlags, LPDIRECT3DRMPICKED2ARRAY *return_visuals) PURE;
  595. STDMETHOD(Save)(THIS_ LPCSTR filename, D3DRMXOFFORMAT d3dFormat,
  596. D3DRMSAVEOPTIONS d3dSaveFlags);
  597. };
  598. #undef INTERFACE
  599. #define INTERFACE IDirect3DRMFrame3
  600. DECLARE_INTERFACE_(IDirect3DRMFrame3, IDirect3DRMVisual)
  601. {
  602. IUNKNOWN_METHODS(PURE);
  603. IDIRECT3DRMOBJECT_METHODS(PURE);
  604. /*
  605. * IDirect3DRMFrame3 methods
  606. */
  607. STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME3 child) PURE;
  608. STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
  609. STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAME3MOVECALLBACK, VOID *arg, DWORD dwFlags) PURE;
  610. STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE;
  611. STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  612. STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  613. STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
  614. STDMETHOD(AddVisual)(THIS_ LPUNKNOWN) PURE;
  615. STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE;
  616. STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
  617. STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE;
  618. STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE;
  619. STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME3 *) PURE;
  620. STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR return_position) PURE;
  621. STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE;
  622. STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME3 *) PURE;
  623. STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE;
  624. STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE3 *) PURE;
  625. STDMETHOD(GetTransform)(THIS_ LPDIRECT3DRMFRAME3 reference,
  626. D3DRMMATRIX4D rmMatrix) PURE;
  627. STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE;
  628. STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE;
  629. STDMETHOD(GetVisuals)(THIS_ LPDWORD lpdwCount, LPUNKNOWN *) PURE;
  630. STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
  631. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURE3CALLBACK, LPVOID lpArg)PURE;
  632. STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME3 target, LPDIRECT3DRMFRAME3 reference, D3DRMFRAMECONSTRAINT) PURE;
  633. STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE;
  634. STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME3) PURE;
  635. STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
  636. STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAME3MOVECALLBACK, VOID *arg) PURE;
  637. STDMETHOD(DeleteVisual)(THIS_ LPUNKNOWN) PURE;
  638. STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE;
  639. STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
  640. STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE;
  641. STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE;
  642. STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE;
  643. STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE;
  644. STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE;
  645. STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  646. STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
  647. STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE3) PURE;
  648. STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE;
  649. STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE;
  650. STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE;
  651. STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE;
  652. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  653. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  654. STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE;
  655. STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE;
  656. STDMETHOD(SetOrientation)
  657. ( THIS_ LPDIRECT3DRMFRAME3 reference,
  658. D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  659. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz
  660. ) PURE;
  661. STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  662. STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
  663. STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE;
  664. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE3) PURE;
  665. STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE;
  666. STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE;
  667. STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
  668. STDMETHOD(GetBox)(THIS_ LPD3DRMBOX) PURE;
  669. STDMETHOD_(BOOL, GetBoxEnable)(THIS) PURE;
  670. STDMETHOD(GetAxes)(THIS_ LPD3DVECTOR dir, LPD3DVECTOR up);
  671. STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2 *) PURE;
  672. STDMETHOD_(BOOL, GetInheritAxes)(THIS);
  673. STDMETHOD(GetHierarchyBox)(THIS_ LPD3DRMBOX) PURE;
  674. STDMETHOD(SetBox)(THIS_ LPD3DRMBOX) PURE;
  675. STDMETHOD(SetBoxEnable)(THIS_ BOOL) PURE;
  676. STDMETHOD(SetAxes)(THIS_ D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  677. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz);
  678. STDMETHOD(SetInheritAxes)(THIS_ BOOL inherit_from_parent);
  679. STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2) PURE;
  680. STDMETHOD(SetQuaternion)(THIS_ LPDIRECT3DRMFRAME3 reference, D3DRMQUATERNION *q) PURE;
  681. STDMETHOD(RayPick)(THIS_ LPDIRECT3DRMFRAME3 reference, LPD3DRMRAY ray, DWORD dwFlags, LPDIRECT3DRMPICKED2ARRAY *return_visuals) PURE;
  682. STDMETHOD(Save)(THIS_ LPCSTR filename, D3DRMXOFFORMAT d3dFormat,
  683. D3DRMSAVEOPTIONS d3dSaveFlags);
  684. STDMETHOD(TransformVectors)(THIS_ LPDIRECT3DRMFRAME3 reference,
  685. DWORD dwNumVectors,
  686. LPD3DVECTOR lpDstVectors,
  687. LPD3DVECTOR lpSrcVectors) PURE;
  688. STDMETHOD(InverseTransformVectors)(THIS_ LPDIRECT3DRMFRAME3 reference,
  689. DWORD dwNumVectors,
  690. LPD3DVECTOR lpDstVectors,
  691. LPD3DVECTOR lpSrcVectors) PURE;
  692. STDMETHOD(SetTraversalOptions)(THIS_ DWORD dwFlags) PURE;
  693. STDMETHOD(GetTraversalOptions)(THIS_ LPDWORD lpdwFlags) PURE;
  694. STDMETHOD(SetSceneFogMethod)(THIS_ DWORD dwFlags) PURE;
  695. STDMETHOD(GetSceneFogMethod)(THIS_ LPDWORD lpdwFlags) PURE;
  696. STDMETHOD(SetMaterialOverride)(THIS_ LPD3DRMMATERIALOVERRIDE) PURE;
  697. STDMETHOD(GetMaterialOverride)(THIS_ LPD3DRMMATERIALOVERRIDE) PURE;
  698. };
  699. #undef INTERFACE
  700. #define INTERFACE IDirect3DRMMesh
  701. DECLARE_INTERFACE_(IDirect3DRMMesh, IDirect3DRMVisual)
  702. {
  703. IUNKNOWN_METHODS(PURE);
  704. IDIRECT3DRMOBJECT_METHODS(PURE);
  705. /*
  706. * IDirect3DRMMesh methods
  707. */
  708. STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  709. STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
  710. STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
  711. STDMETHOD(AddGroup)(THIS_ unsigned vCount, unsigned fCount, unsigned vPerFace, unsigned *fData, D3DRMGROUPINDEX *returnId) PURE;
  712. STDMETHOD(SetVertices)(THIS_ D3DRMGROUPINDEX id, unsigned index, unsigned count, D3DRMVERTEX *values) PURE;
  713. STDMETHOD(SetGroupColor)(THIS_ D3DRMGROUPINDEX id, D3DCOLOR value) PURE;
  714. STDMETHOD(SetGroupColorRGB)(THIS_ D3DRMGROUPINDEX id, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  715. STDMETHOD(SetGroupMapping)(THIS_ D3DRMGROUPINDEX id, D3DRMMAPPING value) PURE;
  716. STDMETHOD(SetGroupQuality)(THIS_ D3DRMGROUPINDEX id, D3DRMRENDERQUALITY value) PURE;
  717. STDMETHOD(SetGroupMaterial)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMMATERIAL value) PURE;
  718. STDMETHOD(SetGroupTexture)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE value) PURE;
  719. STDMETHOD_(unsigned, GetGroupCount)(THIS) PURE;
  720. STDMETHOD(GetGroup)(THIS_ D3DRMGROUPINDEX id, unsigned *vCount, unsigned *fCount, unsigned *vPerFace, DWORD *fDataSize, unsigned *fData) PURE;
  721. STDMETHOD(GetVertices)(THIS_ D3DRMGROUPINDEX id, DWORD index, DWORD count, D3DRMVERTEX *returnPtr) PURE;
  722. STDMETHOD_(D3DCOLOR, GetGroupColor)(THIS_ D3DRMGROUPINDEX id) PURE;
  723. STDMETHOD_(D3DRMMAPPING, GetGroupMapping)(THIS_ D3DRMGROUPINDEX id) PURE;
  724. STDMETHOD_(D3DRMRENDERQUALITY, GetGroupQuality)(THIS_ D3DRMGROUPINDEX id) PURE;
  725. STDMETHOD(GetGroupMaterial)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMMATERIAL *returnPtr) PURE;
  726. STDMETHOD(GetGroupTexture)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE *returnPtr) PURE;
  727. };
  728. #undef INTERFACE
  729. #define INTERFACE IDirect3DRMProgressiveMesh
  730. DECLARE_INTERFACE_(IDirect3DRMProgressiveMesh, IDirect3DRMVisual)
  731. {
  732. IUNKNOWN_METHODS(PURE);
  733. IDIRECT3DRMOBJECT_METHODS(PURE);
  734. /*
  735. * IDirect3DRMProgressiveMesh methods
  736. */
  737. STDMETHOD(Load) (THIS_ LPVOID lpObjLocation, LPVOID lpObjId,
  738. D3DRMLOADOPTIONS dloLoadflags, D3DRMLOADTEXTURECALLBACK lpCallback,
  739. LPVOID lpArg) PURE;
  740. STDMETHOD(GetLoadStatus) (THIS_ LPD3DRMPMESHLOADSTATUS lpStatus) PURE;
  741. STDMETHOD(SetMinRenderDetail) (THIS_ D3DVALUE d3dVal) PURE;
  742. STDMETHOD(Abort) (THIS_ DWORD dwFlags) PURE;
  743. STDMETHOD(GetFaceDetail) (THIS_ LPDWORD lpdwCount) PURE;
  744. STDMETHOD(GetVertexDetail) (THIS_ LPDWORD lpdwCount) PURE;
  745. STDMETHOD(SetFaceDetail) (THIS_ DWORD dwCount) PURE;
  746. STDMETHOD(SetVertexDetail) (THIS_ DWORD dwCount) PURE;
  747. STDMETHOD(GetFaceDetailRange) (THIS_ LPDWORD lpdwMin, LPDWORD lpdwMax) PURE;
  748. STDMETHOD(GetVertexDetailRange) (THIS_ LPDWORD lpdwMin, LPDWORD lpdwMax) PURE;
  749. STDMETHOD(GetDetail) (THIS_ D3DVALUE *lpdvVal) PURE;
  750. STDMETHOD(SetDetail) (THIS_ D3DVALUE d3dVal) PURE;
  751. STDMETHOD(RegisterEvents) (THIS_ HANDLE hEvent, DWORD dwFlags, DWORD dwReserved) PURE;
  752. STDMETHOD(CreateMesh) (THIS_ LPDIRECT3DRMMESH *lplpD3DRMMesh) PURE;
  753. STDMETHOD(Duplicate) (THIS_ LPDIRECT3DRMPROGRESSIVEMESH *lplpD3DRMPMesh) PURE;
  754. STDMETHOD(GetBox) (THIS_ LPD3DRMBOX lpBBox) PURE;
  755. STDMETHOD(SetQuality) (THIS_ D3DRMRENDERQUALITY) PURE;
  756. STDMETHOD(GetQuality) (THIS_ LPD3DRMRENDERQUALITY lpdwquality) PURE;
  757. };
  758. #undef INTERFACE
  759. #define INTERFACE IDirect3DRMShadow
  760. DECLARE_INTERFACE_(IDirect3DRMShadow, IDirect3DRMVisual)
  761. {
  762. IUNKNOWN_METHODS(PURE);
  763. IDIRECT3DRMOBJECT_METHODS(PURE);
  764. /*
  765. * IDirect3DRMShadow methods
  766. */
  767. STDMETHOD(Init)
  768. ( THIS_ LPDIRECT3DRMVISUAL visual, LPDIRECT3DRMLIGHT light,
  769. D3DVALUE px, D3DVALUE py, D3DVALUE pz,
  770. D3DVALUE nx, D3DVALUE ny, D3DVALUE nz
  771. ) PURE;
  772. };
  773. #undef INTERFACE
  774. #define INTERFACE IDirect3DRMShadow2
  775. DECLARE_INTERFACE_(IDirect3DRMShadow2, IDirect3DRMVisual)
  776. {
  777. IUNKNOWN_METHODS(PURE);
  778. IDIRECT3DRMOBJECT_METHODS(PURE);
  779. /*
  780. * IDirect3DRMShadow methods
  781. */
  782. STDMETHOD(Init)
  783. ( THIS_ LPUNKNOWN pUNK, LPDIRECT3DRMLIGHT light,
  784. D3DVALUE px, D3DVALUE py, D3DVALUE pz,
  785. D3DVALUE nx, D3DVALUE ny, D3DVALUE nz
  786. ) PURE;
  787. /*
  788. * IDirect3DRMShadow2 methods
  789. */
  790. STDMETHOD(GetVisual)(THIS_ LPDIRECT3DRMVISUAL *) PURE;
  791. STDMETHOD(SetVisual)(THIS_ LPUNKNOWN pUNK, DWORD) PURE;
  792. STDMETHOD(GetLight)(THIS_ LPDIRECT3DRMLIGHT *) PURE;
  793. STDMETHOD(SetLight)(THIS_ LPDIRECT3DRMLIGHT, DWORD) PURE;
  794. STDMETHOD(GetPlane)(THIS_ LPD3DVALUE px, LPD3DVALUE py, LPD3DVALUE pz,
  795. LPD3DVALUE nx, LPD3DVALUE ny, LPD3DVALUE nz) PURE;
  796. STDMETHOD(SetPlane)(THIS_ D3DVALUE px, D3DVALUE py, D3DVALUE pz,
  797. D3DVALUE nx, D3DVALUE ny, D3DVALUE nz, DWORD) PURE;
  798. STDMETHOD(GetOptions)(THIS_ LPDWORD) PURE;
  799. STDMETHOD(SetOptions)(THIS_ DWORD) PURE;
  800. };
  801. #undef INTERFACE
  802. #define INTERFACE IDirect3DRMFace
  803. DECLARE_INTERFACE_(IDirect3DRMFace, IDirect3DRMObject)
  804. {
  805. IUNKNOWN_METHODS(PURE);
  806. IDIRECT3DRMOBJECT_METHODS(PURE);
  807. /*
  808. * IDirect3DRMFace methods
  809. */
  810. STDMETHOD(AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  811. STDMETHOD(AddVertexAndNormalIndexed)(THIS_ DWORD vertex, DWORD normal) PURE;
  812. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE, D3DVALUE, D3DVALUE) PURE;
  813. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  814. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  815. STDMETHOD(SetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE u, D3DVALUE v) PURE;
  816. STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
  817. STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
  818. STDMETHOD(GetVertex)(THIS_ DWORD index, D3DVECTOR *vertex, D3DVECTOR *normal) PURE;
  819. STDMETHOD(GetVertices)(THIS_ DWORD *vertex_count, D3DVECTOR *coords, D3DVECTOR *normals);
  820. STDMETHOD(GetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE *u, D3DVALUE *v) PURE;
  821. STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE;
  822. STDMETHOD(GetNormal)(THIS_ D3DVECTOR *) PURE;
  823. STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE;
  824. STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL *) PURE;
  825. STDMETHOD_(int, GetVertexCount)(THIS) PURE;
  826. STDMETHOD_(int, GetVertexIndex)(THIS_ DWORD which) PURE;
  827. STDMETHOD_(int, GetTextureCoordinateIndex)(THIS_ DWORD which) PURE;
  828. STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
  829. };
  830. #undef INTERFACE
  831. #define INTERFACE IDirect3DRMMeshBuilder
  832. DECLARE_INTERFACE_(IDirect3DRMMeshBuilder, IDirect3DRMVisual)
  833. {
  834. IUNKNOWN_METHODS(PURE);
  835. IDIRECT3DRMOBJECT_METHODS(PURE);
  836. /*
  837. * IDirect3DRMMeshBuilder methods
  838. */
  839. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg) PURE;
  840. STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE;
  841. STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  842. STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
  843. STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE;
  844. STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
  845. STDMETHOD(GenerateNormals)(THIS) PURE;
  846. STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE;
  847. STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE;
  848. STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER) PURE;
  849. STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME) PURE;
  850. STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE) PURE;
  851. STDMETHOD(AddFaces)
  852. ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals,
  853. DWORD *data, LPDIRECT3DRMFACEARRAY*
  854. ) PURE;
  855. STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE;
  856. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  857. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  858. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  859. STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
  860. STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
  861. STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
  862. STDMETHOD(SetPerspective)(THIS_ BOOL) PURE;
  863. STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  864. STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  865. STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE;
  866. STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE;
  867. STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  868. STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE;
  869. STDMETHOD(GetVertices)
  870. ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data
  871. ) PURE;
  872. STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE;
  873. STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  874. STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  875. STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE*) PURE;
  876. STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
  877. STDMETHOD_(BOOL, GetPerspective)(THIS) PURE;
  878. STDMETHOD_(int, GetFaceCount)(THIS) PURE;
  879. STDMETHOD_(int, GetVertexCount)(THIS) PURE;
  880. STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE;
  881. STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE;
  882. };
  883. #undef INTERFACE
  884. #define INTERFACE IDirect3DRMMeshBuilder2
  885. DECLARE_INTERFACE_(IDirect3DRMMeshBuilder2, IDirect3DRMMeshBuilder)
  886. {
  887. IUNKNOWN_METHODS(PURE);
  888. IDIRECT3DRMOBJECT_METHODS(PURE);
  889. /*
  890. * IDirect3DRMMeshBuilder methods
  891. */
  892. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg) PURE;
  893. STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE;
  894. STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  895. STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
  896. STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE;
  897. STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
  898. STDMETHOD(GenerateNormals)(THIS) PURE;
  899. STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE;
  900. STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE;
  901. STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER) PURE;
  902. STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME) PURE;
  903. STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE) PURE;
  904. STDMETHOD(AddFaces)
  905. ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals,
  906. DWORD *data, LPDIRECT3DRMFACEARRAY*
  907. ) PURE;
  908. STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE;
  909. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  910. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  911. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  912. STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
  913. STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
  914. STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
  915. STDMETHOD(SetPerspective)(THIS_ BOOL) PURE;
  916. STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  917. STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  918. STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE;
  919. STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE;
  920. STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  921. STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE;
  922. STDMETHOD(GetVertices)
  923. ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data
  924. ) PURE;
  925. STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE;
  926. STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  927. STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  928. STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE*) PURE;
  929. STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
  930. STDMETHOD_(BOOL, GetPerspective)(THIS) PURE;
  931. STDMETHOD_(int, GetFaceCount)(THIS) PURE;
  932. STDMETHOD_(int, GetVertexCount)(THIS) PURE;
  933. STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE;
  934. STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE;
  935. /*
  936. * IDirect3DRMMeshBuilder2 methods
  937. */
  938. STDMETHOD(GenerateNormals2)(THIS_ D3DVALUE crease, DWORD dwFlags) PURE;
  939. STDMETHOD(GetFace)(THIS_ DWORD index, LPDIRECT3DRMFACE*) PURE;
  940. };
  941. #undef INTERFACE
  942. #define INTERFACE IDirect3DRMMeshBuilder3
  943. DECLARE_INTERFACE_(IDirect3DRMMeshBuilder3, IDirect3DRMVisual)
  944. {
  945. IUNKNOWN_METHODS(PURE);
  946. IDIRECT3DRMOBJECT_METHODS(PURE);
  947. /*
  948. * IDirect3DRMMeshBuilder3 methods
  949. */
  950. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURE3CALLBACK, LPVOID lpArg) PURE;
  951. STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE;
  952. STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  953. STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
  954. STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE;
  955. STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
  956. STDMETHOD(GenerateNormals)(THIS_ D3DVALUE crease, DWORD dwFlags) PURE;
  957. STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE;
  958. STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE;
  959. STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER3) PURE;
  960. STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME3) PURE;
  961. STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE) PURE;
  962. STDMETHOD(AddFaces)
  963. ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals,
  964. DWORD *data, LPDIRECT3DRMFACEARRAY*
  965. ) PURE;
  966. STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE;
  967. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  968. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  969. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE3) PURE;
  970. STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL2) PURE;
  971. STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
  972. STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
  973. STDMETHOD(SetPerspective)(THIS_ BOOL) PURE;
  974. STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  975. STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  976. STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE;
  977. STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE;
  978. STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  979. STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE;
  980. STDMETHOD(GetGeometry)
  981. ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data
  982. ) PURE;
  983. STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE;
  984. STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  985. STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  986. STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE*) PURE;
  987. STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
  988. STDMETHOD_(BOOL, GetPerspective)(THIS) PURE;
  989. STDMETHOD_(int, GetFaceCount)(THIS) PURE;
  990. STDMETHOD_(int, GetVertexCount)(THIS) PURE;
  991. STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE;
  992. STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE;
  993. STDMETHOD(GetFace)(THIS_ DWORD index, LPDIRECT3DRMFACE*) PURE;
  994. STDMETHOD(GetVertex)(THIS_ DWORD dwIndex, LPD3DVECTOR lpVector) PURE;
  995. STDMETHOD(GetNormal)(THIS_ DWORD dwIndex, LPD3DVECTOR lpVector) PURE;
  996. STDMETHOD(DeleteVertices)(THIS_ DWORD dwIndexFirst, DWORD dwCount) PURE;
  997. STDMETHOD(DeleteNormals)(THIS_ DWORD dwIndexFirst, DWORD dwCount) PURE;
  998. STDMETHOD(DeleteFace)(THIS_ LPDIRECT3DRMFACE) PURE;
  999. STDMETHOD(Empty)(THIS_ DWORD dwFlags) PURE;
  1000. STDMETHOD(Optimize)(THIS_ DWORD dwFlags) PURE;
  1001. STDMETHOD(AddFacesIndexed)(THIS_ DWORD dwFlags, DWORD *lpdwvIndices, DWORD *dwIndexFirst, DWORD *dwCount) PURE;
  1002. STDMETHOD(CreateSubMesh)(THIS_ LPUNKNOWN *) PURE;
  1003. STDMETHOD(GetParentMesh)(THIS_ DWORD, LPUNKNOWN *) PURE;
  1004. STDMETHOD(GetSubMeshes)(THIS_ LPDWORD lpdwCount, LPUNKNOWN *) PURE;
  1005. STDMETHOD(DeleteSubMesh)(THIS_ LPUNKNOWN) PURE;
  1006. STDMETHOD(Enable)(THIS_ DWORD) PURE;
  1007. STDMETHOD(GetEnable)(THIS_ DWORD *) PURE;
  1008. STDMETHOD(AddTriangles)(THIS_ DWORD dwFlags, DWORD dwFormat,
  1009. DWORD dwVertexCount, LPVOID lpvData) PURE;
  1010. STDMETHOD(SetVertices)(THIS_ DWORD dwIndexFirst, DWORD dwCount, LPD3DVECTOR) PURE;
  1011. STDMETHOD(GetVertices)(THIS_ DWORD dwIndexFirst, LPDWORD lpdwCount, LPD3DVECTOR) PURE;
  1012. STDMETHOD(SetNormals)(THIS_ DWORD dwIndexFirst, DWORD dwCount, LPD3DVECTOR) PURE;
  1013. STDMETHOD(GetNormals)(THIS_ DWORD dwIndexFirst, LPDWORD lpdwCount, LPD3DVECTOR) PURE;
  1014. STDMETHOD_(int, GetNormalCount)(THIS) PURE;
  1015. };
  1016. #undef INTERFACE
  1017. #define INTERFACE IDirect3DRMLight
  1018. DECLARE_INTERFACE_(IDirect3DRMLight, IDirect3DRMObject)
  1019. {
  1020. IUNKNOWN_METHODS(PURE);
  1021. IDIRECT3DRMOBJECT_METHODS(PURE);
  1022. /*
  1023. * IDirect3DRMLight methods
  1024. */
  1025. STDMETHOD(SetType)(THIS_ D3DRMLIGHTTYPE) PURE;
  1026. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  1027. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  1028. STDMETHOD(SetRange)(THIS_ D3DVALUE) PURE;
  1029. STDMETHOD(SetUmbra)(THIS_ D3DVALUE) PURE;
  1030. STDMETHOD(SetPenumbra)(THIS_ D3DVALUE) PURE;
  1031. STDMETHOD(SetConstantAttenuation)(THIS_ D3DVALUE) PURE;
  1032. STDMETHOD(SetLinearAttenuation)(THIS_ D3DVALUE) PURE;
  1033. STDMETHOD(SetQuadraticAttenuation)(THIS_ D3DVALUE) PURE;
  1034. STDMETHOD_(D3DVALUE, GetRange)(THIS) PURE;
  1035. STDMETHOD_(D3DVALUE, GetUmbra)(THIS) PURE;
  1036. STDMETHOD_(D3DVALUE, GetPenumbra)(THIS) PURE;
  1037. STDMETHOD_(D3DVALUE, GetConstantAttenuation)(THIS) PURE;
  1038. STDMETHOD_(D3DVALUE, GetLinearAttenuation)(THIS) PURE;
  1039. STDMETHOD_(D3DVALUE, GetQuadraticAttenuation)(THIS) PURE;
  1040. STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
  1041. STDMETHOD_(D3DRMLIGHTTYPE, GetType)(THIS) PURE;
  1042. STDMETHOD(SetEnableFrame)(THIS_ LPDIRECT3DRMFRAME) PURE;
  1043. STDMETHOD(GetEnableFrame)(THIS_ LPDIRECT3DRMFRAME*) PURE;
  1044. };
  1045. #undef INTERFACE
  1046. #define INTERFACE IDirect3DRMTexture
  1047. DECLARE_INTERFACE_(IDirect3DRMTexture, IDirect3DRMVisual)
  1048. {
  1049. IUNKNOWN_METHODS(PURE);
  1050. IDIRECT3DRMOBJECT_METHODS(PURE);
  1051. /*
  1052. * IDirect3DRMTexture methods
  1053. */
  1054. STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE;
  1055. STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE;
  1056. STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE;
  1057. STDMETHOD(Changed)(THIS_ BOOL pixels, BOOL palette) PURE;
  1058. STDMETHOD(SetColors)(THIS_ DWORD) PURE;
  1059. STDMETHOD(SetShades)(THIS_ DWORD) PURE;
  1060. STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE;
  1061. STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE;
  1062. STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE;
  1063. STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE;
  1064. STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE;
  1065. STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE;
  1066. STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE;
  1067. STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE;
  1068. STDMETHOD_(DWORD, GetShades)(THIS) PURE;
  1069. STDMETHOD_(DWORD, GetColors)(THIS) PURE;
  1070. STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE;
  1071. STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE;
  1072. STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE;
  1073. };
  1074. #undef INTERFACE
  1075. #define INTERFACE IDirect3DRMTexture2
  1076. DECLARE_INTERFACE_(IDirect3DRMTexture2, IDirect3DRMTexture)
  1077. {
  1078. IUNKNOWN_METHODS(PURE);
  1079. IDIRECT3DRMOBJECT_METHODS(PURE);
  1080. /*
  1081. * IDirect3DRMTexture methods
  1082. */
  1083. STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE;
  1084. STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE;
  1085. STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE;
  1086. STDMETHOD(Changed)(THIS_ BOOL pixels, BOOL palette) PURE;
  1087. STDMETHOD(SetColors)(THIS_ DWORD) PURE;
  1088. STDMETHOD(SetShades)(THIS_ DWORD) PURE;
  1089. STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE;
  1090. STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE;
  1091. STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE;
  1092. STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE;
  1093. STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE;
  1094. STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE;
  1095. STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE;
  1096. STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE;
  1097. STDMETHOD_(DWORD, GetShades)(THIS) PURE;
  1098. STDMETHOD_(DWORD, GetColors)(THIS) PURE;
  1099. STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE;
  1100. STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE;
  1101. STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE;
  1102. /*
  1103. * IDirect3DRMTexture2 methods
  1104. */
  1105. STDMETHOD(InitFromImage)(THIS_ LPD3DRMIMAGE) PURE;
  1106. STDMETHOD(InitFromResource2)(THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType) PURE;
  1107. STDMETHOD(GenerateMIPMap)(THIS_ DWORD) PURE;
  1108. };
  1109. #undef INTERFACE
  1110. #define INTERFACE IDirect3DRMTexture3
  1111. DECLARE_INTERFACE_(IDirect3DRMTexture3, IDirect3DRMVisual)
  1112. {
  1113. IUNKNOWN_METHODS(PURE);
  1114. IDIRECT3DRMOBJECT_METHODS(PURE);
  1115. /*
  1116. * IDirect3DRMTexture3 methods
  1117. */
  1118. STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE;
  1119. STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE;
  1120. STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE;
  1121. STDMETHOD(Changed)(THIS_ DWORD dwFlags, DWORD dwcRects, LPRECT pRects) PURE;
  1122. STDMETHOD(SetColors)(THIS_ DWORD) PURE;
  1123. STDMETHOD(SetShades)(THIS_ DWORD) PURE;
  1124. STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE;
  1125. STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE;
  1126. STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE;
  1127. STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE;
  1128. STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE;
  1129. STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE;
  1130. STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE;
  1131. STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE;
  1132. STDMETHOD_(DWORD, GetShades)(THIS) PURE;
  1133. STDMETHOD_(DWORD, GetColors)(THIS) PURE;
  1134. STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE;
  1135. STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE;
  1136. STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE;
  1137. STDMETHOD(InitFromImage)(THIS_ LPD3DRMIMAGE) PURE;
  1138. STDMETHOD(InitFromResource2)(THIS_ HMODULE hModule, LPCTSTR strName, LPCTSTR strType) PURE;
  1139. STDMETHOD(GenerateMIPMap)(THIS_ DWORD) PURE;
  1140. STDMETHOD(GetSurface)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE* lplpDDS) PURE;
  1141. STDMETHOD(SetCacheOptions)(THIS_ LONG lImportance, DWORD dwFlags) PURE;
  1142. STDMETHOD(GetCacheOptions)(THIS_ LPLONG lplImportance, LPDWORD lpdwFlags) PURE;
  1143. STDMETHOD(SetDownsampleCallback)(THIS_ D3DRMDOWNSAMPLECALLBACK pCallback, LPVOID pArg) PURE;
  1144. STDMETHOD(SetValidationCallback)(THIS_ D3DRMVALIDATIONCALLBACK pCallback, LPVOID pArg) PURE;
  1145. };
  1146. #undef INTERFACE
  1147. #define INTERFACE IDirect3DRMWrap
  1148. DECLARE_INTERFACE_(IDirect3DRMWrap, IDirect3DRMObject)
  1149. {
  1150. IUNKNOWN_METHODS(PURE);
  1151. IDIRECT3DRMOBJECT_METHODS(PURE);
  1152. /*
  1153. * IDirect3DRMWrap methods
  1154. */
  1155. STDMETHOD(Init)
  1156. ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME ref,
  1157. D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
  1158. D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  1159. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz,
  1160. D3DVALUE ou, D3DVALUE ov,
  1161. D3DVALUE su, D3DVALUE sv
  1162. ) PURE;
  1163. STDMETHOD(Apply)(THIS_ LPDIRECT3DRMOBJECT) PURE;
  1164. STDMETHOD(ApplyRelative)(THIS_ LPDIRECT3DRMFRAME frame, LPDIRECT3DRMOBJECT) PURE;
  1165. };
  1166. #undef INTERFACE
  1167. #define INTERFACE IDirect3DRMMaterial
  1168. DECLARE_INTERFACE_(IDirect3DRMMaterial, IDirect3DRMObject)
  1169. {
  1170. IUNKNOWN_METHODS(PURE);
  1171. IDIRECT3DRMOBJECT_METHODS(PURE);
  1172. /*
  1173. * IDirect3DRMMaterial methods
  1174. */
  1175. STDMETHOD(SetPower)(THIS_ D3DVALUE power) PURE;
  1176. STDMETHOD(SetSpecular)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
  1177. STDMETHOD(SetEmissive)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
  1178. STDMETHOD_(D3DVALUE, GetPower)(THIS) PURE;
  1179. STDMETHOD(GetSpecular)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
  1180. STDMETHOD(GetEmissive)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
  1181. };
  1182. #undef INTERFACE
  1183. #define INTERFACE IDirect3DRMMaterial2
  1184. DECLARE_INTERFACE_(IDirect3DRMMaterial2, IDirect3DRMObject)
  1185. {
  1186. IUNKNOWN_METHODS(PURE);
  1187. IDIRECT3DRMOBJECT_METHODS(PURE);
  1188. /*
  1189. * IDirect3DRMMaterial2 methods
  1190. */
  1191. STDMETHOD(SetPower)(THIS_ D3DVALUE power) PURE;
  1192. STDMETHOD(SetSpecular)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
  1193. STDMETHOD(SetEmissive)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
  1194. STDMETHOD_(D3DVALUE, GetPower)(THIS) PURE;
  1195. STDMETHOD(GetSpecular)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
  1196. STDMETHOD(GetEmissive)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
  1197. STDMETHOD(GetAmbient)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
  1198. STDMETHOD(SetAmbient)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
  1199. };
  1200. #undef INTERFACE
  1201. #define INTERFACE IDirect3DRMAnimation
  1202. DECLARE_INTERFACE_(IDirect3DRMAnimation, IDirect3DRMObject)
  1203. {
  1204. IUNKNOWN_METHODS(PURE);
  1205. IDIRECT3DRMOBJECT_METHODS(PURE);
  1206. /*
  1207. * IDirect3DRMAnimation methods
  1208. */
  1209. STDMETHOD(SetOptions)(THIS_ D3DRMANIMATIONOPTIONS flags) PURE;
  1210. STDMETHOD(AddRotateKey)(THIS_ D3DVALUE time, D3DRMQUATERNION *q) PURE;
  1211. STDMETHOD(AddPositionKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  1212. STDMETHOD(AddScaleKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  1213. STDMETHOD(DeleteKey)(THIS_ D3DVALUE time) PURE;
  1214. STDMETHOD(SetFrame)(THIS_ LPDIRECT3DRMFRAME frame) PURE;
  1215. STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
  1216. STDMETHOD_(D3DRMANIMATIONOPTIONS, GetOptions)(THIS) PURE;
  1217. };
  1218. #undef INTERFACE
  1219. #define INTERFACE IDirect3DRMAnimation2
  1220. DECLARE_INTERFACE_(IDirect3DRMAnimation2, IDirect3DRMObject)
  1221. {
  1222. IUNKNOWN_METHODS(PURE);
  1223. IDIRECT3DRMOBJECT_METHODS(PURE);
  1224. /*
  1225. * IDirect3DRMAnimation2 methods
  1226. */
  1227. STDMETHOD(SetOptions)(THIS_ D3DRMANIMATIONOPTIONS flags) PURE;
  1228. STDMETHOD(AddRotateKey)(THIS_ D3DVALUE time, D3DRMQUATERNION *q) PURE;
  1229. STDMETHOD(AddPositionKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  1230. STDMETHOD(AddScaleKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  1231. STDMETHOD(DeleteKey)(THIS_ D3DVALUE time) PURE;
  1232. STDMETHOD(SetFrame)(THIS_ LPDIRECT3DRMFRAME3 frame) PURE;
  1233. STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
  1234. STDMETHOD_(D3DRMANIMATIONOPTIONS, GetOptions)(THIS) PURE;
  1235. STDMETHOD(GetFrame)(THIS_ LPDIRECT3DRMFRAME3 *lpD3DFrame) PURE;
  1236. STDMETHOD(DeleteKeyByID)(THIS_ DWORD dwID) PURE;
  1237. STDMETHOD(AddKey)(THIS_ LPD3DRMANIMATIONKEY lpKey) PURE;
  1238. STDMETHOD(ModifyKey)(THIS_ LPD3DRMANIMATIONKEY lpKey) PURE;
  1239. STDMETHOD(GetKeys)(THIS_ D3DVALUE dvTimeMin,
  1240. D3DVALUE dvTimeMax, LPDWORD lpdwNumKeys,
  1241. LPD3DRMANIMATIONKEY lpKey);
  1242. };
  1243. #undef INTERFACE
  1244. #define INTERFACE IDirect3DRMAnimationSet
  1245. DECLARE_INTERFACE_(IDirect3DRMAnimationSet, IDirect3DRMObject)
  1246. {
  1247. IUNKNOWN_METHODS(PURE);
  1248. IDIRECT3DRMOBJECT_METHODS(PURE);
  1249. /*
  1250. * IDirect3DRMAnimationSet methods
  1251. */
  1252. STDMETHOD(AddAnimation)(THIS_ LPDIRECT3DRMANIMATION aid) PURE;
  1253. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg, LPDIRECT3DRMFRAME parent)PURE;
  1254. STDMETHOD(DeleteAnimation)(THIS_ LPDIRECT3DRMANIMATION aid) PURE;
  1255. STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
  1256. };
  1257. #undef INTERFACE
  1258. #define INTERFACE IDirect3DRMAnimationSet2
  1259. DECLARE_INTERFACE_(IDirect3DRMAnimationSet2, IDirect3DRMObject)
  1260. {
  1261. IUNKNOWN_METHODS(PURE);
  1262. IDIRECT3DRMOBJECT_METHODS(PURE);
  1263. /*
  1264. * IDirect3DRMAnimationSet2 methods
  1265. */
  1266. STDMETHOD(AddAnimation)(THIS_ LPDIRECT3DRMANIMATION2 aid) PURE;
  1267. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURE3CALLBACK, LPVOID lpArg, LPDIRECT3DRMFRAME3 parent)PURE;
  1268. STDMETHOD(DeleteAnimation)(THIS_ LPDIRECT3DRMANIMATION2 aid) PURE;
  1269. STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
  1270. STDMETHOD(GetAnimations)(THIS_ LPDIRECT3DRMANIMATIONARRAY *) PURE;
  1271. };
  1272. #undef INTERFACE
  1273. #define INTERFACE IDirect3DRMUserVisual
  1274. DECLARE_INTERFACE_(IDirect3DRMUserVisual, IDirect3DRMVisual)
  1275. {
  1276. IUNKNOWN_METHODS(PURE);
  1277. IDIRECT3DRMOBJECT_METHODS(PURE);
  1278. /*
  1279. * IDirect3DRMUserVisual methods
  1280. */
  1281. STDMETHOD(Init)(THIS_ D3DRMUSERVISUALCALLBACK fn, void *arg) PURE;
  1282. };
  1283. #undef INTERFACE
  1284. #define INTERFACE IDirect3DRMArray
  1285. DECLARE_INTERFACE_(IDirect3DRMArray, IUnknown)
  1286. {
  1287. IUNKNOWN_METHODS(PURE);
  1288. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1289. /* No GetElement method as it would get overloaded
  1290. * in derived classes, and overloading is
  1291. * a no-no in COM
  1292. */
  1293. };
  1294. #undef INTERFACE
  1295. #define INTERFACE IDirect3DRMObjectArray
  1296. DECLARE_INTERFACE_(IDirect3DRMObjectArray, IDirect3DRMArray)
  1297. {
  1298. IUNKNOWN_METHODS(PURE);
  1299. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1300. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMOBJECT *) PURE;
  1301. };
  1302. #undef INTERFACE
  1303. #define INTERFACE IDirect3DRMDeviceArray
  1304. DECLARE_INTERFACE_(IDirect3DRMDeviceArray, IDirect3DRMArray)
  1305. {
  1306. IUNKNOWN_METHODS(PURE);
  1307. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1308. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMDEVICE *) PURE;
  1309. };
  1310. #undef INTERFACE
  1311. #define INTERFACE IDirect3DRMFrameArray
  1312. DECLARE_INTERFACE_(IDirect3DRMFrameArray, IDirect3DRMArray)
  1313. {
  1314. IUNKNOWN_METHODS(PURE);
  1315. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1316. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMFRAME *) PURE;
  1317. };
  1318. #undef INTERFACE
  1319. #define INTERFACE IDirect3DRMViewportArray
  1320. DECLARE_INTERFACE_(IDirect3DRMViewportArray, IDirect3DRMArray)
  1321. {
  1322. IUNKNOWN_METHODS(PURE);
  1323. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1324. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMVIEWPORT *) PURE;
  1325. };
  1326. #undef INTERFACE
  1327. #define INTERFACE IDirect3DRMVisualArray
  1328. DECLARE_INTERFACE_(IDirect3DRMVisualArray, IDirect3DRMArray)
  1329. {
  1330. IUNKNOWN_METHODS(PURE);
  1331. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1332. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *) PURE;
  1333. };
  1334. #undef INTERFACE
  1335. #define INTERFACE IDirect3DRMAnimationArray
  1336. DECLARE_INTERFACE_(IDirect3DRMAnimationArray, IDirect3DRMArray)
  1337. {
  1338. IUNKNOWN_METHODS(PURE);
  1339. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1340. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMANIMATION2 *) PURE;
  1341. };
  1342. #undef INTERFACE
  1343. #define INTERFACE IDirect3DRMPickedArray
  1344. DECLARE_INTERFACE_(IDirect3DRMPickedArray, IDirect3DRMArray)
  1345. {
  1346. IUNKNOWN_METHODS(PURE);
  1347. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1348. STDMETHOD(GetPick)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *, LPDIRECT3DRMFRAMEARRAY *, LPD3DRMPICKDESC) PURE;
  1349. };
  1350. #undef INTERFACE
  1351. #define INTERFACE IDirect3DRMLightArray
  1352. DECLARE_INTERFACE_(IDirect3DRMLightArray, IDirect3DRMArray)
  1353. {
  1354. IUNKNOWN_METHODS(PURE);
  1355. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1356. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMLIGHT *) PURE;
  1357. };
  1358. #undef INTERFACE
  1359. #define INTERFACE IDirect3DRMFaceArray
  1360. DECLARE_INTERFACE_(IDirect3DRMFaceArray, IDirect3DRMArray)
  1361. {
  1362. IUNKNOWN_METHODS(PURE);
  1363. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1364. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMFACE *) PURE;
  1365. };
  1366. #undef INTERFACE
  1367. #define INTERFACE IDirect3DRMPicked2Array
  1368. DECLARE_INTERFACE_(IDirect3DRMPicked2Array, IDirect3DRMArray)
  1369. {
  1370. IUNKNOWN_METHODS(PURE);
  1371. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  1372. STDMETHOD(GetPick)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *, LPDIRECT3DRMFRAMEARRAY *, LPD3DRMPICKDESC2) PURE;
  1373. };
  1374. #undef INTERFACE
  1375. #define INTERFACE IDirect3DRMInterpolator
  1376. DECLARE_INTERFACE_(IDirect3DRMInterpolator, IDirect3DRMObject)
  1377. {
  1378. IUNKNOWN_METHODS(PURE);
  1379. IDIRECT3DRMOBJECT_METHODS(PURE);
  1380. /*
  1381. * IDirect3DRMInterpolator methods
  1382. */
  1383. STDMETHOD(AttachObject)(THIS_ LPDIRECT3DRMOBJECT) PURE;
  1384. STDMETHOD(GetAttachedObjects)(THIS_ LPDIRECT3DRMOBJECTARRAY *) PURE;
  1385. STDMETHOD(DetachObject)(THIS_ LPDIRECT3DRMOBJECT) PURE;
  1386. STDMETHOD(SetIndex)(THIS_ D3DVALUE) PURE;
  1387. STDMETHOD_(D3DVALUE, GetIndex)(THIS) PURE;
  1388. STDMETHOD(Interpolate)(THIS_ D3DVALUE, LPDIRECT3DRMOBJECT, D3DRMINTERPOLATIONOPTIONS) PURE;
  1389. };
  1390. #undef INTERFACE
  1391. #define INTERFACE IDirect3DRMClippedVisual
  1392. DECLARE_INTERFACE_(IDirect3DRMClippedVisual, IDirect3DRMVisual)
  1393. {
  1394. IUNKNOWN_METHODS(PURE);
  1395. IDIRECT3DRMOBJECT_METHODS(PURE);
  1396. /*
  1397. * IDirect3DRMClippedVisual methods
  1398. */
  1399. STDMETHOD(Init) (THIS_ LPDIRECT3DRMVISUAL) PURE;
  1400. STDMETHOD(AddPlane) (THIS_ LPDIRECT3DRMFRAME3, LPD3DVECTOR, LPD3DVECTOR, DWORD, LPDWORD) PURE;
  1401. STDMETHOD(DeletePlane)(THIS_ DWORD, DWORD) PURE;
  1402. STDMETHOD(GetPlaneIDs)(THIS_ LPDWORD, LPDWORD, DWORD) PURE;
  1403. STDMETHOD(GetPlane) (THIS_ DWORD, LPDIRECT3DRMFRAME3, LPD3DVECTOR, LPD3DVECTOR, DWORD) PURE;
  1404. STDMETHOD(SetPlane) (THIS_ DWORD, LPDIRECT3DRMFRAME3, LPD3DVECTOR, LPD3DVECTOR, DWORD) PURE;
  1405. };
  1406. #ifdef __cplusplus
  1407. };
  1408. #endif
  1409. #endif /* _D3DRMOBJ_H_ */