public static void main(final String[] args) {
    final LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
    cfg.title = "Pinkie Pies Jumper";
    cfg.useGL20 = true;
    cfg.width = 1280;
    cfg.height = 720;
    cfg.resizable = false;
    cfg.useCPUSynch = true;
    cfg.initialBackgroundColor = Color.BLACK;
    System.setProperty("org.lwjgl.opengl.Window.undecorated", "true");

    new LwjglApplication(new App(), cfg);
  }
  public static void main(String[] args) {

    DisplayMode displayMode = LwjglApplicationConfiguration.getDesktopDisplayMode();

    //        try {
    //            // find first display mode that allows us 640*480*16
    //            int mode = -1;
    //            DisplayMode[] modes = LwjglApplicationConfiguration.getDisplayModes();
    //            for (int i = 0; i < modes.length; i++) {
    //                    if (modes[i].width == 800 && modes[i].height == 480) {
    //                            mode = i;
    //                            break;
    //                    }
    //            }
    //            if (mode != -1) {
    //                    // select above found displaymode
    //                    System.out.println("Setting display mode to " + modes[mode]);
    //                    displayMode = modes[mode];
    //                    System.out.println("Created display.");
    //            }
    //	    } catch (Exception e) {
    //	            System.err.println("Failed to create display due to " + e);
    //	    }
    //

    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();

    config.setFromDisplayMode(displayMode);

    config.width = 800;
    config.height = 480;
    config.title = "Qb";

    config.fullscreen = false;
    config.samples = 4;
    config.useGL20 = true;
    config.vSyncEnabled = true;
    config.useCPUSynch = true;
    new LwjglApplication(new DesktopStarter(), config);
  }