- glBegin(GL_TRIANGLES);
-
- glVertex3f(x, y, surface->at(x, y).getHeight());
- glVertex3f(x+1, y, surface->at(x+1, y).getHeight());
- glVertex3f(x+1, y+1, surface->at(x+1, y+1).getHeight());
-
- glVertex3f(x, y, surface->at(x, y).getHeight());
- glVertex3f(x, y+1, surface->at(x, y+1).getHeight());
- glVertex3f(x+1, y+1, surface->at(x+1, y+1).getHeight());
-
- glEnd();
+ glMatrixMode(GL_PROJECTION);
+ glLoadIdentity();
+ gluPerspective(50, (GLfloat)300 / (GLfloat)300, 0, 1000);
+ gluLookAt(0,-10,10, 0,0,0, 0,1,0);