{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}
};
GLvoid CALLBACK none(void)
{
}
GLvoid CALLBACK draw(void)
{
int i,j;
static int r=0;
glClearColor(0.0,0.0,0.0,0.0);
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
gluLookAt(3.0,4.0,5.0,0.0,0.0,0.0,0.0,1.0,0.0);
glRotated((double)r,0.0,1.0,0.0);
glEnable(GL_DEPTH_TEST);
glEnable(GL_LIGHTING); /*tham số mới*/
glEnable(GL_LIGHT0); /*tham số mới*/
glBegin(GL_QUADS);
for(i=0;i<6;i++){
glNormal3dv(normal[i]); /*hàm mới*/