istereo

diff src/istereo.c @ 26:862a3329a8f0

wohooo, added a shitload of code from zlib/libpng/libjpeg. When the good lord was raining shared libraries the iphone held a fucking umbrella...
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 08 Sep 2011 06:28:38 +0300
parents 206348366635
children fd39c0198935
line diff
     1.1 --- a/src/istereo.c	Thu Sep 08 04:23:56 2011 +0300
     1.2 +++ b/src/istereo.c	Thu Sep 08 06:28:38 2011 +0300
     1.3 @@ -18,8 +18,8 @@
     1.4  static unsigned int get_shader_program(const char *vfile, const char *pfile);
     1.5  static float get_sec(void);
     1.6  
     1.7 -unsigned int prog;
     1.8 -unsigned int tex;
     1.9 +unsigned int prog, prog_tunnel, prog_text;
    1.10 +unsigned int tex, tex_stones, tex_normal, tex_text;
    1.11  
    1.12  int view_xsz, view_ysz;
    1.13  
    1.14 @@ -46,7 +46,7 @@
    1.15  		return -1;
    1.16  	}
    1.17  
    1.18 -	if(!(tex = load_texture(find_resource("tiles.ppm", 0, 0)))) {
    1.19 +	if(!(tex = load_texture(find_resource("tiles.jpg", 0, 0)))) {
    1.20  		fprintf(stderr, "failed to load texture\n");
    1.21  		return -1;
    1.22  	}