Re: Questions about PBuffers
Posted by Martin Hegedus on Dec 14, 2011; 4:47pm
URL: https://forum.jogamp.org/Questions-about-PBuffers-tp3581441p3585989.html
Thanks Gene.
OK, then the objective is to put the tiling methodology inside the print() method.
Is there a way to query how much memory is available for the pbuffer with jogl? Or should one try to allocate what is required and if that fails, quarter the requirement, and if that fails, keep quartering and checking.
From what you said in your first post, it sounds like there is a possibility that a pbuffer of any size can not be allocated. In which case it would be nice to allocate an off screen buffer as a simple pixmap/bitmap surface. However, my drawing fails when I set pBuffers to false, i.e. glCaps.setPBuffer(false). The createOffscreenDrawable does return a non null GLDrawable but drawing to it seems to fail, i.e. the image is black. This is under Linux and I have not tried windows yet. Unfortunately I'm not sure if I am doing something wrong or a bug exists in jogl. Does anyone have any thoughts on this?
Thanks. And I'll be out of town till the end of this month, and probably unable to reply till then. Happy Holidays!