istereo

changeset 37:e60f9d8af28d

fixed the orientation of the tunnel when in non-stereo mode
author John Tsiombikas <nuclear@mutantstargoat.com>
date Fri, 09 Sep 2011 23:37:38 +0300
parents 834503dcb486
children 8b01d005cc25
files src/glutmain.c src/istereo.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/src/glutmain.c	Fri Sep 09 10:25:03 2011 +0300
     1.2 +++ b/src/glutmain.c	Fri Sep 09 23:37:38 2011 +0300
     1.3 @@ -12,7 +12,7 @@
     1.4  int main(int argc, char **argv)
     1.5  {
     1.6  	glutInit(&argc, argv);
     1.7 -	glutInitWindowSize(960, 640);
     1.8 +	glutInitWindowSize(320, 480);
     1.9  	glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
    1.10  	glutCreateWindow("test");
    1.11  
     2.1 --- a/src/istereo.c	Fri Sep 09 10:25:03 2011 +0300
     2.2 +++ b/src/istereo.c	Fri Sep 09 23:37:38 2011 +0300
     2.3 @@ -114,7 +114,6 @@
     2.4  		gl_load_identity();
     2.5  		cam_stereo_view_matrix(CAM_RIGHT);
     2.6  		gl_translatef(-pan_x, -pan_y, -1.1 * ring_height * segm);
     2.7 -		/*gl_rotatef(-90, 0, 0, 1);*/
     2.8  
     2.9  		render(tsec);
    2.10  
    2.11 @@ -131,7 +130,6 @@
    2.12  		gl_load_identity();
    2.13  		cam_stereo_view_matrix(CAM_LEFT);
    2.14  		gl_translatef(-pan_x, -pan_y, -1.1 * ring_height * segm);
    2.15 -		/*gl_rotatef(-90, 0, 0, 1);*/
    2.16  
    2.17  		render(tsec);
    2.18  	} else {
    2.19 @@ -140,6 +138,7 @@
    2.20  
    2.21  		gl_matrix_mode(GL_PROJECTION);
    2.22  		gl_load_identity();
    2.23 +		gl_rotatef(-90, 0, 0, 1);
    2.24  		cam_proj_matrix();
    2.25  
    2.26  		gl_matrix_mode(GL_MODELVIEW);