@Override public void shutdown() { Display.destroy(); }
protected void destroyContext(){ try { renderer.cleanup(); Display.releaseContext(); Display.destroy(); } catch (LWJGLException ex) { listener.handleError("Failed to destroy context", ex); } }
public void run () { if (!running) return; running = false; Array<LifecycleListener> listeners = lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.pause(); listener.dispose(); } } listener.pause(); listener.dispose(); try { Display.destroy(); if (audio != null) audio.dispose(); } catch (Throwable ignored) { } } });
public void run () { if (!running) return; running = false; Array<LifecycleListener> listeners = lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.pause(); listener.dispose(); } } listener.pause(); listener.dispose(); try { Display.destroy(); if (audio != null) audio.dispose(); } catch (Throwable ignored) { } } });
try { if (Display.isCreated()) Display.destroy(); } catch (Exception ex2){ logger.log(Level.WARNING, null, ex2);
Display.destroy();
||pixelFormat.getSamples() != pf.getSamples())){ renderer.resetGLObjects(); Display.destroy(); pixelFormatChanged = true;
Display.destroy(); if (audio != null) audio.dispose(); if (graphics.config.forceExit) System.exit(-1);
Display.destroy(); if (audio != null) audio.dispose(); if (graphics.config.forceExit) System.exit(-1);
/** * Destroy the app game container */ public void destroy() { Display.destroy(); AL.destroy(); }
public void close() { if (Display.isCreated()) { Display.destroy(); } }
private static void destroyMainWindow() { // glXDestroyContext (display,glx_context); // XDestroyWindow (display,win); // XSync (display,0); // XCloseDisplay(display); // display = 0; // win = 0; // glx_context = 0; Keyboard.destroy(); Mouse.destroy(); Display.destroy(); }
protected void destroyContext(){ try { renderer.cleanup(); Display.releaseContext(); Display.destroy(); } catch (LWJGLException ex) { listener.handleError("Failed to destroy context", ex); } }
/** * Create the LWJGL display * * @throws Exception Failure to create display */ private void createDisplay() throws Exception { try { // create display with alpha Display.create(new PixelFormat(8,8,GameContainer.stencil ? 8 : 0)); alphaSupport = true; } catch (Exception e) { // if we couldn't get alpha, let us know alphaSupport = false; Display.destroy(); // create display without alpha Display.create(); } }
/** * The running game loop * * @throws Exception Indicates a failure within the game's loop rather than the framework */ public void runloop() throws Exception { while (running) { int delta = getDelta(); updateAndRender(delta); updateFPS(); Display.update(); } Display.destroy(); } }
public void run() { try { canvas.start(); } catch (Exception e) { e.printStackTrace(); if (Display.isCreated()) { Display.destroy(); } displayParent.setVisible(false);//removeAll(); add(new ConsolePanel(e)); validate(); } } };
public void run () { if (!running) return; running = false; Array<LifecycleListener> listeners = lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.pause(); listener.dispose(); } } listener.pause(); listener.dispose(); try { Display.destroy(); if (audio != null) audio.dispose(); } catch (Throwable ignored) { } } });
@Override public void dispose () { boot.load(); boot.setWindowX(Display.getX()); boot.setWindowY(Display.getY()); boot.store(); // destroy display Display.destroy(); // destroy audio, if any if (this.audio != null) { this.audio.dispose(); this.audio = null; } } }