An OpenGL question...

Everything else that doesn't fall into one of the other PB categories.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

An OpenGL question...

Post 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...
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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...
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Well, just figured it out, forget my question.
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post 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!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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 ?
Post Reply