huangzl99
06-16-2002, 08:07 AM
when I use the following code:
GLfloat* buffer=NULL;
buffer= new GLfloat[width*height*3];
glReadPixels(0, 0, width, height, GL_RGB, GL_FLOAT, buffer );
I found buffer[0], buffer[1], buffer[2] gives mass value.(4.01e008 something).
what's wrong with it? I used MFC windows for openGL display.
Jerry
GLfloat* buffer=NULL;
buffer= new GLfloat[width*height*3];
glReadPixels(0, 0, width, height, GL_RGB, GL_FLOAT, buffer );
I found buffer[0], buffer[1], buffer[2] gives mass value.(4.01e008 something).
what's wrong with it? I used MFC windows for openGL display.
Jerry