X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=main.c;h=dc9ca52778d2f62745ae47f4c43e3b028ad698ee;hb=a76e52b12bf54efdeb95b7f6d8ecfdcec0ab81ae;hp=a0233077b478fca0c3d20a177d3e2b3573dc4262;hpb=673c03f31ddd2b6ed646ec6fc0c225833201bd65;p=test_compression diff --git a/main.c b/main.c index a023307..dc9ca52 100644 --- a/main.c +++ b/main.c @@ -20,22 +20,45 @@ int texcomp(unsigned char *compix, unsigned int tofmt, unsigned char *pixels, void disp(void); void reshape(int x, int y); void keyb(unsigned char key, int x, int y); +void idle(); void gen_image(unsigned char *pixels, int xsz, int ysz); unsigned char *load_compressed_image(const char *fname, int *cszptr, int *xszptr, int *yszptr); int dump_compressed_image(const char *fname, unsigned char *data, int size, int w, int h); void print_compressed_formats(void); -unsigned int tex, comp_tex; +unsigned int tex, tex2, comp_tex; const char *texfile; +int subtest, copytest, loop; int main(int argc, char **argv) { + int i; unsigned int glut_flags = GLUT_RGB | GLUT_DOUBLE; #ifdef USE_SRGB glut_flags |= GLUT_SRGB; #endif - texfile = argv[1]; + for(i=1; i