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

📄 cube.h

📁 小型的3D游戏引擎
💻 H
字号:
#ifndef _CUBE_H_
#define _CUBE_H_

class GcCube
{
public:
	// Constructor/Destructor
	GcCube();
	~GcCube();

	// Set the size/position of the cube
	void SetSize(float size);
	void SetPosition(float posX, float posY, float posZ);

	// Move the cube
	void Move(float xMove, float yMove, float zMove, float height, bool old);
	void Move(float xAcel, float yAcel, float zAcel, float height);

	// Draw the cube
	void Draw();

	float Xpos() { return posX; }
	float Zpos() { return posZ; }
	float Ypos() { return posY; }

private:
	float size;
	float posX, posY, posZ;
	float velX, velY, velZ;
};

#endif

⌨️ 快捷键说明

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