On 02/14/2014 03:06 PM, gouessej [via jogamp] wrote:
> Hi
>
> Why not doing the opposite? You can create the context in your native source
> code, create an external context based on it with
> GLDrawableFactory.createExternalGLContext() and call your native drawing
> method in GLEventListener.display().
I would use the other solution below,
since one of JOGL's strength is to be able to create the context for the
'user' w/o the hassle of dealing w/ the platform details.
> Another solution consists in creating the
> context in Java code with JOGL and calling your native drawing method in
> GLEventListener.display(). I'm not sure you can create a GLContext without
> creating a GLDrawable. Maybe Sven can confirm.
Sure you can create the context w/o a drawable (technically)
but we require a drawable to be bound to make it current
_while_ creating it.
~Sven