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.

113 lines
3.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmmeshinterobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmViewport2Obj.h : Declaration of the C_dxj_Direct3dRMMeshInterpolatorObject
  11. #include "resource.h" // main symbols
  12. //#include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMMeshInterpolator LPDIRECT3DRMINTERPOLATOR
  14. /////////////////////////////////////////////////////////////////////////////
  15. // Direct
  16. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  17. //references as template arguments.
  18. class C_dxj_Direct3dRMMeshInterpolatorObject :
  19. public I_dxj_Direct3dRMMeshInterpolator,
  20. public I_dxj_Direct3dRMInterpolator,
  21. //public I_dxj_Direct3dRMObject,
  22. public CComObjectRoot
  23. {
  24. public:
  25. C_dxj_Direct3dRMMeshInterpolatorObject() ;
  26. virtual ~C_dxj_Direct3dRMMeshInterpolatorObject() ;
  27. DWORD InternalAddRef();
  28. DWORD InternalRelease();
  29. BEGIN_COM_MAP(C_dxj_Direct3dRMMeshInterpolatorObject)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMMeshInterpolator)
  31. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMInterpolator)
  32. //COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  33. END_COM_MAP()
  34. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMMeshInterpolatorObject)
  35. // I_dxj_Direct3dRMViewport2
  36. public:
  37. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  38. /* [in] */ IUnknown __RPC_FAR *lpdd);
  39. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  40. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
  41. HRESULT STDMETHODCALLTYPE attachObject(
  42. /* [in] */ I_dxj_Direct3dRMObject __RPC_FAR *rmObject);
  43. HRESULT STDMETHODCALLTYPE detachObject(
  44. /* [in] */ I_dxj_Direct3dRMObject __RPC_FAR *rmObject);
  45. HRESULT STDMETHODCALLTYPE getAttachedObjects(
  46. /* [retval][out] */ I_dxj_Direct3dRMObjectArray __RPC_FAR *__RPC_FAR *rmArray);
  47. HRESULT STDMETHODCALLTYPE setIndex(
  48. /* [in] */ float val);
  49. HRESULT STDMETHODCALLTYPE getIndex(
  50. /* [retval][out] */ float __RPC_FAR *val);
  51. HRESULT STDMETHODCALLTYPE interpolate(
  52. /* [in] */ float val,
  53. /* [in] */ I_dxj_Direct3dRMObject __RPC_FAR *rmobject,
  54. /* [in] */ long options);
  55. HRESULT STDMETHODCALLTYPE translate(
  56. /* [in] */ float tx,
  57. /* [in] */ float ty,
  58. /* [in] */ float tz) ;
  59. HRESULT STDMETHODCALLTYPE setVertices(
  60. /* [in] */ d3drmGroupIndex id,
  61. /* [in] */ long idx,
  62. /* [in] */ long count,
  63. /* [in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *vertexArray);
  64. HRESULT STDMETHODCALLTYPE setGroupColor(
  65. /* [in] */ d3drmGroupIndex id,
  66. /* [in] */ d3dcolor val);
  67. HRESULT STDMETHODCALLTYPE setGroupColorRGB(
  68. /* [in] */ d3drmGroupIndex id,
  69. /* [in] */ float r,
  70. /* [in] */ float g,
  71. /* [in] */ float b) ;
  72. ////////////////////////////////////////////////////////////////////////////////////
  73. //
  74. // note: this is public for the callbacks
  75. private:
  76. DECL_VARIABLE(_dxj_Direct3dRMMeshInterpolator);
  77. LPDIRECT3DRMMESH m__dxj_Direct3dRMMesh;
  78. public:
  79. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMMeshInterpolator )
  80. };