Login  Register

preventing display during setSurfaceSize for GLOffscreenAutoDrawable

Posted by andyskinner on Apr 21, 2016; 2:55pm
URL: https://forum.jogamp.org/preventing-display-during-setSurfaceSize-for-GLOffscreenAutoDrawable-tp4036642.html

I have a GLOffscreenAutoDrawable, and I want it to only do a display when I ask it to.

As I'm setting it up, I need to call setSurfaceSize(width, height).  This calls GLAutoDrawableBase.defaultWindowResizedOp, which calls display when there is no animator.  (It is a bit more than that, also something about whether surface is locked on other thread.)  Can I make this thing not call display?  I'd like to make a picture when I'm ready.

I'll see if I can delay connecting my GLEventListener until later, but I'd like that to be part of setup, too.

thanks
andy