com.jme3.app.Application.stop()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(70)

本文整理了Java中com.jme3.app.Application.stop()方法的一些代码示例,展示了Application.stop()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.stop()方法的具体详情如下:
包路径:com.jme3.app.Application
类名称:Application
方法名:stop

Application.stop介绍

[英]Requests the context to close, shutting down the main loop and making necessary cleanup operations. Same as calling stop(false)
[中]请求关闭上下文,关闭主循环并执行必要的清理操作。与呼叫停止相同(错误)

代码示例

代码示例来源:origin: info.projectkyoto/mms-engine

/**
 * Requests the context to close, shutting down the main loop
 * and making necessary cleanup operations.
 * 
 * Same as calling stop(false)
 * 
 * @see #stop(boolean) 
 */
public void stop(){
  stop(false);
}

代码示例来源:origin: info.projectkyoto/mms-engine

/**
 * Internal use only.
 */
public void handleError(String errMsg, Throwable t){
  logger.log(Level.SEVERE, errMsg, t);
  // user should add additional code to handle the error.
  stop(); // stop the application
}

代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-desktop

@Override
public void destroy(){
  System.out.println("applet:destroyStart");
  SwingUtilities.invokeLater(new Runnable(){
    public void run(){
      removeAll();
      System.out.println("applet:destroyRemoved");
    }
  });
  app.stop(true);
  System.out.println("applet:destroyDone");
  appToApplet.remove(app);
}

相关文章