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(); } }
public void display(GLAutoDrawable drawable) { try { // Draw the contents of the window (abstract method) draw(drawable.getGL()); } catch (GLException e) { e.printStackTrace(); } }
// ------------------------------------------------------------ // 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(); } }