   nothing draw by glArrayElement()?
  Hi all, I use vertex array to draw ploygons, here is the code:static GLfloat colors[] = {1.0,0.2,0.2, 0.2,0.2,1.0, 1.0,0.0,0.0, 0.75,0.75,0.75, 0.35,0.35,0.35, 0.5,0.5,0.5};static GLubyte allIndices[] = {4, 5, 6, 7, 1, 2, 6, 5, 0, 1, 5, 4, 0, 3, 2, 1, 0, 4, 7, 3, 2, 3, 7, 6};void display(void) {glClear(GL_COLOR_BUFFER_BIT);glColor3f(1.0f,1.0f,1.0f);glEnableClientState(GL_VERTEX_ARRAY);glEnableClientState(GL_COLOR_ARRAY);glColorPointer(3, GL_FLOAT, 0, colors);glVertexPointer(2, GL_INT, 0, vertices);glBegin(GL_TRIANGLES);glArrayElement(2);glArrayElement(3);glArrayElement(5);   glEnd();   glFlush();}This is the example from OpenGl.org redbook.Can anyone tell me why there is nothing draw on the screen? Thanks.   
  Well, first of all, do you have your modelview and projection matrices set up correctly?  Second, is depth test, stencil test enabled?  Are you flipping your buffers? (thats a common mistake i make when i'm writing little test programs and i'm goin real fast over code (code that i should have incorporated into a framework long ago) )hopefully that will help-Dan   