Example usage for com.badlogic.gdx.backends.lwjgl3 Lwjgl3ApplicationConfiguration useOpenGL3

List of usage examples for com.badlogic.gdx.backends.lwjgl3 Lwjgl3ApplicationConfiguration useOpenGL3

Introduction

In this page you can find the example usage for com.badlogic.gdx.backends.lwjgl3 Lwjgl3ApplicationConfiguration useOpenGL3.

Prototype

public void useOpenGL3(boolean useGL30, int gles3MajorVersion, int gles3MinorVersion) 

Source Link

Document

Sets whether to use OpenGL ES 3.0 emulation.

Usage

From source file:com.nsoft.boxuniverse.main.Main.java

License:Open Source License

public static void main(String[] args) {

    Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
    config.setWindowedMode(1280, 720);/*  w  w w  .  ja va2s .  co m*/
    //config.setFullscreenMode( Lwjgl3ApplicationConfiguration.getDisplayMode());
    config.setTitle("Box Universe");
    config.useOpenGL3(true, 3, 2);
    app = new Lwjgl3Application(new Game(), config);
}