📄 cube.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 + -