Login  Register

Re: [JOGL1.1.1->JOGL2] Sharing context, drawable member of GLCanvas is null in createContext()

Posted by Djak on Nov 24, 2010; 8:45pm
URL: https://forum.jogamp.org/JOGL1-1-1-JOGL2-Sharing-context-drawable-member-of-GLCanvas-is-null-in-createContext-tp1851054p1963102.html

Hi,
cool, it works fine now with the jogl-2.0-b3-20101124-windows-i586 build
There's still something I wonder. I saw setSize() has been removed from GLDrawable. Actually, I usually resized my GLCanvas at initialization like this :
this.context.getGLDrawable().setSize(drawingSurfaceWidth, drawingSurfaceHeight);

this.context is a GLContext. But it may was a bad solution ?
Is still there a way to access and resize the GLCanvas (or other component) directly from the GLContext ?

Thanks in advance :)

(I know JOGL2 is on pre-release, so I hope I'm not bothering you with such questions, but maybe it's important to notify that at this point, I don't know :) )