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.

88 lines
2.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: d3drmlightobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmLightObj.h : Declaration of the C_dxj_Direct3dRMLightObject
  11. #include "resource.h" // main symbols
  12. #include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMLight LPDIRECT3DRMLIGHT
  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_Direct3dRMLightObject :
  19. public I_dxj_Direct3dRMLight,
  20. public I_dxj_Direct3dRMObject,
  21. //public CComCoClass<C_dxj_Direct3dRMLightObject, &CLSID__dxj_Direct3dRMLight>,
  22. public CComObjectRoot
  23. {
  24. public:
  25. C_dxj_Direct3dRMLightObject();
  26. virtual ~C_dxj_Direct3dRMLightObject();
  27. BEGIN_COM_MAP(C_dxj_Direct3dRMLightObject)
  28. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMLight)
  29. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  30. END_COM_MAP()
  31. // DECLARE_REGISTRY(CLSID__dxj_Direct3dRMLight, "DIRECT.Direct3dRMLight.3", "DIRECT.Direct3dRMLight.3", IDS_D3DRMLIGHT_DESC, THREADFLAGS_BOTH)
  32. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMLightObject)
  33. // I_dxj_Direct3dRMLight
  34. public:
  35. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  36. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  37. STDMETHOD(clone)(IUnknown **retval);
  38. STDMETHOD(setAppData)(long);
  39. STDMETHOD(getAppData)(long*);
  40. STDMETHOD(addDestroyCallback)(I_dxj_Direct3dRMCallback *fn, IUnknown *args);
  41. STDMETHOD(deleteDestroyCallback)(I_dxj_Direct3dRMCallback *fn, IUnknown *args);
  42. STDMETHOD(getName)(BSTR *name);
  43. STDMETHOD(setName)(BSTR);
  44. STDMETHOD(getClassName)(BSTR *name);
  45. STDMETHOD(getColor)( d3dcolor *value);
  46. // methods added
  47. STDMETHOD(setType)(d3drmLightType t);
  48. STDMETHOD(setColor)(d3dcolor c);
  49. STDMETHOD(setColorRGB)(d3dvalue r, d3dvalue g, d3dvalue b);
  50. STDMETHOD(setRange)(d3dvalue rng);
  51. STDMETHOD(setUmbra)(d3dvalue u);
  52. STDMETHOD(setPenumbra)(d3dvalue p);
  53. STDMETHOD(setConstantAttenuation)(d3dvalue atn);
  54. STDMETHOD(setLinearAttenuation)(d3dvalue atn);
  55. STDMETHOD(setQuadraticAttenuation)(d3dvalue atn);
  56. STDMETHOD(getRange)(d3dvalue *retval);
  57. STDMETHOD(getUmbra)(d3dvalue *retval);
  58. STDMETHOD(getPenumbra)(d3dvalue *retval);
  59. STDMETHOD(getConstantAttenuation)( d3dvalue *retval);
  60. STDMETHOD(getLinearAttenuation)( d3dvalue *retval);
  61. STDMETHOD(getQuadraticAttenuation)( d3dvalue *retval);
  62. STDMETHOD(getType)( d3drmLightType *retval);
  63. STDMETHOD(setEnableFrame)( I_dxj_Direct3dRMFrame3 *f);
  64. STDMETHOD(getEnableFrame)( I_dxj_Direct3dRMFrame3 **retval);
  65. ////////////////////////////////////////////////////////////////////////////////////
  66. //
  67. private:
  68. DECL_VARIABLE(_dxj_Direct3dRMLight);
  69. public:
  70. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMLight )
  71. };