Something
public text v1 · immutablevoid display()
{
glColor3f(0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT);
static GLint vertices[] = {175, 175,
175, 150,
250, 150,
250, 175};
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(2, GL_INT, 0, vertices);
/*glBegin(GL_QUADS); //this works fine
glArrayElement(0); //but with this commented, no quad
glArrayElement(1); //pops up...
glArrayElement(2);
glArrayElement(3);
glEnd();*/
glDrawElements(GL_QUADS, 4, GL_UNSIGNED_INT, vertices);
glFlush();
}