Novice advice on pbuffer

Hi

I need to create an app that will not use window at all
just a pbuffer. To create a pbuffer I need to create a canvas first. Do I have to create listener for canvas (I will never need a frame or canvas)?

Do I have to have 2 (classes) objects or I can have only one.

Do I need to call canvas.display() and inside display call
pbuffer.display(), or I can just call pbuffer.display() and do all the rendering inside
display() {


}

Thanks a lot

Ross

You will have to add the GLCanvas to a frame in order to get it to initialize I believe. Making a canvas with a size of 0 by 0 work well. You will need to call display on the canvas once because pbuffers are lazily created. Onec your pbuffer is created you can just use the pbuffer’s display method.