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

//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1998 - 1999
//
// File: d3denumpixelformatsobj.h
//
//--------------------------------------------------------------------------
#include "resource.h"
class C_dxj_D3DEnumPixelFormatsObject :
public I_dxj_Direct3DEnumPixelFormats7,
public CComObjectRoot
{
public:
C_dxj_D3DEnumPixelFormatsObject() ;
virtual ~C_dxj_D3DEnumPixelFormatsObject() ;
BEGIN_COM_MAP(C_dxj_D3DEnumPixelFormatsObject)
COM_INTERFACE_ENTRY(I_dxj_Direct3DEnumPixelFormats7)
END_COM_MAP()
DECLARE_AGGREGATABLE(C_dxj_D3DEnumPixelFormatsObject)
public:
HRESULT STDMETHODCALLTYPE getItem( long index, DDPixelFormat *info);
HRESULT STDMETHODCALLTYPE getCount(long *count);
static HRESULT C_dxj_D3DEnumPixelFormatsObject::create(LPDIRECT3DDEVICE3 pd3d, I_dxj_Direct3DEnumPixelFormats7 **ppRet);
static HRESULT C_dxj_D3DEnumPixelFormatsObject::create2(LPDIRECT3D3 pd3d, BSTR strGuid, I_dxj_Direct3DEnumPixelFormats7 **ppRet);
//static HRESULT C_dxj_D3DEnumPixelFormatsObject::create3(LPDIRECT3DDEVICE7 pd3d, I_dxj_D3DEnumPixelFormats **ppRet);
//static HRESULT C_dxj_D3DEnumPixelFormatsObject::create4(LPDIRECT3D7 pd3d, BSTR strGuid, I_dxj_D3DEnumPixelFormats **ppRet);
public:
DDPIXELFORMAT *m_pList;
long m_nCount;
long m_nMax;
BOOL m_bProblem;
};