istereo

diff src/istereo.c @ 35:23e5d274b2a2

added options panel, also added the xib files to the repository as they're needed
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Sep 2011 10:03:42 +0300
parents 634c7f7c1f0f
children 834503dcb486
line diff
     1.1 --- a/src/istereo.c	Fri Sep 09 00:31:54 2011 +0300
     1.2 +++ b/src/istereo.c	Fri Sep 09 10:03:42 2011 +0300
     1.3 @@ -26,11 +26,7 @@
     1.4  
     1.5  int view_xsz, view_ysz;
     1.6  
     1.7 -#ifdef IPHONE
     1.8 -int stereo = 1;
     1.9 -#else
    1.10  int stereo = 0;
    1.11 -#endif
    1.12  int use_bump = 0;
    1.13  
    1.14  /* construction parameters */
    1.15 @@ -139,6 +135,14 @@
    1.16  
    1.17  		render(tsec);
    1.18  	} else {
    1.19 +		glViewport(0, 0, view_xsz, view_ysz);
    1.20 +		cam_aspect((float)view_ysz / (float)view_xsz);
    1.21 +
    1.22 +		gl_matrix_mode(GL_PROJECTION);
    1.23 +		gl_load_identity();
    1.24 +		cam_proj_matrix();
    1.25 +		gl_rotatef(-90, 0, 0, 1);
    1.26 +		
    1.27  		gl_matrix_mode(GL_MODELVIEW);
    1.28  		gl_load_identity();
    1.29  		cam_view_matrix();