cSurface.h
资源名称:星球抢战_src.rar [点击查看]
上传用户:taoyan1984
上传日期:2010-03-01
资源大小:30k
文件大小:1k
源码类别:
射击游戏
开发平台:
Visual C++
- // cSurface.h: interface for the cSurface class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CSURFACE_H__0C439CBB_20C0_487F_84A6_31D8F436B74A__INCLUDED_)
- #define AFX_CSURFACE_H__0C439CBB_20C0_487F_84A6_31D8F436B74A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class cSurface
- {
- public:
- LPDIRECTDRAWSURFACE7 GetSurface();
- UINT Width();
- UINT Height();
- void Destroy();
- COLORREF m_ColorKey;
- BOOL Draw(LPDIRECTDRAWSURFACE7 lpDest, int iDestX = 0, int iDestY = 0, int iSrcX = 0, int iSrcY = 0, int nWidth = 0, int nHeight = 0);
- BOOL Create(int nWidth, int nHeight, COLORREF dwColorKey = -1);
- BOOL LoadBitmap(HINSTANCE hInst, UINT nRes, int nX = 0, int nY = 0, int nWidth = 0, int nHeight = 0);
- cSurface(HINSTANCE hInst, UINT nResource, int nWidth, int nHeight, COLORREF dwColorKey = -1);
- cSurface();
- virtual ~cSurface();
- protected:
- UINT m_Height;
- UINT m_Width;
- LPDIRECTDRAWSURFACE7 m_pSurface;
- };
- #endif // !defined(AFX_CSURFACE_H__0C439CBB_20C0_487F_84A6_31D8F436B74A__INCLUDED_)