ssaunders
04-08-2001, 11:00 PM
I am trying to save an image to file and am using:
glReadPixels(x, y, width, height, GL_BGR, GL_UNSIGNED_BYTE, image);
to capture the screen in to a temporary buffer, but when i compile the program i get an error saying that GL_BGR is an undeclared identifier. I am including gl.h, glu.h and glut.h and linking their corresponding libraries. Could someone please help.
Thanks
Steve
glReadPixels(x, y, width, height, GL_BGR, GL_UNSIGNED_BYTE, image);
to capture the screen in to a temporary buffer, but when i compile the program i get an error saying that GL_BGR is an undeclared identifier. I am including gl.h, glu.h and glut.h and linking their corresponding libraries. Could someone please help.
Thanks
Steve