Re: JOGL Questions - Guidance on creating Scene class
Posted by elect on Oct 29, 2015; 3:38pm
URL: https://forum.jogamp.org/JOGL-Questions-Guidance-on-creating-Scene-class-tp4035659p4035660.html
1) see reddit
2) int arrays controlled by enums. You can retrieve an int by an enum with ordinal(). If you use same code for multiple scenes, create additional subscene in between and extend from it. Read that guide with a grain of salt, it is quite old.
3) GLContext.getCurrent().getGL() should be fine. Anyway I always tend to grab the GL object from the display() in order to minimize any potential bug, since OpenGL is a state machine this makes easier to monitor/debug the order of the gl commands.
4) I'd say not, but I didn't spend so much time getting it work since I saw it is quite old. I am working to update it. If you need it now I have a self-made lib for the meanwhile.
my 2 cents