📄 sprite.h
字号:
#ifndef _SPRITE_H_
#define _SPRITE_H_
#include "../Texture.h"
class GcSprite
{
public:
// Constructor / Destructor
GcSprite();
~GcSprite();
// Load
bool Load(char *fileName, int width, int height);
// Draw
void Draw(float x, float y);
private:
GcTexture texture; // The texture for the sprite
int width; // The sprite's width
int height; // The sprites height
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -