Leaked source code of windows server 2003
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.

151 lines
4.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmframeinterobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmViewport2Obj.h : Declaration of the C_dxj_Direct3dRMFrameInterpolatorObject
  11. #include "resource.h" // main symbols
  12. //#include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMFrameInterpolator 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_Direct3dRMFrameInterpolatorObject :
  19. public I_dxj_Direct3dRMFrameInterpolator,
  20. public I_dxj_Direct3dRMInterpolator,
  21. //public I_dxj_Direct3dRMObject,
  22. public CComObjectRoot
  23. {
  24. public:
  25. C_dxj_Direct3dRMFrameInterpolatorObject() ;
  26. virtual ~C_dxj_Direct3dRMFrameInterpolatorObject() ;
  27. DWORD InternalAddRef();
  28. DWORD InternalRelease();
  29. BEGIN_COM_MAP(C_dxj_Direct3dRMFrameInterpolatorObject)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMFrameInterpolator)
  31. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMInterpolator)
  32. //COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  33. END_COM_MAP()
  34. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMFrameInterpolatorObject)
  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 setPosition(
  56. /* [in] */ I_dxj_Direct3dRMFrame3 __RPC_FAR *reference,
  57. /* [in] */ float x,
  58. /* [in] */ float y,
  59. /* [in] */ float z);
  60. HRESULT STDMETHODCALLTYPE setQuaternion(
  61. /* [in] */ I_dxj_Direct3dRMFrame3 __RPC_FAR *reference,
  62. D3dRMQuaternion __RPC_FAR *quat);
  63. HRESULT STDMETHODCALLTYPE setRotation(
  64. /* [in] */ I_dxj_Direct3dRMFrame3 __RPC_FAR *reference,
  65. /* [in] */ float x,
  66. /* [in] */ float y,
  67. /* [in] */ float z,
  68. /* [in] */ float theta);
  69. HRESULT STDMETHODCALLTYPE setVelocity(
  70. /* [in] */ I_dxj_Direct3dRMFrame3 __RPC_FAR *reference,
  71. /* [in] */ float x,
  72. /* [in] */ float y,
  73. /* [in] */ float z,
  74. /* [in] */ long with_rotation);
  75. HRESULT STDMETHODCALLTYPE setOrientation(
  76. /* [in] */ I_dxj_Direct3dRMFrame3 __RPC_FAR *reference,
  77. /* [in] */ float dx,
  78. /* [in] */ float dy,
  79. /* [in] */ float dz,
  80. /* [in] */ float ux,
  81. /* [in] */ float uy,
  82. /* [in] */ float uz);
  83. HRESULT STDMETHODCALLTYPE setSceneBackground(
  84. /* [in] */ d3dcolor c);
  85. HRESULT STDMETHODCALLTYPE setSceneFogColor(
  86. /* [in] */ d3dcolor c);
  87. HRESULT STDMETHODCALLTYPE setSceneBackgroundRGB(
  88. /* [in] */ float r,
  89. /* [in] */ float g,
  90. /* [in] */ float b);
  91. HRESULT STDMETHODCALLTYPE setSceneFogParams(
  92. /* [in] */ float start,
  93. /* [in] */ float end,
  94. /* [in] */ float density);
  95. HRESULT STDMETHODCALLTYPE setColor(
  96. /* [in] */ d3dcolor c);
  97. HRESULT STDMETHODCALLTYPE setColorRGB(
  98. /* [in] */ float r,
  99. /* [in] */ float g,
  100. /* [in] */ float b);
  101. ////////////////////////////////////////////////////////////////////////////////////
  102. //
  103. // note: this is public for the callbacks
  104. private:
  105. DECL_VARIABLE(_dxj_Direct3dRMFrameInterpolator);
  106. LPDIRECT3DRMFRAME3 m__dxj_Direct3dRMFrame3;
  107. public:
  108. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMFrameInterpolator )
  109. };