-
Junior Member
Regular Contributor
offscreen buffers?
hi
i want to grab the framebuffer from my openGL application and save it to a bitmap file. to get the framebuffer contents i use glReadPixels(). the only problem is that whenever there is a window partially obscuring my openGL window, nothing is drawn in the obscured area so my bitmap file looks rather incomplete.
so, is it possible to tell openGL to render to the whole window no matter how much of it is visible? or can i render to an offscreen buffer and grab that instead?
oh yes, i'm using windows XP
thanks
hoshi55
-
Super Moderator
OpenGL Guru
Re: offscreen buffers?
You must render to an offscreen buffer to guarantee this.
-
Senior Member
OpenGL Guru
Re: offscreen buffers?
More precisely a P-buffer, because back buffers are offscreen, too, but pixel ownership testing affects all buffers (including depth and stencil) associated to a rendering context.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules