Page 1 of 1

An OpenGL question...

Posted: Sat May 21, 2005 1:39 pm
by Polo
... On a Purebasic forum, I know ;)
I need to find a way to get the image drawn in the opengl viewport and to put it into a Purebasic image.
I thought at a start I could use glReadPixels, but I just don't understand how does it work...

Posted: Sat May 21, 2005 6:09 pm
by Polo
Nobody ?
I found a way to put what is rendered on the viewport to a gltexture, but it's not what i want, i want the pixel datas...

Posted: Sat May 21, 2005 7:49 pm
by Polo
Well, just figured it out, forget my question.

Posted: Sun May 22, 2005 12:06 am
by Pupil
Polo wrote:Well, just figured it out, forget my question.
Why not share your findings, either here or in the 'tricks n' tips' section!

Posted: Sat Jun 04, 2005 6:41 pm
by Polo
No, I mean, i figured out my error, in fact there's nothing special about glreadpixels...
However, this function is sloooowwwwwwwww !!
Is there another way to do that fast ?