+ int polys = 0;
+ glFrontFace(GL_CCW);
+ glBegin(GL_QUADS);
+ glNormal3f(0, 0, 1);
+ glTexCoord2f(0, 0);
+ glVertex3f(-width, -height, thickness);
+ glTexCoord2f(1, 0);
+ glVertex3f(width, -height, thickness);
+ glTexCoord2f(1, 1);
+ glVertex3f(width, height, thickness);
+ glTexCoord2f(0, 1);
+ glVertex3f(-width, height, thickness);
+ polys++;
+ glNormal3f(0, 0, -1);
+ glTexCoord2f(0, 0);
+ glVertex3f(-width, height, -thickness);
+ glTexCoord2f(1, 0);
+ glVertex3f(width, height, -thickness);
+ glTexCoord2f(1, 1);
+ glVertex3f(width, -height, -thickness);
+ glTexCoord2f(0, 1);
+ glVertex3f(-width, -height, -thickness);
+ polys++;
+ glNormal3f(0, 1, 0);
+ glTexCoord2f(0, 0);
+ glVertex3f(-width, height, thickness);
+ glTexCoord2f(1, 0);
+ glVertex3f(width, height, thickness);
+ glTexCoord2f(1, 1);
+ glVertex3f(width, height, -thickness);
+ glTexCoord2f(0, 1);
+ glVertex3f(-width, height, -thickness);
+ polys++;
+ glNormal3f(0, -1, 0);
+ glTexCoord2f(0, 0);
+ glVertex3f(-width, -height, -thickness);
+ glTexCoord2f(1, 0);
+ glVertex3f(width, -height, -thickness);
+ glTexCoord2f(1, 1);
+ glVertex3f(width, -height, thickness);
+ glTexCoord2f(0, 1);
+ glVertex3f(-width, -height, thickness);
+ polys++;
+ glNormal3f(1, 0, 0);
+ glTexCoord2f(0, 0);
+ glVertex3f(width, -height, thickness);
+ glTexCoord2f(1, 0);
+ glVertex3f(width, -height, -thickness);
+ glTexCoord2f(1, 1);
+ glVertex3f(width, height, -thickness);
+ glTexCoord2f(0, 1);
+ glVertex3f(width, height, thickness);
+ polys++;
+ glNormal3f(-1, 0, 0);
+ glTexCoord2f(0, 0);
+ glVertex3f(-width, height, thickness);
+ glTexCoord2f(1, 0);
+ glVertex3f(-width, height, -thickness);
+ glTexCoord2f(1, 1);
+ glVertex3f(-width, -height, -thickness);
+ glTexCoord2f(0, 1);
+ glVertex3f(-width, -height, thickness);
+ polys++;
+ glEnd();
+ return polys;