preventing display during setSurfaceSize for GLOffscreenAutoDrawable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

preventing display during setSurfaceSize for GLOffscreenAutoDrawable

andyskinner
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