Hi,
I’m try draw some stuff using glInterleavedArrays + glDrawElements.
This is a a simplified version of the problem I’m experiencing:
void renderScene(void) {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
gluLookAt(0.0,0.0,0.0, 0.0,0.0,-1.0, 0.0,1.0,0.0);
glTranslatef(0.0,0.0,-10.0);
static Vertex vertices[] = { 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0};
glInterleavedArrays(GL_V3F,0,vertices);
static GLint indices[] = {0, 1, 2, 3};
glDrawElements(GL_QUAD_STRIP,4,GL_UNSIGNED_INT,indices);
glutSwapBuffers();
glFlush();
}
I try to comment the istructions
gluLookAt(…);
I cannot see anything
Do you know why?