istereo
diff src/istereo.c @ 24:70309d71c899
added the texture translation
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Thu, 08 Sep 2011 03:06:46 +0300 |
parents | e3742aafc85b |
children | 206348366635 |
line diff
1.1 --- a/src/istereo.c Thu Sep 08 02:57:29 2011 +0300 1.2 +++ b/src/istereo.c Thu Sep 08 03:06:46 2011 +0300 1.3 @@ -23,7 +23,11 @@ 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 1.13 /* construction parameters */ 1.14 int sides = 24; 1.15 @@ -164,10 +168,9 @@ 1.16 1.17 bind_texture(tex, 0); 1.18 1.19 - /*glMatrixMode(GL_TEXTURE); 1.20 - glLoadIdentity(); 1.21 - //glTranslatef(0, -t * 1.5, 0); 1.22 - glTranslatef(0, -t * 0.5, 0);*/ 1.23 + gl_matrix_mode(GL_TEXTURE); 1.24 + gl_load_identity(); 1.25 + gl_translatef(0, -t * 0.75, 0); 1.26 1.27 gl_begin(GL_QUADS); 1.28 gl_color3f(1.0, 1.0, 1.0);