{0.0,0.0,0.0},
{1.0,0.0,0.0},
{1.0,1.0,0.0},
{0.0,1.0,0.0},
{0.0,0.0,1.0},
{1.0,0.0,1.0},
{1.0,1.0,1.0},
{0.0,1.0,1.0}
};
int face[][4]={
{0,1,2,3},
{1,5,6,2},
{5,4,7,6},
{4,0,3,7},
{4,5,1,0},
{3,2,6,7}
};
GLdouble normal[][3]={
{0.0,0.0,-1.0},
{1.0,0.0,0.0},
{0.0,0.0,1.0},
{-1.0,0.0,0.0},
{0.0,-1.0,0.0},
{0.0,1.0,0.0}
};
void cube()
{
int i,j;
glBegin(GL_QUADS);
for(i=0;i<6;i++){
glNormal3dv(normal[i]);
for(j=0;j<4;j++){