Exemple #1
0
 public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
   try {
     // Specify new projection for this window
     projection(drawable.getGL(), width, height);
   } catch (GLException e) {
     e.printStackTrace();
   }
 }
Exemple #2
0
 public void display(GLAutoDrawable drawable) {
   try {
     // Draw the contents of the window (abstract method)
     draw(drawable.getGL());
   } catch (GLException e) {
     e.printStackTrace();
   }
 }
Exemple #3
0
  // ------------------------------------------------------------
  // GLEventListener
  public void init(GLAutoDrawable drawable) {
    if (debugging) drawable.setGL(new DebugGL(drawable.getGL()));

    try {
      // Specify new projection for this window
      init(drawable.getGL());
    } catch (GLException e) {
      e.printStackTrace();
    }
  }