Lines Matching refs:ImgWidth
20 static int ImgWidth, ImgHeight;
54 BPosX = APosX + ImgWidth + 5; BPosY = 20;
55 CPosX = BPosX + ImgWidth + 5; CPosY = 20;
116 glDrawPixels(ImgWidth, ImgHeight, ImgFormat, GL_UNSIGNED_BYTE, 0);
135 glReadPixels(APosX, APosY, ImgWidth, ImgHeight,
141 pixelsPerSecond = reads * ImgWidth * ImgHeight / seconds;
147 glReadPixels(APosX, APosY, ImgWidth, ImgHeight,
159 glDrawPixels(ImgWidth, ImgHeight, ReadFormat, ReadType, 0);
170 glCopyPixels(APosX, APosY, ImgWidth, ImgHeight, GL_COLOR);
236 Image = LoadRGBImage( IMAGE_FILE, &ImgWidth, &ImgHeight, &ImgFormat );
242 printf("Loaded %d by %d image\n", ImgWidth, ImgHeight );
247 GLubyte *image2 = (GLubyte *) malloc(ImgWidth * ImgHeight * 4);
249 for (i = 0; i < ImgWidth * ImgHeight; i++) {
261 glPixelStorei(GL_UNPACK_ROW_LENGTH, ImgWidth);
263 glPixelStorei(GL_PACK_ROW_LENGTH, ImgWidth);
271 ImgWidth * ImgHeight * 4, Image, GL_STATIC_DRAW);
277 ImgWidth * ImgHeight * 4, NULL, GL_DYNAMIC_COPY);