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

📄 2dframe.h

📁 一个自己写的游戏引擎,用DirectX 写成
💻 H
字号:
//--------------------------------------------------
//  Desc: 2D Frame
//  Date: 2007.3.27 /update
//  Author: artsylee
//
//  Copyright (C) 2007 artsylee
//
//--------------------------------------------------

#ifndef _2DFRAME_
#define _2DFRAME_

#include <Windows.h>

class ASE_DLL C2DFrame
{
public:
	C2DFrame();
	~C2DFrame();
	bool Load(const char *pFileName);
	void Render(void) const;
	void SetPosition(const int &x, const int &y);
	void SetScale(const float &fx, const float &fy);

private:
	DWORD	m_hTex;
	int		m_XPos;
	int		m_YPos;
	float	m_fXScale;
	float	m_fYScale;
};

#endif // _2DFRAME_

⌨️ 快捷键说明

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