Package ch.blackspirit.graphics

Examples of ch.blackspirit.graphics.WindowListener


    properties.setDebugGL(true);
    canvas = new CanvasFactory().createRealtimeCanvasWindow(800, 600);
//    canvas = new CanvasFactory().createRealtimeCanvasFullscreen();
    context = canvas;
    imageFactory = canvas.getImageFactory();
    canvas.addWindowListener(new WindowListener() {
      public void windowActivated() {}
      public void windowClosed() {}
      public void windowClosing() {
        finish = true;
      }
View Full Code Here


        }
      }, AWTEvent.KEY_EVENT_MASK);

    canvas.setVSync(false);
//    canvas.addWindowListener(WindowListener.EXIT_ON_CLOSE);
    canvas.addWindowListener(new WindowListener() {
      public void windowActivated() {}
      public void windowClosing() {canvas.dispose(); System.exit(0); }
        public void windowClosed() {}
      public void windowDeactivated() {}
      public void windowDeiconified() {}
View Full Code Here

TOP

Related Classes of ch.blackspirit.graphics.WindowListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.