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.

50 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: d3denumpixelformatsobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_D3DEnumPixelFormatsObject :
  12. public I_dxj_Direct3DEnumPixelFormats7,
  13. public CComObjectRoot
  14. {
  15. public:
  16. C_dxj_D3DEnumPixelFormatsObject() ;
  17. virtual ~C_dxj_D3DEnumPixelFormatsObject() ;
  18. BEGIN_COM_MAP(C_dxj_D3DEnumPixelFormatsObject)
  19. COM_INTERFACE_ENTRY(I_dxj_Direct3DEnumPixelFormats7)
  20. END_COM_MAP()
  21. DECLARE_AGGREGATABLE(C_dxj_D3DEnumPixelFormatsObject)
  22. public:
  23. HRESULT STDMETHODCALLTYPE getItem( long index, DDPixelFormat *info);
  24. HRESULT STDMETHODCALLTYPE getCount(long *count);
  25. static HRESULT C_dxj_D3DEnumPixelFormatsObject::create(LPDIRECT3DDEVICE3 pd3d, I_dxj_Direct3DEnumPixelFormats7 **ppRet);
  26. static HRESULT C_dxj_D3DEnumPixelFormatsObject::create2(LPDIRECT3D3 pd3d, BSTR strGuid, I_dxj_Direct3DEnumPixelFormats7 **ppRet);
  27. //static HRESULT C_dxj_D3DEnumPixelFormatsObject::create3(LPDIRECT3DDEVICE7 pd3d, I_dxj_D3DEnumPixelFormats **ppRet);
  28. //static HRESULT C_dxj_D3DEnumPixelFormatsObject::create4(LPDIRECT3D7 pd3d, BSTR strGuid, I_dxj_D3DEnumPixelFormats **ppRet);
  29. public:
  30. DDPIXELFORMAT *m_pList;
  31. long m_nCount;
  32. long m_nMax;
  33. BOOL m_bProblem;
  34. };