Ehsan Kamrani
05-20-2005, 12:54 AM
Does the values of the function glRasterPos2*() affect the function glReadPixels?
As an example if we use from the following code:
glRasterPos2i( xi, yi );
glReadPixels(x,y,...);
Is it correct that the bottom-left of the rectangle that we want to read is (xi+x, yi+y)?
What does happen if the width and height values of the function glReadPixels() are greater than the with and height of the screen?--Does the OpenGL clamp them?Or do we see any logical error?
-Ehsan-
As an example if we use from the following code:
glRasterPos2i( xi, yi );
glReadPixels(x,y,...);
Is it correct that the bottom-left of the rectangle that we want to read is (xi+x, yi+y)?
What does happen if the width and height values of the function glReadPixels() are greater than the with and height of the screen?--Does the OpenGL clamp them?Or do we see any logical error?
-Ehsan-