|  | 
| Reading Pixel Data to
Memory (cont) 
The size of the data must also be specified
 void glReadPixels(GLint x, GLint y, GLsizei width,
 GLsizei  height, GLenum
format, GLenum type,
 GLvoid *pixels);
   
 
 Notes:
Depending on the format between 1 and 4 elements are read
or written (GL_RGBA + GL_INT = 16 bytes/pixel)
Color index values may by stored in GL_FLOAT
Integer values stored as floats are scaled.
There is no effective gain in precision
Signed data values have 1-less bit of storage (upper bit
is masked) 
 
 
 |  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   |