89 glDisable(GL_LIGHTING);
93 case 0: glColor4f(1.0f, 0.0f, 0.0f, 1.0f);
break;
94 case 1: glColor4f(0.0f, 1.0f, 0.0f, 1.0f);
break;
95 default: glColor4f(0.0f, 0.0f, 1.0f, 1.0f);
break;
98 glRotated(90.0, 0.0, 1.0, 0.0);
100 GLUquadric* quadric = gluNewQuadric();
112 glColor4f(0.0f, 1.0f, 1.0f, 1.0f);
113 glVertex3f( xLength, yLength,-zLength);
114 glVertex3f(-xLength, yLength,-zLength);
115 glVertex3f(-xLength, yLength, zLength);
116 glVertex3f( xLength, yLength, zLength);
118 glColor4f(1.0f, 1.0f, 0.0f, 1.0f);
119 glVertex3f( xLength,-yLength, zLength);
120 glVertex3f(-xLength,-yLength, zLength);
121 glVertex3f(-xLength,-yLength,-zLength);
122 glVertex3f( xLength,-yLength,-zLength);
125 glColor4f(0.0f, 1.0f, 0.0f, 1.0f);
126 glVertex3f(xLength, yLength, zLength);
127 glVertex3f(-xLength, yLength, zLength);
128 glVertex3f(-xLength,-yLength, zLength);
129 glVertex3f( xLength,-yLength, zLength);
131 glColor4f(0.0f, 0.0f, 1.0f, 1.0f);
132 glVertex3f( xLength,-yLength,-zLength);
133 glVertex3f(-xLength,-yLength,-zLength);
134 glVertex3f(-xLength, yLength,-zLength);
135 glVertex3f( xLength, yLength,-zLength);
137 glColor4f(1.0f, 0.0f, 0.0f, 1.0f);
138 glVertex3f(-xLength, yLength, zLength);
139 glVertex3f(-xLength, yLength,-zLength);
140 glVertex3f(-xLength,-yLength,-zLength);
141 glVertex3f(-xLength,-yLength, zLength);
143 glVertex3f( xLength, yLength,-zLength);
144 glVertex3f( xLength, yLength, zLength);
145 glVertex3f( xLength,-yLength, zLength);
146 glVertex3f( xLength,-yLength,-zLength);
152 glDisable(GL_LIGHTING);
153 gluDeleteQuadric ( quadric );