📄 t1.h
字号:
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <gl/glaux.h>
#include <stdio.h>
#pragma comment (lib,"opengl32.lib")
#pragma comment (lib,"glu32.lib")
#pragma comment (lib,"glaux.lib")
#define MAX_NUM 9
#define MAX_TYPE 10
#define HALF 0.5
struct SEGMENT
{
int x1,y1,z1;
int x2,y2,z2;
};
struct NO_Z
{
int x,y;
};
struct NO_X
{
int y,z;
};
struct _n3D
{
int x,y,z;
};
struct BLOCK
{
int nPiece;
int h;
_n3D Piece[10];
};
struct COLOR
{
GLfloat r;
GLfloat g;
GLfloat b;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -