Re: New tutorial on AWT/SWT/Swing/GLJPanel/GLCanvas
Posted by
Sven Gothel on
Feb 12, 2011; 11:12am
URL: https://forum.jogamp.org/New-tutorial-on-AWT-SWT-Swing-GLJPanel-GLCanvas-tp2363921p2479951.html
On Saturday, February 12, 2011 09:56:08 Sven Gothel wrote:
> On Saturday, February 12, 2011 07:31:29 Wade Walker [via jogamp] wrote:
> >
> > Sven Gothel wrote:
> > >
> > > Hence it 'breaks' the contract of providing a current _and_ usable HDC via
> > > wglGetCurrentDC().
> > >
> >
> > Maybe this was never the contract? JOGL 1 never uses any DC in
> > GLDrawableFactory.createExternalGLContext(),
> JOGL1 is hardly the reference here :)
>
> But the semantics of MakeCurrent(context, drawable) for EGL, WGL, XGL, CGL ..
> which imply a valid accessible drawable until release.
> This is mentioned the the email I referenced ..
>
> So Windows goes around this, render it somehow invalid, an SWT hack
> to not have to release it later on - well :)
>
> > which implies that it wasn't
> > considered available. ExternalGLContext was purely a wrapper for the
> > GLContext, without much extra info.
>
> how to makecurrent/release w/o it ?
Ok, I read the API doc :)
MakeCurrent/Release is not job of the JOGL external context,
and it's implementation/action is a nop.
Hence no drawable must be available, and no further information
is indeed necessary.
Will follow the API doc .. :)
Thanks Wade