代码如下,问题在顶楼:
/*
* draw a flying plane base on GLTest and GLCombineTest Project
*/
#include
#include
#include
#include
#define PI 3.14159265853
#define PL 4.0f
#define PW 2.0f
#define PH 2.0f
#define FAN_R 4.0f
#define DrawLine(x1, y1, z1, x2, y2, z2) \
glBegin(GL_LINES); \
glVertex3f(x1, y1, z1); \
glVertex3f(x2, y2, z2); \
glEnd();
#define DrawBox() \
glBegin(GL_LINE_LOOP); \
glVertex3f(-1.0f, -1.0f, 1.0f); \
glVertex3f( 1.0f, -1.0f, 1.0f); \
glVertex3f( 1.0f, 1.0f, 1.