Rotating Problem

I have a simple object of solid cube.Once I rotated it in any angle,then some face disappear.

I created my solid cube by this way,

//Left face
glBengin(GL_QUADS);
glVertex3d(x1,y1,z1);

glVertex3d(x4,y4,z4);
glEnd();

and similar code on other face

What the remedy I should to do?
Please note that , I don’t want to use the glut and gluax library

PS: Sorry! I have arleady posted this topic in the Beginner section.

hi
I Think you are not specifying your quad vertices in the correct order.By default the polygon vertices must be specifed in the CCW direction with respect to the front face of your polygon(in your case its a QUAD) . May be you are specifying them the wrong way. Let me know if you got my answer correctly.
Hope u the best.
Bye

Ok, I can do it the right way, I placed glFrontFace(GL_CCW) into my drawing routine. Thanks so much for your reccomend.

amstel,

hi
I did not understand what u said. I wanna know your problem is sloved or not ?

Hi, Immy

My problem have already revised.

regard,
Amstel