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.

122 lines
3.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmlightinterobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmViewport2Obj.h : Declaration of the C_dxj_Direct3dRMLightInterpolatorObject
  11. #include "resource.h" // main symbols
  12. //#include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMLightInterpolator 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_Direct3dRMLightInterpolatorObject :
  19. public I_dxj_Direct3dRMLightInterpolator,
  20. public I_dxj_Direct3dRMInterpolator,
  21. //public I_dxj_Direct3dRMObject,
  22. public CComObjectRoot
  23. {
  24. public:
  25. C_dxj_Direct3dRMLightInterpolatorObject() ;
  26. virtual ~C_dxj_Direct3dRMLightInterpolatorObject() ;
  27. DWORD InternalAddRef();
  28. DWORD InternalRelease();
  29. BEGIN_COM_MAP(C_dxj_Direct3dRMLightInterpolatorObject)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMLightInterpolator)
  31. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMInterpolator)
  32. //COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  33. END_COM_MAP()
  34. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMLightInterpolatorObject)
  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 setType(
  56. // /* [in] */ d3drmLightType t);
  57. HRESULT STDMETHODCALLTYPE setColor(
  58. /* [in] */ d3dcolor c);
  59. HRESULT STDMETHODCALLTYPE setColorRGB(
  60. /* [in] */ float r,
  61. /* [in] */ float g,
  62. /* [in] */ float b);
  63. HRESULT STDMETHODCALLTYPE setRange(
  64. /* [in] */ float rng);
  65. HRESULT STDMETHODCALLTYPE setUmbra(
  66. /* [in] */ float u);
  67. HRESULT STDMETHODCALLTYPE setPenumbra(
  68. /* [in] */ float p);
  69. HRESULT STDMETHODCALLTYPE setConstantAttenuation(
  70. /* [in] */ float atn);
  71. HRESULT STDMETHODCALLTYPE setLinearAttenuation(
  72. /* [in] */ float atn);
  73. HRESULT STDMETHODCALLTYPE setQuadraticAttenuation(
  74. /* [in] */ float atn);
  75. ////////////////////////////////////////////////////////////////////////////////////
  76. //
  77. // note: this is public for the callbacks
  78. private:
  79. DECL_VARIABLE(_dxj_Direct3dRMLightInterpolator);
  80. LPDIRECT3DRMLIGHT m__dxj_Direct3dRMLight;
  81. public:
  82. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMLightInterpolator )
  83. };