DDPixelFormatObject.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1998-1999 DXGuide. All Rights Reserved.
- // File: DDPixelFormatObject.h
- #ifndef _DDPIXELFORMATOBJECT__H
- #define _DDPIXELFORMATOBJECT__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include <ddraw.h> // for DDPIXELFORMAT
- class CDDPixelFormatObject : public CObject
- {
- friend class CD3DDeviceInfoObject;
- DECLARE_SERIAL(CDDPixelFormatObject);
- protected:
- CDDPixelFormatObject(void);
- virtual ~CDDPixelFormatObject();
- protected:
- void SetPixelFormat(const DDPIXELFORMAT* pDDPF);
- public:
- DDPIXELFORMAT const* GetPixelFormat(void) const;
- bool IsMatch(DWORD dwBPP);
- bool IsMatch(DWORD dwFlags, DWORD dwBitDepth);
- bool IsMatch(const DDPIXELFORMAT& ddpf);
- protected:
- DDPIXELFORMAT* m_pDDPixelFormat;
- };
- #include "DDPixelFormatObject.inl"
- #endif // _DDPIXELFORMATOBJECT__H