-void windowReshape(int w, int h) {\r
- GLdouble aspect = (GLfloat) h / (GLfloat) w;\r
- GLdouble n = 10.0;\r
-\r
- glViewport(0, 0, w, h);\r
-\r
- glMatrixMode(GL_PROJECTION); /* switch matrix mode*/\r
+void windowReshape(int width, int height) {\r
+ glViewport(0, 0, (GLsizei)width, (GLsizei)height);\r
+ printf("Width: %d, height: %d\n", width, height);\r
+ glMatrixMode(GL_PROJECTION);\r