⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cimageself.h

📁 墨香最新私服
💻 H
字号:
// cImageSelf.h: interface for the cImageSelf class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CIMAGESELF_H__A2129806_587E_4BE6_8AA3_B8C595E738F6__INCLUDED_)
#define AFX_CIMAGESELF_H__A2129806_587E_4BE6_8AA3_B8C595E738F6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "interface/cWindowDef.h"
#include "../Engine/GraphicEngine.h"

class cImageSelf
{  
public:
	cImageSelf();
	virtual ~cImageSelf();

	BOOL LoadSprite(char * szFilename);
	BOOL IsNull() const { return (m_pSurface==NULL); }
	
	void Release();
	
	
	void RenderSprite( VECTOR2* pv2Scaling, VECTOR2* pv2RotCenter, float fRot,
								VECTOR2* pv2Trans, DWORD dwColor );

	void SetImageSrcRect(const cImageRect * rt);

	cImageRect* GetImageRect()	{	return &m_srcImageRect;	}

	BOOL GetImageOriginalSize(VECTOR2* pOutSize);

protected:
	IDISpriteObject	*		m_pSurface;
	
	cImageRect m_srcImageRect;
	cImageSize m_srcImageSize;

};

#endif // !defined(AFX_CIMAGESELF_H__A2129806_587E_4BE6_8AA3_B8C595E738F6__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -