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.

70 lines
2.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3drmanimationset2obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmAnimationSet2Obj.h : Declaration of the C_dxj_Direct3dRMAnimationSet2Object
  11. #include "resource.h" // main symbols
  12. #include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMAnimationSet2 LPDIRECT3DRMANIMATIONSET2
  14. /////////////////////////////////////////////////////////////////////////////
  15. // Direct
  16. //
  17. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  18. //references as template arguments.
  19. class C_dxj_Direct3dRMAnimationSet2Object :
  20. public I_dxj_Direct3dRMAnimationSet2,
  21. //public CComCoClass<C_dxj_Direct3dRMAnimationSet2Object, &CLSID__dxj_Direct3dRMAnimationSet2>,
  22. public CComObjectRoot
  23. {
  24. public:
  25. C_dxj_Direct3dRMAnimationSet2Object() ;
  26. virtual ~C_dxj_Direct3dRMAnimationSet2Object() ;
  27. BEGIN_COM_MAP(C_dxj_Direct3dRMAnimationSet2Object)
  28. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMAnimationSet2)
  29. END_COM_MAP()
  30. // DECLARE_REGISTRY(CLSID__dxj_Direct3dRMAnimationSet2, "DIRECT.Direct3dRMAnimationSet2.3", "DIRECT.Direct3dRMAnimationSet2.3", IDS_D3DRMAnimationSet2_DESC, THREADFLAGS_BOTH)
  31. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMAnimationSet2Object)
  32. // I_dxj_Direct3dRMAnimationSet2
  33. public:
  34. // MUST BE FIRST TWO!
  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(loadFromFile)(BSTR filename, VARIANT id,long flags,
  46. I_dxj_Direct3dRMLoadTextureCallback3 *c,IUnknown *pUser, I_dxj_Direct3dRMFrame3 *frame);
  47. STDMETHOD(setTime)(d3dvalue time);
  48. STDMETHOD(addAnimation)(I_dxj_Direct3dRMAnimation2 *aid);
  49. STDMETHOD(deleteAnimation)(I_dxj_Direct3dRMAnimation2 *aid);
  50. STDMETHOD(getAnimations)(I_dxj_Direct3dRMAnimationArray **ppret);
  51. ////////////////////////////////////////////////////////////////////////////////////
  52. //
  53. private:
  54. DECL_VARIABLE(_dxj_Direct3dRMAnimationSet2);
  55. public:
  56. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMAnimationSet2 )
  57. };