Login  Register

Re: Can JOGL be used without requiring GLAutoDrawable instances?

Posted by Sven Gothel on Jul 26, 2015; 2:09am
URL: https://forum.jogamp.org/Can-JOGL-be-used-without-requiring-GLAutoDrawable-instances-tp4034953p4034972.html

On 07/25/2015 11:35 PM, xghost [via jogamp] wrote:

>     Sven Gothel wrote
>     OK.
>     Just for the record, the GLAutoDrawable/GLEventListener 'assisted rendering'
>     paradigm is optional, even though it is recommended.
>     One can always use plain GLDrawable/GLContext etc. and handle the details
>     manually.
>
> Hi Sven,
>
> Can you elaborate on this a bit? I'm not sure I'm familiar with this way of
> using JOGL. Does this mean that I can do something along the following lines
> without needing to be inside one of the GLEventListener overrides or something?:
I am just referring to the fact, that one does not need to use
the GLAutoDrawable/GLEventListener 'assisted' API model,
but can also use the GLDrawableFactory to create a GLDrawable
instance and create the GLContext manually.

I would not recommend this path, since it requires detail knowledge
about the OpenGL and windowing system lifecycle.
All of the latter is handled when using the 'assisted' API model.

This is sort of unrelated to your question, but I wanted to mention it.






signature.asc (828 bytes) Download Attachment