Login  Register

Re: Can JOGL be used without requiring GLAutoDrawable instances?

Posted by gouessej on Jul 28, 2015; 6:50pm
URL: https://forum.jogamp.org/Can-JOGL-be-used-without-requiring-GLAutoDrawable-instances-tp4034953p4034990.html

I'm not sure that using the assisted API forces you to expose anything that would be a concern for the encapsulation.

Sorry for the confusion. If you don't use the assisted API, you might have some problems anyway in some cases, for example when the OpenGL context must be created on a particular thread or when its creation is expected to fail several times on very poor drivers under Windows.

Why not using the assisted API without exposing any GL instances directly? The desire of hiding JOGL sometimes leads to badly designed code. Moreover, if your students need to code in OpenGL, they will have to use JOGL. Look at how I "hide" JOGL most of the time in several major scenegraph API including JogAmp's Ardor3D Continuation and JMonkeyEngine.
Julien Gouesse | Personal blog | Website