Package com.badlogic.gdx.utils

Examples of com.badlogic.gdx.utils.Array.toArray()


        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);
  }

  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


  public DisplayMode[] getDisplayModes () {
    Array<DisplayMode> modes = new Array();
    for (GlfwVideoMode mode : glfwGetVideoModes(getWindowMonitor()))
      modes.add(new JglfwDisplayMode(mode.width, mode.height, 0, mode.redBits + mode.greenBits + mode.blueBits));
    return modes.toArray(DisplayMode.class);
  }

  public DisplayMode getDesktopDisplayMode () {
    GlfwVideoMode mode = glfwGetVideoMode(getWindowMonitor());
    return new JglfwDisplayMode(mode.width, mode.height, 0, mode.redBits + mode.greenBits + mode.blueBits);
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.