Lines Matching refs:imgWidth
75 int imgWidth, imgHeight, minDim, w;
84 image = LoadRGBImage( IMAGE_FILE, &imgWidth, &imgHeight, &imgFormat );
92 imgWidth = 3;
94 image = malloc(imgWidth * imgHeight * 3);
96 for (j = 0; j < imgWidth; j++) {
97 int k = (i * imgWidth + j) * 3;
112 printf("Read %d x %d\n", imgWidth, imgHeight);
114 minDim = imgWidth < imgHeight ? imgWidth : imgHeight;
121 glTexImage1D(GL_PROXY_TEXTURE_1D, 0, GL_RGB, imgWidth, 0,
124 assert(w == imgWidth || w == 0);
127 glTexImage1D(GL_TEXTURE_1D, 0, GL_RGB, imgWidth, 0,
136 glTexImage2D(GL_PROXY_TEXTURE_2D, 0, GL_RGB, imgWidth, imgHeight, 0,
139 assert(w == imgWidth || w == 0);
142 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, imgWidth, imgHeight, 0,
151 glTexImage3D(GL_PROXY_TEXTURE_3D, 0, GL_RGB, imgWidth, imgHeight, 1, 0,
154 assert(w == imgWidth || w == 0);
157 glTexImage3D(GL_TEXTURE_3D, 0, GL_RGB, imgWidth, imgHeight, 1, 0,