pbuffer question

this is gonna seem stupid but I use to use lwjgl. How do you bind and release textures, could I get an example?
I know in lwjgl it’s pbuffer.bindTexImage(Pbuffer.FRONT_LEFT_BUFFER) and pbuffer.releaseTexImage(Pbuffer.FRONT_LEFT_BUFFER)
what would be the jogl equal.

Thanks

GLPbuffer.bindTexture() and GLPbuffer.releaseTexture(). You need to specify the setOffscreenRenderToTexture(true) capability in your GLCapabilities when creating the pbuffer. JOGL’s pbuffer render-to-texture support is not well tested and is not portable (it doesn’t currently work on X11 platforms which have no native render-to-texture extension). If you need portable render-to-texture I would suggest you look into the Frame Buffer Object extension.

well i’m doing a port of jme’s rendering system from lwjgl to jogl and right now they use pbuffers
PS: any FBO demos

There aren’t any JOGL FBO demos yet. You should be able to find something small by looking through the OpenGL demos in NVidia’s SDK, though it’ll be in C/C++ probably using GLUT.