title: How to retrieve a GL2 instance?
body: <p>I am currently writting a game with the JOGL bindings to use OpenGL but I am so struggling on this.</p>
  <p>I need to initialize my vaos and vbos (for each component) using the GL2 variable that I collected in the init method in the class that implements GLEventListener. Like so,</p>
  <pre><code>public abstract class Scene implements GLEventListener {
      private GL2 gl;
  
      @Override
      public void init(GLAutoDrawable drawable) {
          gl = drawable.getGL().getGL2();
          ...
  </code></pre>
  <p>But this variable is null when I want to use it because it appears it's before the call of the method init (which is strange to me). I also checked GLContext.getCurrent() to maybe retrieve a GL instance but the context is also null.</p>
  <p>So I wonder where is the context created and what triggers the init function above  ?</p>
  <p>Maybe I could simply make a boolean that tells when a component as been initialized in my render function, so maybe the GL init method would have been called.</p>