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.

119 lines
3.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: d3drmmaterial2obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmMaterial2Obj.h : Declaration of the C_dxj_Direct3dRMMaterial2Object
  11. #include "resource.h" // main symbols
  12. #include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMMaterial2 LPDIRECT3DRMMATERIAL2
  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_Direct3dRMMaterial2Object :
  19. public I_dxj_Direct3dRMMaterial2,
  20. public I_dxj_Direct3dRMObject,
  21. public CComObjectRoot
  22. {
  23. public:
  24. C_dxj_Direct3dRMMaterial2Object() ;
  25. virtual ~C_dxj_Direct3dRMMaterial2Object() ;
  26. BEGIN_COM_MAP(C_dxj_Direct3dRMMaterial2Object)
  27. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMMaterial2)
  28. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  29. END_COM_MAP()
  30. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMMaterial2Object)
  31. // I_dxj_Direct3dRMMaterial2
  32. public:
  33. HRESULT STDMETHODCALLTYPE InternalSetObject(
  34. /* [in] */ IUnknown __RPC_FAR *lpdd);
  35. HRESULT STDMETHODCALLTYPE InternalGetObject(
  36. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
  37. HRESULT STDMETHODCALLTYPE addDestroyCallback(
  38. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  39. /* [in] */ IUnknown __RPC_FAR *arg);
  40. HRESULT STDMETHODCALLTYPE deleteDestroyCallback(
  41. /* [in] */ I_dxj_Direct3dRMCallback __RPC_FAR *fn,
  42. /* [in] */ IUnknown __RPC_FAR *args);
  43. HRESULT STDMETHODCALLTYPE clone(
  44. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *retv);
  45. HRESULT STDMETHODCALLTYPE setAppData(
  46. /* [in] */ long data);
  47. HRESULT STDMETHODCALLTYPE getAppData(
  48. /* [retval][out] */ long __RPC_FAR *data);
  49. HRESULT STDMETHODCALLTYPE setName(
  50. /* [in] */ BSTR name);
  51. HRESULT STDMETHODCALLTYPE getName(
  52. /* [retval][out] */ BSTR __RPC_FAR *name);
  53. HRESULT STDMETHODCALLTYPE getClassName(
  54. /* [retval][out] */ BSTR __RPC_FAR *name);
  55. HRESULT STDMETHODCALLTYPE setPower(
  56. /* [in] */ float power);
  57. HRESULT STDMETHODCALLTYPE setSpecular(
  58. /* [in] */ float r,
  59. /* [in] */ float g,
  60. /* [in] */ float b);
  61. HRESULT STDMETHODCALLTYPE setEmissive(
  62. /* [in] */ float r,
  63. /* [in] */ float g,
  64. /* [in] */ float b);
  65. HRESULT STDMETHODCALLTYPE setAmbient(
  66. /* [in] */ float r,
  67. /* [in] */ float g,
  68. /* [in] */ float b);
  69. HRESULT STDMETHODCALLTYPE getPower(
  70. /* [retval][out] */ float __RPC_FAR *power);
  71. HRESULT STDMETHODCALLTYPE getSpecular(
  72. /* [out] */ float __RPC_FAR *r,
  73. /* [out] */ float __RPC_FAR *g,
  74. /* [out] */ float __RPC_FAR *b);
  75. HRESULT STDMETHODCALLTYPE getEmissive(
  76. /* [out] */ float __RPC_FAR *r,
  77. /* [out] */ float __RPC_FAR *g,
  78. /* [out] */ float __RPC_FAR *b);
  79. HRESULT STDMETHODCALLTYPE getAmbient(
  80. /* [out] */ float __RPC_FAR *r,
  81. /* [out] */ float __RPC_FAR *g,
  82. /* [out] */ float __RPC_FAR *b);
  83. ////////////////////////////////////////////////////////////////////////////////////
  84. //
  85. private:
  86. DECL_VARIABLE(_dxj_Direct3dRMMaterial2);
  87. public:
  88. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMMaterial2 )
  89. };