xbedden
01-09-2004, 10:34 AM
hi ,
first :
if i wrote
GLfloat array[3];
glReadPixels(30,30,1,1,GL_RGB,GL_FLOAT, array);
does this mean that array contains the color information of x=30 and y =30 ??
second :
i colored the pixel at glVertex2i(30,30)
with black color , but when i used glReadPixels to read the color of this point
it does not return the black values of RGB.
anyways : is there a difference between the screen (30,30) and framebuffer (30,30) if so please supply me with some info ..
Best Regards ..
xbedden
first :
if i wrote
GLfloat array[3];
glReadPixels(30,30,1,1,GL_RGB,GL_FLOAT, array);
does this mean that array contains the color information of x=30 and y =30 ??
second :
i colored the pixel at glVertex2i(30,30)
with black color , but when i used glReadPixels to read the color of this point
it does not return the black values of RGB.
anyways : is there a difference between the screen (30,30) and framebuffer (30,30) if so please supply me with some info ..
Best Regards ..
xbedden