Re: JOGL Questions - Guidance on creating Scene class
Posted by
gouessej on
Oct 29, 2015; 4:22pm
URL: https://forum.jogamp.org/JOGL-Questions-Guidance-on-creating-Scene-class-tp4035659p4035665.html
GLArrayDataServer.destroy() deletes the OpenGL identifiers but it doesn't release the native memory of the direct NIO buffers.
There is no need of creating several GLEventListener instances, just create a single one and call your drawing code in it.
You can use a state machine to structure your game. I can show you a schema if you don't see what I mean.
You should look at how the current scenegraph APIs manage all those notions even though you don't plan to use any of them, just as sources of inspiration instead of reinventing the wheel.