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.

727 lines
31 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1995-1996 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(IDirect3DRMDevice, DIRECT3DRMDEVICE);
  41. WIN_TYPES(IDirect3DRMViewport, DIRECT3DRMVIEWPORT);
  42. WIN_TYPES(IDirect3DRMFrame, DIRECT3DRMFRAME);
  43. WIN_TYPES(IDirect3DRMVisual, DIRECT3DRMVISUAL);
  44. WIN_TYPES(IDirect3DRMMesh, DIRECT3DRMMESH);
  45. WIN_TYPES(IDirect3DRMMeshBuilder, DIRECT3DRMMESHBUILDER);
  46. WIN_TYPES(IDirect3DRMFace, DIRECT3DRMFACE);
  47. WIN_TYPES(IDirect3DRMLight, DIRECT3DRMLIGHT);
  48. WIN_TYPES(IDirect3DRMTexture, DIRECT3DRMTEXTURE);
  49. WIN_TYPES(IDirect3DRMWrap, DIRECT3DRMWRAP);
  50. WIN_TYPES(IDirect3DRMMaterial, DIRECT3DRMMATERIAL);
  51. WIN_TYPES(IDirect3DRMAnimation, DIRECT3DRMANIMATION);
  52. WIN_TYPES(IDirect3DRMAnimationSet, DIRECT3DRMANIMATIONSET);
  53. WIN_TYPES(IDirect3DRMUserVisual, DIRECT3DRMUSERVISUAL);
  54. WIN_TYPES(IDirect3DRMShadow, DIRECT3DRMSHADOW);
  55. WIN_TYPES(IDirect3DRMArray, DIRECT3DRMOBJECTARRAY);
  56. WIN_TYPES(IDirect3DRMDeviceArray, DIRECT3DRMDEVICEARRAY);
  57. WIN_TYPES(IDirect3DRMFaceArray, DIRECT3DRMFACEARRAY);
  58. WIN_TYPES(IDirect3DRMViewportArray, DIRECT3DRMVIEWPORTARRAY);
  59. WIN_TYPES(IDirect3DRMFrameArray, DIRECT3DRMFRAMEARRAY);
  60. WIN_TYPES(IDirect3DRMVisualArray, DIRECT3DRMVISUALARRAY);
  61. WIN_TYPES(IDirect3DRMPickedArray, DIRECT3DRMPICKEDARRAY);
  62. WIN_TYPES(IDirect3DRMLightArray, DIRECT3DRMLIGHTARRAY);
  63. /*
  64. * Direct3DRM Object classes
  65. */
  66. DEFINE_GUID(CLSID_CDirect3DRMDevice, 0x4fa3568e, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  67. DEFINE_GUID(CLSID_CDirect3DRMViewport, 0x4fa3568f, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  68. DEFINE_GUID(CLSID_CDirect3DRMFrame, 0x4fa35690, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  69. DEFINE_GUID(CLSID_CDirect3DRMMesh, 0x4fa35691, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  70. DEFINE_GUID(CLSID_CDirect3DRMMeshBuilder, 0x4fa35692, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  71. DEFINE_GUID(CLSID_CDirect3DRMFace, 0x4fa35693, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  72. DEFINE_GUID(CLSID_CDirect3DRMLight, 0x4fa35694, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  73. DEFINE_GUID(CLSID_CDirect3DRMTexture, 0x4fa35695, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  74. DEFINE_GUID(CLSID_CDirect3DRMWrap, 0x4fa35696, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  75. DEFINE_GUID(CLSID_CDirect3DRMMaterial, 0x4fa35697, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  76. DEFINE_GUID(CLSID_CDirect3DRMAnimation, 0x4fa35698, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  77. DEFINE_GUID(CLSID_CDirect3DRMAnimationSet, 0x4fa35699, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  78. DEFINE_GUID(CLSID_CDirect3DRMUserVisual, 0x4fa3569a, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  79. DEFINE_GUID(CLSID_CDirect3DRMShadow, 0x4fa3569b, 0x623f, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  80. /*
  81. * Direct3DRM Object interfaces
  82. */
  83. DEFINE_GUID(IID_IDirect3DRMObject, 0xeb16cb00, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  84. DEFINE_GUID(IID_IDirect3DRMDevice, 0xe9e19280, 0x6e05, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  85. DEFINE_GUID(IID_IDirect3DRMViewport, 0xeb16cb02, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  86. DEFINE_GUID(IID_IDirect3DRMFrame, 0xeb16cb03, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  87. DEFINE_GUID(IID_IDirect3DRMVisual, 0xeb16cb04, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  88. DEFINE_GUID(IID_IDirect3DRMMesh, 0xa3a80d01, 0x6e12, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  89. DEFINE_GUID(IID_IDirect3DRMMeshBuilder, 0xa3a80d02, 0x6e12, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  90. DEFINE_GUID(IID_IDirect3DRMFace, 0xeb16cb07, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  91. DEFINE_GUID(IID_IDirect3DRMLight, 0xeb16cb08, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  92. DEFINE_GUID(IID_IDirect3DRMTexture, 0xeb16cb09, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  93. DEFINE_GUID(IID_IDirect3DRMWrap, 0xeb16cb0a, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  94. DEFINE_GUID(IID_IDirect3DRMMaterial, 0xeb16cb0b, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  95. DEFINE_GUID(IID_IDirect3DRMAnimation, 0xeb16cb0d, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  96. DEFINE_GUID(IID_IDirect3DRMAnimationSet, 0xeb16cb0e, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  97. DEFINE_GUID(IID_IDirect3DRMDeviceArray, 0xeb16cb10, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  98. DEFINE_GUID(IID_IDirect3DRMViewportArray, 0xeb16cb11, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  99. DEFINE_GUID(IID_IDirect3DRMFrameArray, 0xeb16cb12, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  100. DEFINE_GUID(IID_IDirect3DRMVisualArray, 0xeb16cb13, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  101. DEFINE_GUID(IID_IDirect3DRMLightArray, 0xeb16cb14, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  102. DEFINE_GUID(IID_IDirect3DRMPickedArray, 0xeb16cb16, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  103. DEFINE_GUID(IID_IDirect3DRMFaceArray, 0xeb16cb17, 0xd271, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  104. DEFINE_GUID(IID_IDirect3DRMUserVisual, 0x59163de0, 0x6d43, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  105. DEFINE_GUID(IID_IDirect3DRMShadow, 0xaf359780, 0x6ba3, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  106. typedef void (CDECL *D3DRMOBJECTCALLBACK)(LPDIRECT3DRMOBJECT obj, LPVOID arg);
  107. typedef void (CDECL *D3DRMFRAMEMOVECALLBACK)(LPDIRECT3DRMFRAME obj, LPVOID arg, D3DVALUE delta);
  108. typedef void (CDECL *D3DRMUPDATECALLBACK)(LPDIRECT3DRMDEVICE obj, LPVOID arg, int, LPD3DRECT);
  109. typedef int (CDECL *D3DRMUSERVISUALCALLBACK)
  110. ( LPDIRECT3DRMUSERVISUAL obj, LPVOID arg, D3DRMUSERVISUALREASON reason,
  111. LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMVIEWPORT view
  112. );
  113. typedef HRESULT (CDECL *D3DRMLOADTEXTURECALLBACK)
  114. (char *tex_name, void *arg, LPDIRECT3DRMTEXTURE *);
  115. typedef void (CDECL *D3DRMLOADCALLBACK)
  116. (LPDIRECT3DRMOBJECT object, REFIID objectguid, LPVOID arg);
  117. typedef struct _D3DRMPICKDESC
  118. {
  119. ULONG ulFaceIdx;
  120. LONG lGroupIdx;
  121. D3DVECTOR vPosition;
  122. } D3DRMPICKDESC, *LPD3DRMPICKDESC;
  123. #undef INTERFACE
  124. #define INTERFACE IDirect3DRMObject
  125. /*
  126. * Base class
  127. */
  128. DECLARE_INTERFACE_(IDirect3DRMObject, IUnknown)
  129. {
  130. IUNKNOWN_METHODS(PURE);
  131. IDIRECT3DRMOBJECT_METHODS(PURE);
  132. };
  133. #undef INTERFACE
  134. #define INTERFACE IDirect3DRMVisual
  135. DECLARE_INTERFACE_(IDirect3DRMVisual, IDirect3DRMObject)
  136. {
  137. IUNKNOWN_METHODS(PURE);
  138. IDIRECT3DRMOBJECT_METHODS(PURE);
  139. };
  140. #undef INTERFACE
  141. #define INTERFACE IDirect3DRMDevice
  142. DECLARE_INTERFACE_(IDirect3DRMDevice, IDirect3DRMObject)
  143. {
  144. IUNKNOWN_METHODS(PURE);
  145. IDIRECT3DRMOBJECT_METHODS(PURE);
  146. /*
  147. * IDirect3DRMDevice methods
  148. */
  149. STDMETHOD(Init)(THIS_ ULONG width, ULONG height) PURE;
  150. STDMETHOD(InitFromD3D)(THIS_ LPDIRECT3D lpD3D, LPDIRECT3DDEVICE lpD3DDev) PURE;
  151. STDMETHOD(InitFromClipper)(THIS_ LPDIRECTDRAWCLIPPER lpDDClipper, LPGUID lpGUID, int width, int height) PURE;
  152. STDMETHOD(Update)(THIS) PURE;
  153. STDMETHOD(AddUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
  154. STDMETHOD(DeleteUpdateCallback)(THIS_ D3DRMUPDATECALLBACK, LPVOID arg) PURE;
  155. STDMETHOD(SetBufferCount)(THIS_ DWORD) PURE;
  156. STDMETHOD_(DWORD, GetBufferCount)(THIS) PURE;
  157. STDMETHOD(SetDither)(THIS_ BOOL) PURE;
  158. STDMETHOD(SetShades)(THIS_ DWORD) PURE;
  159. STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
  160. STDMETHOD(SetTextureQuality)(THIS_ D3DRMTEXTUREQUALITY) PURE;
  161. STDMETHOD(GetViewports)(THIS_ LPDIRECT3DRMVIEWPORTARRAY *return_views) PURE;
  162. STDMETHOD_(BOOL, GetDither)(THIS) PURE;
  163. STDMETHOD_(DWORD, GetShades)(THIS) PURE;
  164. STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
  165. STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
  166. STDMETHOD_(DWORD, GetTrianglesDrawn)(THIS) PURE;
  167. STDMETHOD_(DWORD, GetWireframeOptions)(THIS) PURE;
  168. STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
  169. STDMETHOD_(D3DCOLORMODEL, GetColorModel)(THIS) PURE;
  170. STDMETHOD_(D3DRMTEXTUREQUALITY, GetTextureQuality)(THIS) PURE;
  171. STDMETHOD(GetDirect3DDevice)(THIS_ LPDIRECT3DDEVICE *) PURE;
  172. };
  173. #undef INTERFACE
  174. #define INTERFACE IDirect3DRMViewport
  175. DECLARE_INTERFACE_(IDirect3DRMViewport, IDirect3DRMObject)
  176. {
  177. IUNKNOWN_METHODS(PURE);
  178. IDIRECT3DRMOBJECT_METHODS(PURE);
  179. /*
  180. * IDirect3DRMViewport methods
  181. */
  182. STDMETHOD(Init)
  183. ( THIS_ LPDIRECT3DRMDEVICE dev, LPDIRECT3DRMFRAME camera,
  184. DWORD xpos, DWORD ypos, DWORD width, DWORD height
  185. ) PURE;
  186. STDMETHOD(Clear)(THIS) PURE;
  187. STDMETHOD(Render)(THIS_ LPDIRECT3DRMFRAME) PURE;
  188. STDMETHOD(SetFront)(THIS_ D3DVALUE) PURE;
  189. STDMETHOD(SetBack)(THIS_ D3DVALUE) PURE;
  190. STDMETHOD(SetField)(THIS_ D3DVALUE) PURE;
  191. STDMETHOD(SetUniformScaling)(THIS_ BOOL) PURE;
  192. STDMETHOD(SetCamera)(THIS_ LPDIRECT3DRMFRAME) PURE;
  193. STDMETHOD(SetProjection)(THIS_ D3DRMPROJECTIONTYPE) PURE;
  194. STDMETHOD(Transform)(THIS_ D3DRMVECTOR4D *d, D3DVECTOR *s) PURE;
  195. STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DRMVECTOR4D *s) PURE;
  196. STDMETHOD(Configure)(THIS_ LONG x, LONG y, DWORD width, DWORD height) PURE;
  197. STDMETHOD(ForceUpdate)(THIS_ DWORD x1, DWORD y1, DWORD x2, DWORD y2) PURE;
  198. STDMETHOD(SetPlane)(THIS_ D3DVALUE left, D3DVALUE right, D3DVALUE bottom, D3DVALUE top) PURE;
  199. STDMETHOD(GetCamera)(THIS_ LPDIRECT3DRMFRAME *) PURE;
  200. STDMETHOD(GetDevice)(THIS_ LPDIRECT3DRMDEVICE *) PURE;
  201. STDMETHOD(GetPlane)(THIS_ D3DVALUE *left, D3DVALUE *right, D3DVALUE *bottom, D3DVALUE *top) PURE;
  202. STDMETHOD(Pick)(THIS_ LONG x, LONG y, LPDIRECT3DRMPICKEDARRAY *return_visuals) PURE;
  203. STDMETHOD_(BOOL, GetUniformScaling)(THIS) PURE;
  204. STDMETHOD_(LONG, GetX)(THIS) PURE;
  205. STDMETHOD_(LONG, GetY)(THIS) PURE;
  206. STDMETHOD_(DWORD, GetWidth)(THIS) PURE;
  207. STDMETHOD_(DWORD, GetHeight)(THIS) PURE;
  208. STDMETHOD_(D3DVALUE, GetField)(THIS) PURE;
  209. STDMETHOD_(D3DVALUE, GetBack)(THIS) PURE;
  210. STDMETHOD_(D3DVALUE, GetFront)(THIS) PURE;
  211. STDMETHOD_(D3DRMPROJECTIONTYPE, GetProjection)(THIS) PURE;
  212. STDMETHOD(GetDirect3DViewport)(THIS_ LPDIRECT3DVIEWPORT *) PURE;
  213. };
  214. #undef INTERFACE
  215. #define INTERFACE IDirect3DRMFrame
  216. DECLARE_INTERFACE_(IDirect3DRMFrame, IDirect3DRMVisual)
  217. {
  218. IUNKNOWN_METHODS(PURE);
  219. IDIRECT3DRMOBJECT_METHODS(PURE);
  220. /*
  221. * IDirect3DRMFrame methods
  222. */
  223. STDMETHOD(AddChild)(THIS_ LPDIRECT3DRMFRAME child) PURE;
  224. STDMETHOD(AddLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
  225. STDMETHOD(AddMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
  226. STDMETHOD(AddTransform)(THIS_ D3DRMCOMBINETYPE, D3DRMMATRIX4D) PURE;
  227. STDMETHOD(AddTranslation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  228. STDMETHOD(AddScale)(THIS_ D3DRMCOMBINETYPE, D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  229. STDMETHOD(AddRotation)(THIS_ D3DRMCOMBINETYPE, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
  230. STDMETHOD(AddVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
  231. STDMETHOD(GetChildren)(THIS_ LPDIRECT3DRMFRAMEARRAY *children) PURE;
  232. STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
  233. STDMETHOD(GetLights)(THIS_ LPDIRECT3DRMLIGHTARRAY *lights) PURE;
  234. STDMETHOD_(D3DRMMATERIALMODE, GetMaterialMode)(THIS) PURE;
  235. STDMETHOD(GetParent)(THIS_ LPDIRECT3DRMFRAME *) PURE;
  236. STDMETHOD(GetPosition)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_position) PURE;
  237. STDMETHOD(GetRotation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR axis, LPD3DVALUE return_theta) PURE;
  238. STDMETHOD(GetScene)(THIS_ LPDIRECT3DRMFRAME *) PURE;
  239. STDMETHOD_(D3DRMSORTMODE, GetSortMode)(THIS) PURE;
  240. STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE;
  241. STDMETHOD(GetTransform)(THIS_ D3DRMMATRIX4D return_matrix) PURE;
  242. STDMETHOD(GetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR return_velocity, BOOL with_rotation) PURE;
  243. STDMETHOD(GetOrientation)(THIS_ LPDIRECT3DRMFRAME reference, LPD3DVECTOR dir, LPD3DVECTOR up) PURE;
  244. STDMETHOD(GetVisuals)(THIS_ LPDIRECT3DRMVISUALARRAY *visuals) PURE;
  245. STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE;
  246. STDMETHOD(InverseTransform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
  247. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg)PURE;
  248. STDMETHOD(LookAt)(THIS_ LPDIRECT3DRMFRAME target, LPDIRECT3DRMFRAME reference, D3DRMFRAMECONSTRAINT) PURE;
  249. STDMETHOD(Move)(THIS_ D3DVALUE delta) PURE;
  250. STDMETHOD(DeleteChild)(THIS_ LPDIRECT3DRMFRAME) PURE;
  251. STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DRMLIGHT) PURE;
  252. STDMETHOD(DeleteMoveCallback)(THIS_ D3DRMFRAMEMOVECALLBACK, VOID *arg) PURE;
  253. STDMETHOD(DeleteVisual)(THIS_ LPDIRECT3DRMVISUAL) PURE;
  254. STDMETHOD_(D3DCOLOR, GetSceneBackground)(THIS) PURE;
  255. STDMETHOD(GetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE *) PURE;
  256. STDMETHOD_(D3DCOLOR, GetSceneFogColor)(THIS) PURE;
  257. STDMETHOD_(BOOL, GetSceneFogEnable)(THIS) PURE;
  258. STDMETHOD_(D3DRMFOGMODE, GetSceneFogMode)(THIS) PURE;
  259. STDMETHOD(GetSceneFogParams)(THIS_ D3DVALUE *return_start, D3DVALUE *return_end, D3DVALUE *return_density) PURE;
  260. STDMETHOD(SetSceneBackground)(THIS_ D3DCOLOR) PURE;
  261. STDMETHOD(SetSceneBackgroundRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  262. STDMETHOD(SetSceneBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE;
  263. STDMETHOD(SetSceneBackgroundImage)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  264. STDMETHOD(SetSceneFogEnable)(THIS_ BOOL) PURE;
  265. STDMETHOD(SetSceneFogColor)(THIS_ D3DCOLOR) PURE;
  266. STDMETHOD(SetSceneFogMode)(THIS_ D3DRMFOGMODE) PURE;
  267. STDMETHOD(SetSceneFogParams)(THIS_ D3DVALUE start, D3DVALUE end, D3DVALUE density) PURE;
  268. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  269. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  270. STDMETHOD_(D3DRMZBUFFERMODE, GetZbufferMode)(THIS) PURE;
  271. STDMETHOD(SetMaterialMode)(THIS_ D3DRMMATERIALMODE) PURE;
  272. STDMETHOD(SetOrientation)
  273. ( THIS_ LPDIRECT3DRMFRAME reference,
  274. D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  275. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz
  276. ) PURE;
  277. STDMETHOD(SetPosition)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  278. STDMETHOD(SetRotation)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, D3DVALUE theta) PURE;
  279. STDMETHOD(SetSortMode)(THIS_ D3DRMSORTMODE) PURE;
  280. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  281. STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
  282. STDMETHOD(SetVelocity)(THIS_ LPDIRECT3DRMFRAME reference, D3DVALUE x, D3DVALUE y, D3DVALUE z, BOOL with_rotation) PURE;
  283. STDMETHOD(SetZbufferMode)(THIS_ D3DRMZBUFFERMODE) PURE;
  284. STDMETHOD(Transform)(THIS_ D3DVECTOR *d, D3DVECTOR *s) PURE;
  285. };
  286. #undef INTERFACE
  287. #define INTERFACE IDirect3DRMMesh
  288. DECLARE_INTERFACE_(IDirect3DRMMesh, IDirect3DRMVisual)
  289. {
  290. IUNKNOWN_METHODS(PURE);
  291. IDIRECT3DRMOBJECT_METHODS(PURE);
  292. /*
  293. * IDirect3DRMMesh methods
  294. */
  295. STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  296. STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
  297. STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
  298. STDMETHOD(AddGroup)(THIS_ unsigned vCount, unsigned fCount, unsigned vPerFace, unsigned *fData, D3DRMGROUPINDEX *returnId) PURE;
  299. STDMETHOD(SetVertices)(THIS_ D3DRMGROUPINDEX id, unsigned index, unsigned count, D3DRMVERTEX *values) PURE;
  300. STDMETHOD(SetGroupColor)(THIS_ D3DRMGROUPINDEX id, D3DCOLOR value) PURE;
  301. STDMETHOD(SetGroupColorRGB)(THIS_ D3DRMGROUPINDEX id, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  302. STDMETHOD(SetGroupMapping)(THIS_ D3DRMGROUPINDEX id, D3DRMMAPPING value) PURE;
  303. STDMETHOD(SetGroupQuality)(THIS_ D3DRMGROUPINDEX id, D3DRMRENDERQUALITY value) PURE;
  304. STDMETHOD(SetGroupMaterial)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMMATERIAL value) PURE;
  305. STDMETHOD(SetGroupTexture)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE value) PURE;
  306. STDMETHOD_(unsigned, GetGroupCount)(THIS) PURE;
  307. STDMETHOD(GetGroup)(THIS_ D3DRMGROUPINDEX id, unsigned *vCount, unsigned *fCount, unsigned *vPerFace, DWORD *fDataSize, unsigned *fData) PURE;
  308. STDMETHOD(GetVertices)(THIS_ D3DRMGROUPINDEX id, DWORD index, DWORD count, D3DRMVERTEX *returnPtr) PURE;
  309. STDMETHOD_(D3DCOLOR, GetGroupColor)(THIS_ D3DRMGROUPINDEX id) PURE;
  310. STDMETHOD_(D3DRMMAPPING, GetGroupMapping)(THIS_ D3DRMGROUPINDEX id) PURE;
  311. STDMETHOD_(D3DRMRENDERQUALITY, GetGroupQuality)(THIS_ D3DRMGROUPINDEX id) PURE;
  312. STDMETHOD(GetGroupMaterial)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMMATERIAL *returnPtr) PURE;
  313. STDMETHOD(GetGroupTexture)(THIS_ D3DRMGROUPINDEX id, LPDIRECT3DRMTEXTURE *returnPtr) PURE;
  314. };
  315. #undef INTERFACE
  316. #define INTERFACE IDirect3DRMShadow
  317. DECLARE_INTERFACE_(IDirect3DRMShadow, IDirect3DRMVisual)
  318. {
  319. IUNKNOWN_METHODS(PURE);
  320. IDIRECT3DRMOBJECT_METHODS(PURE);
  321. /*
  322. * IDirect3DRMShadow methods
  323. */
  324. STDMETHOD(Init)
  325. ( THIS_ LPDIRECT3DRMVISUAL visual, LPDIRECT3DRMLIGHT light,
  326. D3DVALUE px, D3DVALUE py, D3DVALUE pz,
  327. D3DVALUE nx, D3DVALUE ny, D3DVALUE nz
  328. ) PURE;
  329. };
  330. #undef INTERFACE
  331. #define INTERFACE IDirect3DRMFace
  332. DECLARE_INTERFACE_(IDirect3DRMFace, IDirect3DRMObject)
  333. {
  334. IUNKNOWN_METHODS(PURE);
  335. IDIRECT3DRMOBJECT_METHODS(PURE);
  336. /*
  337. * IDirect3DRMFace methods
  338. */
  339. STDMETHOD(AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  340. STDMETHOD(AddVertexAndNormalIndexed)(THIS_ DWORD vertex, DWORD normal) PURE;
  341. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE, D3DVALUE, D3DVALUE) PURE;
  342. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  343. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  344. STDMETHOD(SetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE u, D3DVALUE v) PURE;
  345. STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
  346. STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
  347. STDMETHOD(GetVertex)(THIS_ DWORD index, D3DVECTOR *vertex, D3DVECTOR *normal) PURE;
  348. STDMETHOD(GetVertices)(THIS_ DWORD *vertex_count, D3DVECTOR *coords, D3DVECTOR *normals);
  349. STDMETHOD(GetTextureCoordinates)(THIS_ DWORD vertex, D3DVALUE *u, D3DVALUE *v) PURE;
  350. STDMETHOD(GetTextureTopology)(THIS_ BOOL *wrap_u, BOOL *wrap_v) PURE;
  351. STDMETHOD(GetNormal)(THIS_ D3DVECTOR *) PURE;
  352. STDMETHOD(GetTexture)(THIS_ LPDIRECT3DRMTEXTURE *) PURE;
  353. STDMETHOD(GetMaterial)(THIS_ LPDIRECT3DRMMATERIAL *) PURE;
  354. STDMETHOD_(int, GetVertexCount)(THIS) PURE;
  355. STDMETHOD_(int, GetVertexIndex)(THIS_ DWORD which) PURE;
  356. STDMETHOD_(int, GetTextureCoordinateIndex)(THIS_ DWORD which) PURE;
  357. STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
  358. };
  359. #undef INTERFACE
  360. #define INTERFACE IDirect3DRMMeshBuilder
  361. DECLARE_INTERFACE_(IDirect3DRMMeshBuilder, IDirect3DRMVisual)
  362. {
  363. IUNKNOWN_METHODS(PURE);
  364. IDIRECT3DRMOBJECT_METHODS(PURE);
  365. /*
  366. * IDirect3DRMMeshBuilder methods
  367. */
  368. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg) PURE;
  369. STDMETHOD(Save)(THIS_ const char *filename, D3DRMXOFFORMAT, D3DRMSAVEOPTIONS save) PURE;
  370. STDMETHOD(Scale)(THIS_ D3DVALUE sx, D3DVALUE sy, D3DVALUE sz) PURE;
  371. STDMETHOD(Translate)(THIS_ D3DVALUE tx, D3DVALUE ty, D3DVALUE tz) PURE;
  372. STDMETHOD(SetColorSource)(THIS_ D3DRMCOLORSOURCE) PURE;
  373. STDMETHOD(GetBox)(THIS_ D3DRMBOX *) PURE;
  374. STDMETHOD(GenerateNormals)(THIS) PURE;
  375. STDMETHOD_(D3DRMCOLORSOURCE, GetColorSource)(THIS) PURE;
  376. STDMETHOD(AddMesh)(THIS_ LPDIRECT3DRMMESH) PURE;
  377. STDMETHOD(AddMeshBuilder)(THIS_ LPDIRECT3DRMMESHBUILDER) PURE;
  378. STDMETHOD(AddFrame)(THIS_ LPDIRECT3DRMFRAME) PURE;
  379. STDMETHOD(AddFace)(THIS_ LPDIRECT3DRMFACE) PURE;
  380. STDMETHOD(AddFaces)
  381. ( THIS_ DWORD vcount, D3DVECTOR *vertices, DWORD ncount, D3DVECTOR *normals,
  382. DWORD *data, LPDIRECT3DRMFACEARRAY*
  383. ) PURE;
  384. STDMETHOD(ReserveSpace)(THIS_ DWORD vertex_Count, DWORD normal_count, DWORD face_count) PURE;
  385. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  386. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  387. STDMETHOD(SetTexture)(THIS_ LPDIRECT3DRMTEXTURE) PURE;
  388. STDMETHOD(SetMaterial)(THIS_ LPDIRECT3DRMMATERIAL) PURE;
  389. STDMETHOD(SetTextureTopology)(THIS_ BOOL wrap_u, BOOL wrap_v) PURE;
  390. STDMETHOD(SetQuality)(THIS_ D3DRMRENDERQUALITY) PURE;
  391. STDMETHOD(SetPerspective)(THIS_ BOOL) PURE;
  392. STDMETHOD(SetVertex)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  393. STDMETHOD(SetNormal)(THIS_ DWORD index, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  394. STDMETHOD(SetTextureCoordinates)(THIS_ DWORD index, D3DVALUE u, D3DVALUE v) PURE;
  395. STDMETHOD(SetVertexColor)(THIS_ DWORD index, D3DCOLOR) PURE;
  396. STDMETHOD(SetVertexColorRGB)(THIS_ DWORD index, D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  397. STDMETHOD(GetFaces)(THIS_ LPDIRECT3DRMFACEARRAY*) PURE;
  398. STDMETHOD(GetVertices)
  399. ( THIS_ DWORD *vcount, D3DVECTOR *vertices, DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size, DWORD *face_data
  400. ) PURE;
  401. STDMETHOD(GetTextureCoordinates)(THIS_ DWORD index, D3DVALUE *u, D3DVALUE *v) PURE;
  402. STDMETHOD_(int, AddVertex)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  403. STDMETHOD_(int, AddNormal)(THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  404. STDMETHOD(CreateFace)(THIS_ LPDIRECT3DRMFACE*) PURE;
  405. STDMETHOD_(D3DRMRENDERQUALITY, GetQuality)(THIS) PURE;
  406. STDMETHOD_(BOOL, GetPerspective)(THIS) PURE;
  407. STDMETHOD_(int, GetFaceCount)(THIS) PURE;
  408. STDMETHOD_(int, GetVertexCount)(THIS) PURE;
  409. STDMETHOD_(D3DCOLOR, GetVertexColor)(THIS_ DWORD index) PURE;
  410. STDMETHOD(CreateMesh)(THIS_ LPDIRECT3DRMMESH*) PURE;
  411. };
  412. #undef INTERFACE
  413. #define INTERFACE IDirect3DRMLight
  414. DECLARE_INTERFACE_(IDirect3DRMLight, IDirect3DRMObject)
  415. {
  416. IUNKNOWN_METHODS(PURE);
  417. IDIRECT3DRMOBJECT_METHODS(PURE);
  418. /*
  419. * IDirect3DRMLight methods
  420. */
  421. STDMETHOD(SetType)(THIS_ D3DRMLIGHTTYPE) PURE;
  422. STDMETHOD(SetColor)(THIS_ D3DCOLOR) PURE;
  423. STDMETHOD(SetColorRGB)(THIS_ D3DVALUE red, D3DVALUE green, D3DVALUE blue) PURE;
  424. STDMETHOD(SetRange)(THIS_ D3DVALUE) PURE;
  425. STDMETHOD(SetUmbra)(THIS_ D3DVALUE) PURE;
  426. STDMETHOD(SetPenumbra)(THIS_ D3DVALUE) PURE;
  427. STDMETHOD(SetConstantAttenuation)(THIS_ D3DVALUE) PURE;
  428. STDMETHOD(SetLinearAttenuation)(THIS_ D3DVALUE) PURE;
  429. STDMETHOD(SetQuadraticAttenuation)(THIS_ D3DVALUE) PURE;
  430. STDMETHOD_(D3DVALUE, GetRange)(THIS) PURE;
  431. STDMETHOD_(D3DVALUE, GetUmbra)(THIS) PURE;
  432. STDMETHOD_(D3DVALUE, GetPenumbra)(THIS) PURE;
  433. STDMETHOD_(D3DVALUE, GetConstantAttenuation)(THIS) PURE;
  434. STDMETHOD_(D3DVALUE, GetLinearAttenuation)(THIS) PURE;
  435. STDMETHOD_(D3DVALUE, GetQuadraticAttenuation)(THIS) PURE;
  436. STDMETHOD_(D3DCOLOR, GetColor)(THIS) PURE;
  437. STDMETHOD_(D3DRMLIGHTTYPE, GetType)(THIS) PURE;
  438. STDMETHOD(SetEnableFrame)(THIS_ LPDIRECT3DRMFRAME) PURE;
  439. STDMETHOD(GetEnableFrame)(THIS_ LPDIRECT3DRMFRAME*) PURE;
  440. };
  441. #undef INTERFACE
  442. #define INTERFACE IDirect3DRMTexture
  443. DECLARE_INTERFACE_(IDirect3DRMTexture, IDirect3DRMVisual)
  444. {
  445. IUNKNOWN_METHODS(PURE);
  446. IDIRECT3DRMOBJECT_METHODS(PURE);
  447. /*
  448. * IDirect3DRMTexture methods
  449. */
  450. STDMETHOD(InitFromFile)(THIS_ const char *filename) PURE;
  451. STDMETHOD(InitFromSurface)(THIS_ LPDIRECTDRAWSURFACE lpDDS) PURE;
  452. STDMETHOD(InitFromResource)(THIS_ HRSRC) PURE;
  453. STDMETHOD(Changed)(THIS_ BOOL pixels, BOOL palette) PURE;
  454. STDMETHOD(SetColors)(THIS_ DWORD) PURE;
  455. STDMETHOD(SetShades)(THIS_ DWORD) PURE;
  456. STDMETHOD(SetDecalSize)(THIS_ D3DVALUE width, D3DVALUE height) PURE;
  457. STDMETHOD(SetDecalOrigin)(THIS_ LONG x, LONG y) PURE;
  458. STDMETHOD(SetDecalScale)(THIS_ DWORD) PURE;
  459. STDMETHOD(SetDecalTransparency)(THIS_ BOOL) PURE;
  460. STDMETHOD(SetDecalTransparentColor)(THIS_ D3DCOLOR) PURE;
  461. STDMETHOD(GetDecalSize)(THIS_ D3DVALUE *width_return, D3DVALUE *height_return) PURE;
  462. STDMETHOD(GetDecalOrigin)(THIS_ LONG *x_return, LONG *y_return) PURE;
  463. STDMETHOD_(D3DRMIMAGE *, GetImage)(THIS) PURE;
  464. STDMETHOD_(DWORD, GetShades)(THIS) PURE;
  465. STDMETHOD_(DWORD, GetColors)(THIS) PURE;
  466. STDMETHOD_(DWORD, GetDecalScale)(THIS) PURE;
  467. STDMETHOD_(BOOL, GetDecalTransparency)(THIS) PURE;
  468. STDMETHOD_(D3DCOLOR, GetDecalTransparentColor)(THIS) PURE;
  469. };
  470. #undef INTERFACE
  471. #define INTERFACE IDirect3DRMWrap
  472. DECLARE_INTERFACE_(IDirect3DRMWrap, IDirect3DRMObject)
  473. {
  474. IUNKNOWN_METHODS(PURE);
  475. IDIRECT3DRMOBJECT_METHODS(PURE);
  476. /*
  477. * IDirect3DRMWrap methods
  478. */
  479. STDMETHOD(Init)
  480. ( THIS_ D3DRMWRAPTYPE, LPDIRECT3DRMFRAME ref,
  481. D3DVALUE ox, D3DVALUE oy, D3DVALUE oz,
  482. D3DVALUE dx, D3DVALUE dy, D3DVALUE dz,
  483. D3DVALUE ux, D3DVALUE uy, D3DVALUE uz,
  484. D3DVALUE ou, D3DVALUE ov,
  485. D3DVALUE su, D3DVALUE sv
  486. ) PURE;
  487. STDMETHOD(Apply)(THIS_ LPDIRECT3DRMOBJECT) PURE;
  488. STDMETHOD(ApplyRelative)(THIS_ LPDIRECT3DRMFRAME frame, LPDIRECT3DRMOBJECT) PURE;
  489. };
  490. #undef INTERFACE
  491. #define INTERFACE IDirect3DRMMaterial
  492. DECLARE_INTERFACE_(IDirect3DRMMaterial, IDirect3DRMObject)
  493. {
  494. IUNKNOWN_METHODS(PURE);
  495. IDIRECT3DRMOBJECT_METHODS(PURE);
  496. /*
  497. * IDirect3DRMMaterial methods
  498. */
  499. STDMETHOD(SetPower)(THIS_ D3DVALUE power) PURE;
  500. STDMETHOD(SetSpecular)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
  501. STDMETHOD(SetEmissive)(THIS_ D3DVALUE r, D3DVALUE g, D3DVALUE b) PURE;
  502. STDMETHOD_(D3DVALUE, GetPower)(THIS) PURE;
  503. STDMETHOD(GetSpecular)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
  504. STDMETHOD(GetEmissive)(THIS_ D3DVALUE* r, D3DVALUE* g, D3DVALUE* b) PURE;
  505. };
  506. #undef INTERFACE
  507. #define INTERFACE IDirect3DRMAnimation
  508. DECLARE_INTERFACE_(IDirect3DRMAnimation, IDirect3DRMObject)
  509. {
  510. IUNKNOWN_METHODS(PURE);
  511. IDIRECT3DRMOBJECT_METHODS(PURE);
  512. /*
  513. * IDirect3DRMAnimation methods
  514. */
  515. STDMETHOD(SetOptions)(THIS_ D3DRMANIMATIONOPTIONS flags) PURE;
  516. STDMETHOD(AddRotateKey)(THIS_ D3DVALUE time, D3DRMQUATERNION *q) PURE;
  517. STDMETHOD(AddPositionKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  518. STDMETHOD(AddScaleKey)(THIS_ D3DVALUE time, D3DVALUE x, D3DVALUE y, D3DVALUE z) PURE;
  519. STDMETHOD(DeleteKey)(THIS_ D3DVALUE time) PURE;
  520. STDMETHOD(SetFrame)(THIS_ LPDIRECT3DRMFRAME frame) PURE;
  521. STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
  522. STDMETHOD_(D3DRMANIMATIONOPTIONS, GetOptions)(THIS) PURE;
  523. };
  524. #undef INTERFACE
  525. #define INTERFACE IDirect3DRMAnimationSet
  526. DECLARE_INTERFACE_(IDirect3DRMAnimationSet, IDirect3DRMObject)
  527. {
  528. IUNKNOWN_METHODS(PURE);
  529. IDIRECT3DRMOBJECT_METHODS(PURE);
  530. /*
  531. * IDirect3DRMAnimationSet methods
  532. */
  533. STDMETHOD(AddAnimation)(THIS_ LPDIRECT3DRMANIMATION aid) PURE;
  534. STDMETHOD(Load)(THIS_ LPVOID filename, LPVOID name, D3DRMLOADOPTIONS loadflags, D3DRMLOADTEXTURECALLBACK, LPVOID lpArg, LPDIRECT3DRMFRAME parent)PURE;
  535. STDMETHOD(DeleteAnimation)(THIS_ LPDIRECT3DRMANIMATION aid) PURE;
  536. STDMETHOD(SetTime)(THIS_ D3DVALUE time) PURE;
  537. };
  538. #undef INTERFACE
  539. #define INTERFACE IDirect3DRMUserVisual
  540. DECLARE_INTERFACE_(IDirect3DRMUserVisual, IDirect3DRMVisual)
  541. {
  542. IUNKNOWN_METHODS(PURE);
  543. IDIRECT3DRMOBJECT_METHODS(PURE);
  544. /*
  545. * IDirect3DRMUserVisual methods
  546. */
  547. STDMETHOD(Init)(THIS_ D3DRMUSERVISUALCALLBACK fn, void *arg) PURE;
  548. };
  549. #undef INTERFACE
  550. #define INTERFACE IDirect3DRMArray
  551. DECLARE_INTERFACE_(IDirect3DRMArray, IUnknown)
  552. {
  553. IUNKNOWN_METHODS(PURE);
  554. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  555. /* No GetElement method as it would get overloaded
  556. * in derived classes, and overloading is
  557. * a no-no in COM
  558. */
  559. };
  560. #undef INTERFACE
  561. #define INTERFACE IDirect3DRMDeviceArray
  562. DECLARE_INTERFACE_(IDirect3DRMDeviceArray, IDirect3DRMArray)
  563. {
  564. IUNKNOWN_METHODS(PURE);
  565. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  566. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMDEVICE *) PURE;
  567. };
  568. #undef INTERFACE
  569. #define INTERFACE IDirect3DRMFrameArray
  570. DECLARE_INTERFACE_(IDirect3DRMFrameArray, IDirect3DRMArray)
  571. {
  572. IUNKNOWN_METHODS(PURE);
  573. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  574. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMFRAME *) PURE;
  575. };
  576. #undef INTERFACE
  577. #define INTERFACE IDirect3DRMViewportArray
  578. DECLARE_INTERFACE_(IDirect3DRMViewportArray, IDirect3DRMArray)
  579. {
  580. IUNKNOWN_METHODS(PURE);
  581. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  582. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMVIEWPORT *) PURE;
  583. };
  584. #undef INTERFACE
  585. #define INTERFACE IDirect3DRMVisualArray
  586. DECLARE_INTERFACE_(IDirect3DRMVisualArray, IDirect3DRMArray)
  587. {
  588. IUNKNOWN_METHODS(PURE);
  589. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  590. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *) PURE;
  591. };
  592. #undef INTERFACE
  593. #define INTERFACE IDirect3DRMPickedArray
  594. DECLARE_INTERFACE_(IDirect3DRMPickedArray, IDirect3DRMArray)
  595. {
  596. IUNKNOWN_METHODS(PURE);
  597. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  598. STDMETHOD(GetPick)(THIS_ DWORD index, LPDIRECT3DRMVISUAL *, LPDIRECT3DRMFRAMEARRAY *, LPD3DRMPICKDESC) PURE;
  599. };
  600. #undef INTERFACE
  601. #define INTERFACE IDirect3DRMLightArray
  602. DECLARE_INTERFACE_(IDirect3DRMLightArray, IDirect3DRMArray)
  603. {
  604. IUNKNOWN_METHODS(PURE);
  605. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  606. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMLIGHT *) PURE;
  607. };
  608. #undef INTERFACE
  609. #define INTERFACE IDirect3DRMFaceArray
  610. DECLARE_INTERFACE_(IDirect3DRMFaceArray, IDirect3DRMArray)
  611. {
  612. IUNKNOWN_METHODS(PURE);
  613. STDMETHOD_(DWORD, GetSize)(THIS) PURE;
  614. STDMETHOD(GetElement)(THIS_ DWORD index, LPDIRECT3DRMFACE *) PURE;
  615. };
  616. #ifdef __cplusplus
  617. };
  618. #endif
  619. #endif /* _D3DRMOBJ_H_ */