windows-nt/Source/XPSP1/NT/multimedia/directx/dxvb/dx8vb/d3denumpixelformatsobj.h

51 lines
1.4 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// 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;
};