* @param h New height\r
*/\r
void windowReshape(int w, int h) {\r
- /*glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
- glMatrixMode(GL_PROJECTION);\r
+ glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
+ /*glMatrixMode(GL_PROJECTION);\r
glLoadIdentity();\r
if (w <= h) \r
glOrtho(near, far, near*(GLfloat)h/(GLfloat)w,\r
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\r
glLoadIdentity();\r
gluLookAt(\r
- 0.0, 0.0, 10.0, /* eye is at (x,y,z) */\r
+ 0.0, 10.0, 10.0, /* eye is at (x,y,z) */\r
0.0, 0.0, 0.0, /* center is at (x,y,z) */\r
0.0, 1.0, 0.0 /* up is in postivie Y direction */\r
);\r