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

📄 sprite.h

📁 小型的3D游戏引擎
💻 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 + -