DDDIBSurface.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1998-1999 DXGuide. All Rights Reserved.
- // File: DDDIBSurface.h
- #ifndef _DDDIBSURFACE__H
- #define _DDDIBSURFACE__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "DDSurface.h"
- #include "DIB.h"
- class CPackFileManager;
- class CDDDIBSurface : public CDDSurface
- {
- friend class CDDCursor; // m_pDIB
- public:
- CDDDIBSurface(void);
- virtual ~CDDDIBSurface();
- public:
- bool Create(CDDDevice* pDDDevice, LPCTSTR lpszFileName,
- CPackFileManager* pPackFileManager = NULL,
- CDIB::DIBFileType fileType = CDIB::FT_BITMAP,
- CDDSurface::SURFACEMEM_TYPE surfaceMemType = CDDSurface::SURFACEMEM_AUTO);
- public:
- virtual CString GetFileName(void) const;
- virtual HRESULT Restore(void);
- private:
- // Copy the bitmap into the surface.
- void CopyBitmap(void);
- protected:
- CDIB* m_pDIB;
- CString m_strFileName;
- };
- #endif // _DDDIBSURFACE__H