t1.h
来自「立体俄罗斯方块。」· C头文件 代码 · 共 46 行
H
46 行
#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 + =
减小字号Ctrl + -
显示快捷键?