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

📄 t1.h

📁 立体俄罗斯方块。
💻 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 + -