Lines Matching refs:ImgHeight
20 static int ImgWidth, ImgHeight;
102 glRasterPos2i(5, ImgHeight+25);
105 glRasterPos2i(5, ImgHeight+40);
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++) {
271 ImgWidth * ImgHeight * 4, Image, GL_STATIC_DRAW);
277 ImgWidth * ImgHeight * 4, NULL, GL_DYNAMIC_COPY);