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.

63 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: d3drmfacearrayobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // d3drmFaceArrayObj.h : Declaration of the C_dxj_Direct3dRMFaceArrayObject
  11. #include "resource.h" // main symbols
  12. #define typedef__dxj_Direct3dRMFaceArray LPDIRECT3DRMFACEARRAY
  13. /////////////////////////////////////////////////////////////////////////////
  14. // Direct
  15. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  16. //references as template arguments.
  17. class C_dxj_Direct3dRMFaceArrayObject :
  18. public I_dxj_Direct3dRMFaceArray,
  19. //public CComCoClass<C_dxj_Direct3dRMFaceArrayObject, &CLSID__dxj_Direct3dRMFaceArray>,
  20. public CComObjectRoot
  21. {
  22. public:
  23. C_dxj_Direct3dRMFaceArrayObject();
  24. virtual ~C_dxj_Direct3dRMFaceArrayObject();
  25. BEGIN_COM_MAP(C_dxj_Direct3dRMFaceArrayObject)
  26. COM_INTERFACE_ENTRY(I_dxj_Direct3dRMFaceArray)
  27. END_COM_MAP()
  28. //DECLARE_REGISTRY(CLSID__dxj_Direct3dRMFaceArray, "DIRECT.Direct3dRMFaceArray.3", "DIRECT.Direct3dRMFaceArray.3", IDS_D3DRMFACEARRAY_DESC, THREADFLAGS_BOTH)
  29. // Use DECLARE_NOT_AGGREGATABLE(C_dxj_Direct3dRMFaceArrayObject) if you don't want your object
  30. // to support aggregation
  31. DECLARE_AGGREGATABLE(C_dxj_Direct3dRMFaceArrayObject)
  32. // I_dxj_Direct3dRMFaceArray
  33. public:
  34. STDMETHOD(InternalSetObject)(IUnknown *lpdd);
  35. STDMETHOD(InternalGetObject)(IUnknown **lpdd);
  36. STDMETHOD(getSize)( long *retval);
  37. #ifdef DX5
  38. STDMETHOD(getElement)(long index, I_dxj_Direct3dRMFace **retval);
  39. #else
  40. STDMETHOD(getElement)(long index, I_dxj_Direct3dRMFace2 **retval);
  41. #endif
  42. private:
  43. DECL_VARIABLE(_dxj_Direct3dRMFaceArray);
  44. public:
  45. DX3J_GLOBAL_LINKS( _dxj_Direct3dRMFaceArray )
  46. };