LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: elias4444 on January 08, 2005, 15:33:34

Title: What exactly are PBuffers?
Post by: elias4444 on January 08, 2005, 15:33:34
I know there's been a TON of talk about pbuffers lately, but I can't even figure out what they are, or find a definition for them somewhere. Could someone please explain it to me? As well as what they're advantage is?

Thanks.
Title: What exactly are PBuffers?
Post by: napier on January 10, 2005, 04:11:21
pbuffer stands for pixel buffer.  Think of it as a virtual screen that you can render into without affecting the Display.  It has similar settings like bits per pixel and depth buffer.  Once you create a pbuffer you can switch between the Display or the pbuffer for rendering.  

You can generate dynamic textures in a pbuffer, or use them to layer and composite several renderings.

I'm using a pbuffer to render in high resolution to produce images for print.  Pbuffers can be larger than the hardware display resoutions.