shafa_hn
08-25-2002, 11:58 PM
Hi
I want to use glReadPixel to catch pixels color and map them on the plane. In other words I want to make a plane like a monitor that be able to show framebuffer realtime. But when I use it the returned data is nil.
I use Delphi for programming.
var Data:Pointer;
glDrawBuffer(GL_BACK);
....drawing
glFlush;
glreadPixel(0,0,100,100,GL_RGBA,GL_BITMAP,Data)
Data is Nil after this command. Why?
I try some of other Option. But either make an exception error or Data=Nil.
please help me.
thanks a lot
I want to use glReadPixel to catch pixels color and map them on the plane. In other words I want to make a plane like a monitor that be able to show framebuffer realtime. But when I use it the returned data is nil.
I use Delphi for programming.
var Data:Pointer;
glDrawBuffer(GL_BACK);
....drawing
glFlush;
glreadPixel(0,0,100,100,GL_RGBA,GL_BITMAP,Data)
Data is Nil after this command. Why?
I try some of other Option. But either make an exception error or Data=Nil.
please help me.
thanks a lot