Lines Matching refs:ImgWidth
14 static int ImgWidth, ImgHeight;
65 fmt, ImgWidth, ImgHeight, 0,
71 ImgWidth, ImgHeight / 2,
76 ImgWidth, ImgHeight / 2,
89 buffer = (GLubyte *) malloc(3 * ImgWidth * ImgHeight);
114 image = LoadRGBImage( file, &ImgWidth, &ImgHeight, &ImgFormat );
119 printf("Image is %d x %d\n", ImgWidth, ImgHeight);
122 assert(ImgWidth == 128 || ImgWidth == 256 || ImgWidth == 512);
123 assert(ImgWidth == 128 || ImgHeight == 256 || ImgHeight == 512);
132 for (i = 0; i < ImgWidth * ImgHeight; i++) {
137 image[i*4+3] = 4 * i / ImgWidth;
148 glTexImage2D(Target, 0, CompFormat, ImgWidth, ImgHeight, 0,
158 printf("Original size: %d bytes\n", ImgWidth * ImgHeight * 3);