2dframe.h
来自「一个自己写的游戏引擎,用DirectX 写成」· C头文件 代码 · 共 33 行
H
33 行
//--------------------------------------------------
// 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 + =
减小字号Ctrl + -
显示快捷键?