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.

74 lines
2.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: d3drmclippervisualobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3dRMClippedVisualObj.h : Declaration of the C_dxj_Direct3dRMClippedVisualObject
  11. #include "resource.h" // main symbols
  12. #include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMClippedVisual LPDIRECT3DRMCLIPPEDVISUAL
  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_Direct3dRMClippedVisualObject :
  19. public I_dxj_Direct3dRMClippedVisual,
  20. public I_dxj_Direct3dRMVisual,
  21. public I_dxj_Direct3dRMObject,
  22. public CComObjectRoot
  23. {
  24. public:
  25. C_dxj_Direct3dRMClippedVisualObject() ;
  26. virtual ~C_dxj_Direct3dRMClippedVisualObject() ;
  27. BEGIN_COM_MAP(C_dxj_Direct3dRMClippedVisualObject)
  28. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMClippedVisual)
  29. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMVisual)
  30. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMObject)
  31. END_COM_MAP()
  32. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMClippedVisualObject)
  33. // I_dxj_Direct3dRMClippedVisual
  34. public:
  35. // MUST BE FIRST
  36. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  37. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  38. STDMETHOD(clone)(IUnknown **retval);
  39. STDMETHOD(setAppData)(long);
  40. STDMETHOD(getAppData)(long*);
  41. STDMETHOD(addDestroyCallback)(I_dxj_D3dRMCallback *fn, IUnknown *args);
  42. STDMETHOD(deleteDestroyCallback)(I_dxj_D3dRMCallback *fn, IUnknown *args);
  43. STDMETHOD(getName)(BSTR *name);
  44. STDMETHOD(setName)(BSTR);
  45. STDMETHOD(getClassName)(BSTR *name);
  46. STDMETHOD(setPower)(d3dvalue power);
  47. STDMETHOD(setSpecular)(d3dvalue r, d3dvalue g, d3dvalue b);
  48. STDMETHOD(setEmissive)(d3dvalue r, d3dvalue g, d3dvalue b);
  49. STDMETHOD(getPower)(d3dvalue *power);
  50. STDMETHOD(getSpecular)(d3dvalue *r, d3dvalue *g, d3dvalue *b);
  51. STDMETHOD(getEmissive)(d3dvalue *r, d3dvalue *g, d3dvalue *b);
  52. ////////////////////////////////////////////////////////////////////////////////////
  53. //
  54. private:
  55. DECL_VARIABLE(_dxj_Direct3dRMClippedVisual);
  56. public:
  57. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMClippedVisual )
  58. };