public void error(int errnum) { String estring; estring = glu.gluErrorString(errnum); System.err.println("Tessellation Error: " + estring); System.exit(0); }
public void keyPressed(KeyEvent key) { switch (key.getKeyCode()) { case KeyEvent.VK_ESCAPE: System.exit(0); default: break; } }
/** Constructs an instance and initializes its stereo mode to */ public StereoOptionSceneController() { String stereo = System.getProperty(AVKey.STEREO_MODE); if ("redblue".equalsIgnoreCase(stereo)) this.setStereoMode(AVKey.STEREO_MODE_RED_BLUE); else if ("device".equalsIgnoreCase(stereo)) this.setStereoMode(AVKey.STEREO_MODE_DEVICE); }