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.

67 lines
2.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: d3drmviewportarrayobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmViewportArrayObj.h : Declaration of the C_dxj_Direct3dRMViewportArrayObject
  11. #include "resource.h" // main symbols
  12. #include "d3drmObjectObj.h"
  13. #define typedef__dxj_Direct3dRMViewportArray LPDIRECT3DRMVIEWPORTARRAY
  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_Direct3dRMViewportArrayObject :
  19. //public CComDualImpl<I_dxj_Direct3dRMViewportArray, &IID_I_dxj_Direct3dRMViewportArray, &LIBID_DIRECTLib>,
  20. //public ISupportErrorInfo,
  21. public I_dxj_Direct3dRMViewportArray,
  22. //public CComCoClass<C_dxj_Direct3dRMViewportArrayObject, &CLSID__dxj_Direct3dRMViewportArray>,
  23. public CComObjectRoot
  24. {
  25. public:
  26. C_dxj_Direct3dRMViewportArrayObject() ;
  27. virtual ~C_dxj_Direct3dRMViewportArrayObject() ;
  28. BEGIN_COM_MAP(C_dxj_Direct3dRMViewportArrayObject)
  29. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMViewportArray)
  30. // COM_INTERFACE_ENTRY(IDispatch)
  31. // COM_INTERFACE_ENTRY(ISupportErrorInfo)
  32. END_COM_MAP()
  33. //DECLARE_REGISTRY(CLSID__dxj_Direct3dRMViewportArray, "DIRECT.Direct3dRMViewportArray.3", "DIRECT.Direct3dRMViewportArray.3",IDS_D3DRMVIEWPORTARRAY_DESC,THREADFLAGS_BOTH)
  34. // Use DECLARE_NOT_AGGREGATABLE(C_dxj_Direct3dRMViewportArrayObject) if you don't want your object
  35. // to support aggregation
  36. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMViewportArrayObject)
  37. //STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  38. // I_dxj_Direct3dRMViewportArray
  39. public:
  40. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  41. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  42. STDMETHOD(getSize)( long *retval);
  43. #ifdef DX5
  44. STDMETHOD(getElement)(long index, I_dxj_Direct3dRMViewport **retval);
  45. #else
  46. STDMETHOD(getElement)(long index, I_dxj_Direct3dRMViewport2 **retval);
  47. #endif
  48. private:
  49. DECL_VARIABLE(_dxj_Direct3dRMViewportArray);
  50. public:
  51. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMViewportArray )
  52. };