When glReadPixels can be used?
===

I want to know the use of glreadpixels function./
How it is reading the pixels?
is it reading glkview pixels or uiview pixels or anything on the mainscreen which is in bounds provided in the glreadFunction.
Or it can only be used if we are using glkview??

Please clarify my doubt.