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

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

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

AppSettings.isFullscreen介绍

[英]Get the fullscreen state
[中]获取全屏状态

代码示例

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

antialiasCombo.addKeyListener(aListener);
fullscreenBox = new JCheckBox(resourceBundle.getString("checkbox.fullscreen"));
fullscreenBox.setSelected(source.isFullscreen());
fullscreenBox.addActionListener(new ActionListener() {

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

listener.destroy();
animator.stop();
if (settings.isFullscreen()) {
  device.setFullScreenWindow(null);

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

listener.destroy();
animator.stop();
if (settings.isFullscreen()) {
  canvas.setFullscreen(false);

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

canvas.setUndecorated(settings.isFullscreen());
canvas.setFullscreen(settings.isFullscreen());
if (settings.isFullscreen()) {
  List<MonitorMode> screenModes = canvas.getMainMonitor().getSupportedModes();

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

if (settings.isFullscreen()) {
  frame.setUndecorated(true);

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

displayMode = Display.getDesktopDisplayMode();
  settings.setResolution(displayMode.getWidth(), displayMode.getHeight());
}else if (settings.isFullscreen()){
  displayMode = getFullscreenDisplayMode(settings.getWidth(), settings.getHeight(),
                      settings.getBitsPerPixel(), settings.getFrequency());
  if (settings.isFullscreen()) {
    Display.setDisplayModeAndFullscreen(displayMode);
  } else {
  Display.setFullscreen(settings.isFullscreen());

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

if (settings.isFullscreen()) {
  monitor = glfwGetPrimaryMonitor();
if (!settings.isFullscreen()) {
  glfwSetWindowPos(window,
      (videoMode.width() - settings.getWidth()) / 2,

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

if (settings.isFullscreen()) {
  monitor = glfwGetPrimaryMonitor();
  if (!settings.isFullscreen()) {
    glfwSetWindowPos(window,
        (videoMode.width() - settings.getWidth()) / 2,

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

antialiasCombo.addKeyListener(aListener);
fullscreenBox = new JCheckBox(resourceBundle.getString("checkbox.fullscreen"));
fullscreenBox.setSelected(source.isFullscreen());
fullscreenBox.addActionListener(new ActionListener() {

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

antialiasCombo.addKeyListener(aListener);
fullscreenBox = new JCheckBox("Fullscreen?");
fullscreenBox.setSelected(source.isFullscreen());
fullscreenBox.addActionListener(new ActionListener() {

代码示例来源:origin: org.jmonkeyengine/jme3-jogl

listener.destroy();
animator.stop();
if (settings.isFullscreen()) {
  device.setFullScreenWindow(null);

代码示例来源:origin: org.jmonkeyengine/jme3-jogl

listener.destroy();
animator.stop();
if (settings.isFullscreen()) {
  canvas.setFullscreen(false);

代码示例来源:origin: org.jmonkeyengine/jme3-jogl

canvas.setUndecorated(settings.isFullscreen());
canvas.setFullscreen(settings.isFullscreen());
if (settings.isFullscreen()) {
  List<MonitorMode> screenModes = canvas.getMainMonitor().getSupportedModes();

代码示例来源:origin: org.jmonkeyengine/jme3-jogl

if (settings.isFullscreen()) {
  frame.setUndecorated(true);

代码示例来源:origin: tonihele/OpenKeeper

refresh.addItem(mdm.refreshRate.get(0));
if (!settings.isFullscreen()) {
  refresh.disable();
fullscreen.setChecked(settings.isFullscreen());
fullscreen.setEnabled(device.isFullScreenSupported());

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

displayMode = Display.getDesktopDisplayMode();
  settings.setResolution(displayMode.getWidth(), displayMode.getHeight());
}else if (settings.isFullscreen()){
  displayMode = getFullscreenDisplayMode(settings.getWidth(), settings.getHeight(),
                      settings.getBitsPerPixel(), settings.getFrequency());
  if (settings.isFullscreen()) {
    Display.setDisplayModeAndFullscreen(displayMode);
  } else {
  Display.setFullscreen(settings.isFullscreen());

代码示例来源:origin: org.jmonkeyengine/jme3-lwjgl3

if (settings.isFullscreen()) {
  monitor = glfwGetPrimaryMonitor();
if (!settings.isFullscreen()) {
  glfwSetWindowPos(window,
      (videoMode.width() - settings.getWidth()) / 2,

相关文章

AppSettings类方法