Examples of JglfwDisplayMode


Examples of com.badlogic.gdx.backends.jglfw.JglfwGraphics.JglfwDisplayMode

    for (java.awt.DisplayMode mode : displayModes) {
      for (DisplayMode other : modes)
        if (other.width == mode.getWidth() && other.height == mode.getHeight() && other.bitsPerPixel == mode.getBitDepth())
          continue outer; // Duplicate.
      if (mode.getBitDepth() != desktopMode.getBitDepth()) continue;
      modes.add(new JglfwDisplayMode(mode.getWidth(), mode.getHeight(), mode.getRefreshRate(), mode.getBitDepth()));
    }
    return modes.toArray(DisplayMode.class);
  }
View Full Code Here

Examples of com.badlogic.gdx.backends.jglfw.JglfwGraphics.JglfwDisplayMode

    return modes.toArray(DisplayMode.class);
  }

  static public DisplayMode getDesktopDisplayMode () {
    java.awt.DisplayMode mode = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode();
    return new JglfwDisplayMode(mode.getWidth(), mode.getHeight(), mode.getRefreshRate(), mode.getBitDepth());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.