com.jme3.system.AppSettings.setResizable()方法的使用及代码示例

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

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

AppSettings.setResizable介绍

[英]Allows the display window to be resized by dragging its edges. Only supported for JmeContext.Type#Display contexts which are in windowed mode, ignored for other types. The default value is false.
[中]允许通过拖动显示窗口的边缘来调整其大小。仅支持JmeContext。类型#显示窗口模式下的上下文,其他类型忽略。默认值为false

代码示例

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

public static void main(String[] args){
  TestResizableApp app = new TestResizableApp();
  AppSettings settings = new AppSettings(true);
  settings.setResizable(true);
  app.setSettings(settings);
  app.setShowSettings(false);
  app.start();
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

settings.setFullscreen(false);
  settings.setResizable(false);
settings.setSwapBuffers(!disableSwapBuffers || VRhardware instanceof OSVR);
settings.setTitle("Put Headset On Now: " + settings.getTitle());
settings.setResizable(true);

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

settings.setFullscreen(false);
settings.setResizable(false);

相关文章

AppSettings类方法