Desktop2DX.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Desktop2DX.h : main header file for the DESKTOP2DX application.
- #ifndef _DXGUIDE_DESKTOP2DX__H
- #define _DXGUIDE_DESKTOP2DX__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
- #include "resource.h"
- class CDesktop2DXApp : public CDirectXApp
- {
- public:
- CDesktop2DXApp(void);
- virtual ~CDesktop2DXApp();
- public:
- CDDDevice* m_pDDDevice;
- CDDSurface* m_pRenderSurface;
- // add your data here !
- CDDSurface* m_apSurface[4];
- CDC m_dc;
- CBitmap m_bmp;
- CBitmap* m_pOldBMP;
- RECT m_arcDest[4];
- public:
- // add your function here !
- public:
- virtual bool GetDXInitSettings(void);
- virtual bool InitDXObjects(void);
- virtual bool DestroyDXObjects(void);
- virtual bool UpdateFrame(void);
- public:
- // ----
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDesktop2DXApp)
- //}}AFX_VIRTUAL
- // Implementation
- //{{AFX_MSG(CDesktop2DXApp)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #endif // _DXGUIDE_DESKTOP2DX__H