void redisplay(){
for (GLfloat redisp = 0; redisp <= 7; redisp ++)
{
for (GLfloat redisp2 = 0; redisp2 <= 14; redisp ++)
{
switch (arr_tetris_screen [redisp] [redisp2])
{
case box:
{
glBegin(GL_QUADS);
glColor3f(1.0, 0.0, 0.0);
glVertex3f(redisp+1, redisp2+1, 0.0); glVertex3f(redisp, redisp2+1, 0.0);
glVertex3f(redisp, redisp2+1, 0.0); glVertex3f(redisp, redisp2, 0.0);
}
default: exit(1234);
}
}
}
glutPostRedisplay();
}
This gives me two errors:
"jam exited with exit code 1"
"invalid types 'GLfloat[7][14][GLfloat]' for array subscript"
I know this has OpenGL code in it, but this isn't GL-specific, so I felt that these lists are more appropriate for this question.