Commit 6b35ed3e by Alisa Jung

orthographic camera for front, left and top view; kept perspective camera for perspective view

parent 5aeebcb0
...@@ -284,7 +284,11 @@ void MyGLWidget::resizeGL(int width, int height){ ...@@ -284,7 +284,11 @@ void MyGLWidget::resizeGL(int width, int height){
glMatrixMode(GL_PROJECTION);//from HelloGL example glMatrixMode(GL_PROJECTION);//from HelloGL example
glLoadIdentity(); glLoadIdentity();
if (isPerspective){
gluPerspective(45.0,p,0.1,1000);//set vof to 45° gluPerspective(45.0,p,0.1,1000);//set vof to 45°
} else{
glOrtho(-2*p,2*p,-2,2,1,1000);
}
glMatrixMode(GL_MODELVIEW); glMatrixMode(GL_MODELVIEW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment